CVE-2022-32531: Bookkeeper common Improper Certificate Validation Vulnerability
MODERATECVE-2022-32531 is a MODERATE (CVSS 5.9) improper certificate validation vulnerability (CWE-295: Improper Certificate Validation) affecting Bookkeeper common libraries in the Maven ecosystem. The issue involves apache bookkeeper vulnerable to improper certificate validation. Remediation is available by upgrading affected packages to version 4.14.6, 4.15.1.
CVE-2022-32531 at a Glance
Security Impact
CVSS: 5.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2022-32531
To remediate this vulnerability, upgrade all affected Bookkeeper common dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.apache.bookkeeper</groupId>
<artifactId>bookkeeper-common</artifactId>
<version>4.14.6</version>
</dependency>
<dependency>
<groupId>org.apache.bookkeeper</groupId>
<artifactId>bookkeeper-common</artifactId>
<version>4.15.1</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.apache.bookkeeper
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2022-32531, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.bookkeeper
Analyze the terminal output to locate any version of Bookkeeper common in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.14.6), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.bookkeeper command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. In Bookkeeper common, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2022-32531 Affected Bookkeeper common Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.bookkeeper:bookkeeper-common
|
Maven |
< 4.14.6
|
4.14.6
|
|
org.apache.bookkeeper:bookkeeper-common
|
Maven |
≥ 4.15.0
< 4.15.1
All 1 versions
4.15.0
|
4.15.1
|
References
Frequently Asked Questions
What is CVE-2022-32531?
Which Bookkeeper common versions are affected?
What version fixes CVE-2022-32531?
Is bookkeeper-common affected?
What is the CVSS score of CVE-2022-32531?
What CWE is associated with CVE-2022-32531?
How can I check Maven dependencies for CVE-2022-32531?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gxq5-79m2-gvvq",
"modified" : "2022-12-20T15:22:58Z",
"published" : "2022-12-15T21:30:29Z",
"aliases" : [ "CVE-2022-32531" ],
"summary" : "Apache Bookkeeper vulnerable to Improper Certificate Validation",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.bookkeeper:bookkeeper-common"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.14.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.bookkeeper:bookkeeper-common"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.15.0"
}, {
"fixed" : "4.15.1"
} ]
} ],
"versions" : [ "4.15.0" ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-32531"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/bookkeeper"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/apache-bookkeeper-client/PYSEC-2022-43060.yaml"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/xyk2lfc7lzof8mksmwyympbqxts1b5s9"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-295" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-12-15T23:33:41Z",
"nvd_published_at" : "2022-12-15T19:15:00Z"
}
}