CVE-2022-32531 — bookkeeper-common
MEDIUMCVE-2022-32531 is a medium-severity (CVSS 5.9) CWE-295 vulnerability in org.apache.bookkeeper:bookkeeper-common. A fix is available for org.apache.bookkeeper:bookkeeper-common — see the affected versions and patch details below.
Apache BookKeeper: Java Client Uses Connection to Host that Failed Hostname Verification
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2022-32531.
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.bookkeeper:bookkeeper-common☕org.apache.bookkeeper:bookkeeper-commonReal-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
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.apache.bookkeeper:bookkeeper-common | all versions | 4.14.6org.apache.bookkeeper:bookkeeper-common:4.14.6 |
| ☕Maven | org.apache.bookkeeper:bookkeeper-common | ≥ 4.15.0&&< 4.15.1 | 4.15.1org.apache.bookkeeper:bookkeeper-common:4.15.1 |
Affected Products
bookkeeperapacheDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.apache.bookkeeper:bookkeeper-common, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.apache.bookkeeper:bookkeeper-common to 4.14.6 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2022-32531 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-32531 in your dependencies?
Find it across Maven, including transitive dependencies.