# CVE-2022-45347: Apache ShardingSphere-Proxy: MySQL authentication bypass

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.54%, higher than 75% of CVEs (2026-12-01)
- Published: 2022-12-22T10:47:44.716Z
- Modified: 2026-06-17T05:09:49.867Z
- Also known as: GHSA-wmxm-6wxc-3xqf
- Weaknesses: CWE-459
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache ShardingSphere-Proxy: before 5.3.0
- org.apache.shardingsphere:shardingsphere-proxy (Maven): before 5.3.0
- apache shardingsphere: before 5.3.0

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://lists.apache.org/thread/l5rz7j4rg10o7ywtgknh2f5hxnv6yw3l> (mailing-list, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-45347> (advisory)
- <https://github.com/pjfanning/shardingsphere> (package)

## Sources

- CVE List: [CVE-2022-45347](https://www.cve.org/CVERecord?id=CVE-2022-45347), CVE Terms of Use, modified 2025-04-15
- GitHub Advisory Database: [GHSA-wmxm-6wxc-3xqf](https://github.com/advisories/GHSA-wmxm-6wxc-3xqf), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-45347](https://nvd.nist.gov/vuln/detail/CVE-2022-45347), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-45347 · Whole record: https://cve.day/CVE-2022-45347.json · Rebuilt by cve.day 2026-11-25T22:58:17.751Z
