Skip to content
Heist/ feed
Back to feed
Medium

Apache BookKeeper: Java Client Uses Connection to Host that Failed Hostname Verification

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-32531
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 10:26 UTC · Revision 1

Source evidence

Apache BookKeeper: Java Client Uses Connection to Host that Failed Hostname Verification

core-osv · Original source

Published 15 Dec 2022, 10:17 UTC

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.

osv:CVE-2022-32531
Complete source record
{
  "id": "80a572babcf1374f207270a656d7b8aec5dc9793e8f5e7baafc76556e61b6247",
  "url": "https://osv.dev/vulnerability/CVE-2022-32531",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Apache BookKeeper: Java Client Uses Connection to Host that Failed Hostname Verification",
    "summary": "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.",
    "evidence": "osv:CVE-2022-32531",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2022-32531",
      "aliases": [
        "CVE-2022-32531",
        "GHSA-gxq5-79m2-gvvq",
        "PYSEC-2022-43060"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/apache/bookkeeper",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "a96884ec279f5fbcd628c7ae3791d99a8e19ca69"
                },
                {
                  "introduced": "f771b7664f7f83ae4ae3e8eaa516c879c4bc7897"
                },
                {
                  "last_affected": "f771b7664f7f83ae4ae3e8eaa516c879c4bc7897"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:apache:bookkeeper:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "4.14.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:apache:bookkeeper:4.15.0:-:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.15.0-NA"
                      },
                      {
                        "last_affected": "4.15.0-NA"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "4.15.0-NA",
            "release-4.15.0",
            "release-4.14.5",
            "release-4.14.4-docker",
            "release-4.14.4",
            "release-4.14.3",
            "release-4.14.2",
            "release-4.14.1",
            "release-4.14.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-32531.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:27.880798104Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/32xxx/CVE-2022-32531.json",
        "https://lists.apache.org/thread/xyk2lfc7lzof8mksmwyympbqxts1b5s9",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-32531"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-295"
        ],
        "cna_assigner": "apache",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "4.15.0"
                  },
                  {
                    "last_affected": "4.15.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              }
            ]
          },
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "last_affected": "4.14.5"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/32xxx/CVE-2022-32531.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-32531",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 494513,
  "published_at": "2022-12-15T10:17:19.66+00:00"
}