CVE-2023-28754

Source
https://cve.org/CVERecord?id=CVE-2023-28754
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-28754.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-28754
Aliases
Published
2023-07-19T08:15:10.117Z
Modified
2026-04-10T04:57:01.594150Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/apache/shardingsphere

Affected ranges

Type
GIT
Repo
https://github.com/apache/shardingsphere
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "fixed": "5.4.0"
        }
    ]
}

Affected versions

1.*
1.0.0
1.0.1
1.1.0
1.2.0
1.2.1
1.3.0
1.3.1
1.3.2
1.3.3
1.4.0
1.5.0
1.5.0.M1
1.5.0.M2
1.5.0.M3
1.5.1
1.5.2
1.5.3
1.5.4
1.5.4.1
2.*
2.0.0
2.0.0.M2
2.0.1
2.0.2
2.0.3
3.*
3.0.0
3.0.0.M1
3.0.0.M3
3.0.0.M4
3.1.0
3.1.0.M1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-28754.json"