CVE-2023-28754
HIGH 8.8CVSS 3.1Apache ShardingSphere-Agent Deserialization of Untrusted Data vulnerability
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.
- Published
- 19 Jul 2023
- Last modified
- 17 Jun 2026
- Assigned by
- security@apache.org
- NVD status
- Modified
- Weakness
- CWE-502
- Also known as
- GHSA-3cxh-xp3g-jxjm
- Sources
- NVDJSONOSV GHSA-3cxh-xp3g-jxjmJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | apache | shardingspherecpe:2.3:a:apache:shardingsphere:*:*:*:*:*:*:*:* |
< 5.4.0 | 5.4.0 |
| OSV | Maven | org.apache.shardingsphere:shardingsphere | < 5.4.0 | 5.4.0 |
References
- http://www.openwall.com/lists/oss-security/2023/07/19/3 · Mailing List, WEB
- https://lists.apache.org/thread/p8onhqox5kkwow9lc6gs03z28wtyp1cg · Mailing List, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-28754 · ADVISORY
- https://github.com/apache/shardingsphere · PACKAGE
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 19 Jul 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 19 Jul 2023)