CVE-2022-32531 Apache BookKeeper: Java Client Uses Connection to Host that Failed Hostname Verification

Medium 5.9 Published Updated

Apache BookKeeper Java client fails to close connections on TLS hostname verification errors, enabling man-in-the-middle attacks.

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-32531?

CVE-2022-32531 is a medium-severity vulnerability in Apache BookKeeper, published on 15 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The Apache Bookkeeper Java Client (before 4.14.6 and also 4.15.0) does not close the connection to the bookkeeper server when TLS hostname verification fails. This leaves the bookkeeper client vulnerable to a man in the middle attack.

The problem affects BookKeeper client prior to versions 4.14.6 and 4.15.1.

Weakness: CWE-295

Which versions are affected by CVE-2022-32531?

5 open source packages ship an affected version, including org.apache.bookkeeper:bookkeeper-common and apache-bookkeeper-client. It affects 1 product.

PackageAffectedFixed in
org.apache.bookkeeper:bookkeeper-common MavenAll versions4.14.6
org.apache.bookkeeper:bookkeeper-common MavenAll versions4.14.6
org.apache.bookkeeper:bookkeeper-common MavenFrom 4.15.04.15.1
org.apache.bookkeeper:bookkeeper-common MavenFrom 4.15.04.15.1
apache-bookkeeper-client PyPIAll versions4.14.6

Products include Apache Bookkeeper.

How do I fix CVE-2022-32531?

Upgrade org.apache.bookkeeper:bookkeeper-common to a fixed version for your release line: 4.14.6 or 4.15.1.

Is CVE-2022-32531 being exploited?

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

Sources

Also known as GHSA-gxq5-79m2-gvvq, PYSEC-2022-43060, UBUNTU-CVE-2022-32531.

Is CVE-2022-32531 in your software?

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

Check your SBOMs for free