{"answers":{"affected":"8 open source packages ship an affected version, including org.apache.pulsar:pulsar-client. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-33681 in the wild and no public exploit code.","fix":"Upgrade org.apache.pulsar:pulsar-client to a fixed version for your release line: 2.7.5, 2.10.1, 2.8.4 or 2.9.3.","what":"CVE-2022-33681 is a medium-severity vulnerability in Apache Pulsar, published on 23 Sep 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-33681 and fix it if it is affected.\n\nWhat it is: CVE-2022-33681 is a medium-severity vulnerability in Apache Pulsar, published on 23 Sep 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-33681 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.pulsar:pulsar-client (Maven): affected all versions; fixed in 2.7.5\n- org.apache.pulsar:pulsar-client (Maven): affected all versions; fixed in 2.7.5\n- org.apache.pulsar:pulsar-client (Maven): affected from 2.10.0; fixed in 2.10.1\n- org.apache.pulsar:pulsar-client (Maven): affected from 2.10.0; fixed in 2.10.1\n- org.apache.pulsar:pulsar-client (Maven): affected from 2.8.0; fixed in 2.8.4\n- org.apache.pulsar:pulsar-client (Maven): affected from 2.8.0; fixed in 2.8.4\n- org.apache.pulsar:pulsar-client (Maven): affected from 2.9.0; fixed in 2.9.3\n- org.apache.pulsar:pulsar-client (Maven): affected from 2.9.0; fixed in 2.9.3\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-33681/ (Markdown: https://insights.sbomify.com/CVE-2022-33681/index.md)","id":"CVE-2022-33681","markdown":"https://insights.sbomify.com/CVE-2022-33681/index.md","name":"CVE-2022-33681","record":{"aliases":["GHSA-c5fp-x2h5-vjv7"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache Pulsar Java Client","requires_auth":"none","summary":"Delayed TLS hostname verification in Apache Pulsar Java Client allows MITM attackers to intercept authentication data, potentially leading to account takeover.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"pulsar","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:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-295","name":"Improper Certificate Validation"}],"description":"Delayed TLS hostname verification in the Pulsar Java Client and the Pulsar Proxy make each client vulnerable to a man in the middle attack. Connections from the Pulsar Java Client to the Pulsar Broker/Proxy and connections from the Pulsar Proxy to the Pulsar Broker are vulnerable. Authentication data is sent before verifying the server’s TLS certificate matches the hostname, which means authentication data could be exposed to an attacker. An attacker can only take advantage of this vulnerability by taking control of a machine 'between' the client and the server. The attacker must then actively manipulate traffic to perform the attack by providing the client with a cryptographically valid certificate for an unrelated host. Because the client sends authentication data before performing hostname verification, an attacker could gain access to the client’s authentication data. The client eventually closes the connection when it verifies the hostname and identifies the targeted hostname does not match a hostname on the certificate. Because the client eventually closes the connection, the value of the intercepted authentication data depends on the authentication method used by the client. Token based authentication and username/password authentication methods are vulnerable because the authentication data can be used to impersonate the client in a separate session. This issue affects Apache Pulsar Java Client versions 2.7.0 to 2.7.4; 2.8.0 to 2.8.3; 2.9.0 to 2.9.2; 2.10.0; 2.6.4 and earlier.","ecosystems":["Maven"],"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":"Improper Hostname Verification in Java Client and Proxy can expose authentication data via MITM","id":"CVE-2022-33681","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"security_feature_bypass","year":"2022"},"n_packages":8,"n_references":1,"next":{"headline":"Disabled Hostname Verification makes Brokers, Proxies vulnerable to MITM attack","id":"CVE-2022-33682"},"packages":[{"ecosystem":"Maven","fixed":["2.7.5"],"introduced":["0"],"last_affected":[],"package":"org.apache.pulsar:pulsar-client","purl":null,"source":"GHSA-c5fp-x2h5-vjv7"},{"ecosystem":"Maven","fixed":["2.7.5"],"introduced":["0"],"last_affected":[],"package":"org.apache.pulsar:pulsar-client","purl":"pkg:maven/org.apache.pulsar/pulsar-client","source":"GHSA-c5fp-x2h5-vjv7"},{"ecosystem":"Maven","fixed":["2.10.1"],"introduced":["2.10.0"],"last_affected":[],"package":"org.apache.pulsar:pulsar-client","purl":null,"source":"GHSA-c5fp-x2h5-vjv7"},{"ecosystem":"Maven","fixed":["2.10.1"],"introduced":["2.10.0"],"last_affected":[],"package":"org.apache.pulsar:pulsar-client","purl":"pkg:maven/org.apache.pulsar/pulsar-client","source":"GHSA-c5fp-x2h5-vjv7"},{"ecosystem":"Maven","fixed":["2.8.4"],"introduced":["2.8.0"],"last_affected":[],"package":"org.apache.pulsar:pulsar-client","purl":null,"source":"GHSA-c5fp-x2h5-vjv7"},{"ecosystem":"Maven","fixed":["2.8.4"],"introduced":["2.8.0"],"last_affected":[],"package":"org.apache.pulsar:pulsar-client","purl":"pkg:maven/org.apache.pulsar/pulsar-client","source":"GHSA-c5fp-x2h5-vjv7"},{"ecosystem":"Maven","fixed":["2.9.3"],"introduced":["2.9.0"],"last_affected":[],"package":"org.apache.pulsar:pulsar-client","purl":null,"source":"GHSA-c5fp-x2h5-vjv7"},{"ecosystem":"Maven","fixed":["2.9.3"],"introduced":["2.9.0"],"last_affected":[],"package":"org.apache.pulsar:pulsar-client","purl":"pkg:maven/org.apache.pulsar/pulsar-client","source":"GHSA-c5fp-x2h5-vjv7"}],"prev":{"headline":"Microsoft Edge (Chromium-based) Elevation of Privilege Vulnerability","id":"CVE-2022-33680"},"products":["Apache Pulsar"],"published":"2022-09-23","related":[{"cvss_score":9.8,"headline":"Authentication with JWT allows use of “none”-algorithm","id":"CVE-2021-22160","kev_date_added":null,"published":"2021-05-26"},{"cvss_score":9.6,"headline":"Apache Pulsar: Incorrect Authorization for Function Worker when using mTLS Authentication through Pulsar Proxy","id":"CVE-2023-30429","kev_date_added":null,"published":"2023-07-12"},{"cvss_score":8.5,"headline":"Apache Pulsar: Improper Input Validation in Pulsar Function Worker allows Remote Code Execution","id":"CVE-2024-27135","kev_date_added":null,"published":"2024-03-12"},{"cvss_score":8.5,"headline":"Apache Pulsar: Pulsar Functions Worker Allows Unauthorized File Access and Unauthorized HTTP/HTTPS Proxying","id":"CVE-2024-27894","kev_date_added":null,"published":"2024-03-12"},{"cvss_score":8.4,"headline":"Apache Pulsar: Pulsar Functions Worker's Archive Extraction Vulnerability Allows Unauthorized File Modification","id":"CVE-2024-27317","kev_date_added":null,"published":"2024-03-12"},{"cvss_score":8.2,"headline":"Apache Pulsar: Improper Authentication for Pulsar Proxy Statistics Endpoint","id":"CVE-2022-34321","kev_date_added":null,"published":"2024-03-12"},{"cvss_score":8.2,"headline":"Apache Pulsar Broker: Incorrect Authorization Validation for Rest Producer","id":"CVE-2023-30428","kev_date_added":null,"published":"2023-07-12"}],"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":"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-05-22","vendors":["Apache Software Foundation"]},"summary":"Delayed TLS hostname verification in Apache Pulsar Java Client allows MITM attackers to intercept authentication data, potentially leading to account takeover.","url":"https://insights.sbomify.com/CVE-2022-33681/"}