{"answers":{"affected":"5 open source packages ship an affected version, including org.apache.bookkeeper:bookkeeper-common and apache-bookkeeper-client. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-32531 in the wild and no public exploit code.","fix":"Upgrade org.apache.bookkeeper:bookkeeper-common to a fixed version for your release line: 4.14.6 or 4.15.1.","what":"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."},"fix_prompt":"Check this codebase for CVE-2022-32531 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2022-32531 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.bookkeeper:bookkeeper-common (Maven): affected all versions; fixed in 4.14.6\n- org.apache.bookkeeper:bookkeeper-common (Maven): affected all versions; fixed in 4.14.6\n- org.apache.bookkeeper:bookkeeper-common (Maven): affected from 4.15.0; fixed in 4.15.1\n- org.apache.bookkeeper:bookkeeper-common (Maven): affected from 4.15.0; fixed in 4.15.1\n- apache-bookkeeper-client (PyPI): affected all versions; fixed in 4.14.6\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-32531/ (Markdown: https://insights.sbomify.com/CVE-2022-32531/index.md)","id":"CVE-2022-32531","markdown":"https://insights.sbomify.com/CVE-2022-32531/index.md","name":"CVE-2022-32531","record":{"aliases":["GHSA-gxq5-79m2-gvvq","PYSEC-2022-43060","UBUNTU-CVE-2022-32531"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Java distributed storage client","requires_auth":"none","summary":"Apache BookKeeper Java client fails to close connections on TLS hostname verification errors, enabling man-in-the-middle attacks.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"bookkeeper","vendor":"apache"}],"cvss":{"score":5.9,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-295","name":"Improper Certificate Validation"}],"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\nthe bookkeeper client vulnerable to a man in the middle attack.\n\nThe problem affects BookKeeper client prior to versions 4.14.6 and 4.15.1.","ecosystems":["Maven","PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Apache BookKeeper: Java Client Uses Connection to Host that Failed Hostname Verification","id":"CVE-2022-32531","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"security_feature_bypass","year":"2022"},"n_packages":5,"n_references":1,"next":{"headline":"Authentication Bypass Vulnerability","id":"CVE-2022-32532"},"packages":[{"ecosystem":"Maven","fixed":["4.14.6"],"introduced":["0"],"last_affected":[],"package":"org.apache.bookkeeper:bookkeeper-common","purl":null,"source":"GHSA-gxq5-79m2-gvvq"},{"ecosystem":"Maven","fixed":["4.14.6"],"introduced":["0"],"last_affected":[],"package":"org.apache.bookkeeper:bookkeeper-common","purl":"pkg:maven/org.apache.bookkeeper/bookkeeper-common","source":"GHSA-gxq5-79m2-gvvq"},{"ecosystem":"Maven","fixed":["4.15.1"],"introduced":["4.15.0"],"last_affected":[],"package":"org.apache.bookkeeper:bookkeeper-common","purl":null,"source":"GHSA-gxq5-79m2-gvvq"},{"ecosystem":"Maven","fixed":["4.15.1"],"introduced":["4.15.0"],"last_affected":[],"package":"org.apache.bookkeeper:bookkeeper-common","purl":"pkg:maven/org.apache.bookkeeper/bookkeeper-common","source":"GHSA-gxq5-79m2-gvvq"},{"ecosystem":"PyPI","fixed":["4.14.6"],"introduced":["0"],"last_affected":[],"package":"apache-bookkeeper-client","purl":"pkg:pypi/apache-bookkeeper-client","source":"PYSEC-2022-43060"}],"prev":{"headline":"Information disclosure in Geo SCADA Mobile","id":"CVE-2022-32530"},"products":["Apache BookKeeper"],"published":"2022-12-15","related":[{"cvss_score":9.8,"headline":"Deserialization of Untrusted Data in Log4j","id":"CVE-2019-17571","kev_date_added":null,"published":"2019-12-20"},{"cvss_score":8.8,"headline":"Memory corruption in GnuTLS libtasn1","id":"CVE-2017-6891","kev_date_added":null,"published":"2017-05-22"},{"cvss_score":7.5,"headline":"A flaw was discovered in OpenLDAP before 2.4.57 leading in an assertion failure in slapd in the X.509 DN parsing in decode.c ber_next_elemen","id":"CVE-2020-36230","kev_date_added":null,"published":"2021-01-25"},{"cvss_score":7.5,"headline":"Memory corruption in n/a","id":"CVE-2019-19906","kev_date_added":null,"published":"2019-12-19"},{"cvss_score":7.1,"headline":"Memory corruption in n/a","id":"CVE-2020-23922","kev_date_added":null,"published":"2021-04-21"},{"cvss_score":5.3,"headline":"Other in n/a","id":"CVE-2019-19924","kev_date_added":null,"published":"2019-12-24"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-17","vendors":["Apache Software Foundation"]},"summary":"Apache BookKeeper Java client fails to close connections on TLS hostname verification errors, enabling man-in-the-middle attacks.","url":"https://insights.sbomify.com/CVE-2022-32531/"}