ShardingSphere-Agent: Deserialization vulnerability in ShardingSphere Agent
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and GitHub. Impact type from CWE-502.
Summary
Deserialization of Untrusted Data vulnerability in Apache ShardingSphere-Agent, which allows attackers to execute arbitrary code by constructing a special YAML configuration file. The attacker needs to have permission to modify the ShardingSphere Agent YAML configuration file on the target machine, and the target machine can access the URL with the arbitrary code JAR. An attacker can use SnakeYAML to deserialize java.net.URLClassLoader and make it load a JAR from a specified URL, and then deserialize javax.script.ScriptEngineManager to load code using that ClassLoader. When the ShardingSphere JVM process starts and uses the ShardingSphere-Agent, the arbitrary code specified by the attacker will be executed during the deserialization of the YAML configuration file by the Agent. This issue affects ShardingSphere-Agent: through 5.3.2. This vulnerability is fixed in Apache ShardingSphere 5.4.0.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Apache | ShardingSphere-Agent | up to 5.3.2 | — | No fix listed | CNA |
| — | org.apache.shardingsphere:shardingsphere (Maven) | before 5.4.0 | 5.4.0 | Patch available | GHSA-3cxh-xp3g-jxjm |
- ShardingSphere-Agent VendorApache Affected up to 5.3.2 Fixed in — No fix listed CNA
- org.apache.shardingsphere:shardingsphere (Maven) Vendor— Affected before 5.4.0 Fixed in 5.4.0 Patch available GHSA-3cxh-xp3g-jxjm
Remediation
- Fix · GHSA-3cxh-xp3g-jxjm org.apache.shardingsphere:shardingsphere (Maven) Fixed in 5.4.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2023-28754
- 2026-10-03 Alias added: GHSA-3cxh-xp3g-jxjm
References
More Apache Shardingsphere vulnerabilities
- TI-2020-01871 Deserialization of untrusted data in Apache ShardingSphere CVSS 3.1CRITICAL 9.8
- TI-2022-22313 Apache ShardingSphere-Proxy: MySQL authentication bypass CVSS 3.1CRITICAL 9.8
Sources
- CVE-2023-28754 · CVE Program
- CVE-2023-28754 · NVD
- FIRST EPSS
- GHSA-3cxh-xp3g-jxjm · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences