CVE-2022-32531: Bookkeeper common Improper Certificate Validation Vulnerability

MODERATE
Advisory Identifier: GHSA-gxq5-79m2-gvvq
CVSS 5.9
CWE-295
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2022-32531
GHSA Identifier GHSA-gxq5-79m2-gvvq
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-295: Improper Certificate Validation
Affected Product Bookkeeper common
Package Ecosystem Maven
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (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.

org.apache.bookkeeper:bookkeeper-common fixed: 4.14.6
<dependency>
    <groupId>org.apache.bookkeeper</groupId>
    <artifactId>bookkeeper-common</artifactId>
    <version>4.14.6</version>
</dependency>
org.apache.bookkeeper:bookkeeper-common fixed: 4.15.1
<dependency>
    <groupId>org.apache.bookkeeper</groupId>
    <artifactId>bookkeeper-common</artifactId>
    <version>4.15.1</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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.

CVE-2022-32531 Affected Bookkeeper common Versions

2 component(s)
Fixed Versions:
4.14.64.15.1
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?
CVE-2022-32531 is a security vulnerability in Bookkeeper common involving Apache Bookkeeper vulnerable to Improper Certificate Validation under CWE-295: Improper Certificate Validation.
Which Bookkeeper common versions are affected?
Affected versions include releases prior to 4.14.6, 4.15.1 across affected packages: org.apache.bookkeeper:bookkeeper-common.
What version fixes CVE-2022-32531?
Upgrading to 4.14.6, 4.15.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is bookkeeper-common affected?
Yes, org.apache.bookkeeper:bookkeeper-common is affected in releases prior to 4.14.6, 4.15.1. Upgrade your dependency to 4.14.6, 4.15.1 or later.
What is the CVSS score of CVE-2022-32531?
CVE-2022-32531 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2022-32531?
CVE-2022-32531 is classified under CWE-295: Improper Certificate Validation (The product does not validate, or incorrectly validates, a certificate.).
How can I check Maven dependencies for CVE-2022-32531?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.bookkeeper'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}