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

Critical 9.8 Published Updated

Attackers can bypass MySQL authentication in Apache ShardingSphere-Proxy to execute commands and access data due to incomplete session cleanup.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-45347?

CVE-2022-45347 is a critical authentication bypass vulnerability in Apache ShardingSphere-Proxy, published on 22 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-459

Which versions are affected by CVE-2022-45347?

2 open source packages ship an affected version, including org.apache.shardingsphere:shardingsphere-proxy. It affects 1 product.

PackageAffectedFixed in
org.apache.shardingsphere:shardingsphere-proxy MavenAll versions5.3.0
org.apache.shardingsphere:shardingsphere-proxy MavenAll versions5.3.0

Products include Apache Shardingsphere.

How do I fix CVE-2022-45347?

Upgrade org.apache.shardingsphere:shardingsphere-proxy to 5.3.0 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2022-45347 being exploited?

There is no known exploitation of CVE-2022-45347 in the wild and no public exploit code.

Sources

Also known as GHSA-wmxm-6wxc-3xqf.

Is CVE-2022-45347 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free