{"cve":"CVE-2023-28754","nvd":{"published":"2023-07-19T08:15:10.117","modified":"2026-06-17T05:48:41.713","status":"Modified","description":"Deserialization of Untrusted Data vulnerability in Apache ShardingSphere-Agent, which allows attackers to execute arbitrary code by constructing a special YAML configuration file.\n\nThe 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.\nAn 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.\n\nThis issue affects ShardingSphere-Agent: through 5.3.2. This vulnerability is fixed in Apache ShardingSphere 5.4.0.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-502"],"references":["http://www.openwall.com/lists/oss-security/2023/07/19/3","https://lists.apache.org/thread/p8onhqox5kkwow9lc6gs03z28wtyp1cg","http://www.openwall.com/lists/oss-security/2023/07/19/3","https://lists.apache.org/thread/p8onhqox5kkwow9lc6gs03z28wtyp1cg"],"products":["apache:shardingsphere"],"source":"nvd","synced_at":"2026-10-19T21:38:35.729974749+00:00"},"epss":{"cve":"CVE-2023-28754","score":0.01458,"percentile":0.73532,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-3cxh-xp3g-jxjm","url":"https://osv.dev/vulnerability/GHSA-3cxh-xp3g-jxjm","summary":"Apache ShardingSphere-Agent Deserialization of Untrusted Data vulnerability","modified":"2024-02-16T08:24:33.387104Z","packages":[{"ecosystem":"Maven","name":"org.apache.shardingsphere:shardingsphere","purl":"pkg:maven/org.apache.shardingsphere/shardingsphere","ranges":["<5.4.0"],"fixed":["5.4.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}