CVE-2022-45347 — shardingsphere-proxy
CRITICALCVE-2022-45347 is a critical-severity (CVSS 9.8) CWE-459 vulnerability in org.apache.shardingsphere:shardingsphere-proxy. A fix is available for org.apache.shardingsphere:shardingsphere-proxy — see the affected versions and patch details below.
Apache ShardingSphere-Proxy: MySQL authentication bypass
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.apache.shardingsphere:shardingsphere-proxyReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
Apache ShardingSphere-Proxy prior to 5.3.0 when using MySQL as database backend didn't cleanup the database session completely after client authentication failed, which allowed an attacker to execute normal commands by constructing a special MySQL client. This vulnerability has been fixed in Apache ShardingSphere 5.3.0.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.apache.shardingsphere:shardingsphere-proxy | all versions | 5.3.0org.apache.shardingsphere:shardingsphere-proxy:5.3.0 |
Affected Products
shardingsphereapacheDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.apache.shardingsphere:shardingsphere-proxy, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.apache.shardingsphere:shardingsphere-proxy to 5.3.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2022-45347 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is CVE-2022-45347 in your dependencies?
Find it across Maven, including transitive dependencies.