{"answers":{"affected":"6 open source packages ship an affected version, including org.apache.pulsar:pulsar-broker-auth-sasl. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-51437 in the wild and no public exploit code.","fix":"Upgrade org.apache.pulsar:pulsar-broker-auth-sasl to a fixed version for your release line: 2.11.3, 3.0.2 or 3.1.1.","what":"CVE-2023-51437 is a high-severity vulnerability in Apache Pulsar, published on 7 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-51437 and fix it if it is affected.\n\nWhat it is: CVE-2023-51437 is a high-severity vulnerability in Apache Pulsar, published on 7 Feb 2024. 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-2023-51437 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.pulsar:pulsar-broker-auth-sasl (Maven): affected all versions; fixed in 2.11.3\n- org.apache.pulsar:pulsar-broker-auth-sasl (Maven): affected all versions; fixed in 2.11.3\n- org.apache.pulsar:pulsar-broker-auth-sasl (Maven): affected from 3.0.0; fixed in 3.0.2\n- org.apache.pulsar:pulsar-broker-auth-sasl (Maven): affected from 3.0.0; fixed in 3.0.2\n- org.apache.pulsar:pulsar-broker-auth-sasl (Maven): affected from 3.1.0; fixed in 3.1.1\n- org.apache.pulsar:pulsar-broker-auth-sasl (Maven): affected from 3.1.0; fixed in 3.1.1\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-2023-51437/ (Markdown: https://insights.sbomify.com/CVE-2023-51437/index.md)","id":"CVE-2023-51437","markdown":"https://insights.sbomify.com/CVE-2023-51437/index.md","name":"CVE-2023-51437","record":{"aliases":["GHSA-c57v-4vg5-cm2x"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["privilege_escalation","security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Apache Pulsar","requires_auth":"none","summary":"Attackers can exploit timing discrepancies in SASL token verification to forge valid tokens, bypassing authentication in Apache Pulsar.","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":7.4,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-203","name":"Observable Discrepancy"}],"description":"Observable timing discrepancy vulnerability in Apache Pulsar SASL Authentication Provider can allow an attacker to forge a SASL Role Token that will pass signature verification.\nUsers are recommended to upgrade to version 2.11.3, 3.0.2, or 3.1.1 which fixes the issue. Users should also consider updating the configured secret in the `saslJaasServerRoleTokenSignerSecretPath` file.\n\nAny component matching an above version running the SASL Authentication Provider is affected. That includes the Pulsar Broker, Proxy, Websocket Proxy, or Function Worker.\n\n2.11 Pulsar users should upgrade to at least 2.11.3.\n3.0 Pulsar users should upgrade to at least 3.0.2.\n3.1 Pulsar users should upgrade to at least 3.1.1.\nAny users running Pulsar 2.8, 2.9, 2.10, and earlier should upgrade to one of the above patched versions.\n\nFor additional details on this attack vector, please refer to  https://codahale.com/a-lesson-in-timing-attacks/ .","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":"Apache Pulsar: Timing attack in SASL token signature verification","id":"CVE-2023-51437","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"security_feature_bypass","year":"2023"},"n_packages":6,"n_references":2,"next":{"headline":"Auth bypass in SIMATIC IPC1047E","id":"CVE-2023-51438"},"packages":[{"ecosystem":"Maven","fixed":["2.11.3"],"introduced":["0"],"last_affected":[],"package":"org.apache.pulsar:pulsar-broker-auth-sasl","purl":null,"source":"GHSA-c57v-4vg5-cm2x"},{"ecosystem":"Maven","fixed":["2.11.3"],"introduced":["0"],"last_affected":[],"package":"org.apache.pulsar:pulsar-broker-auth-sasl","purl":"pkg:maven/org.apache.pulsar/pulsar-broker-auth-sasl","source":"GHSA-c57v-4vg5-cm2x"},{"ecosystem":"Maven","fixed":["3.0.2"],"introduced":["3.0.0"],"last_affected":[],"package":"org.apache.pulsar:pulsar-broker-auth-sasl","purl":null,"source":"GHSA-c57v-4vg5-cm2x"},{"ecosystem":"Maven","fixed":["3.0.2"],"introduced":["3.0.0"],"last_affected":[],"package":"org.apache.pulsar:pulsar-broker-auth-sasl","purl":"pkg:maven/org.apache.pulsar/pulsar-broker-auth-sasl","source":"GHSA-c57v-4vg5-cm2x"},{"ecosystem":"Maven","fixed":["3.1.1"],"introduced":["3.1.0"],"last_affected":[],"package":"org.apache.pulsar:pulsar-broker-auth-sasl","purl":null,"source":"GHSA-c57v-4vg5-cm2x"},{"ecosystem":"Maven","fixed":["3.1.1"],"introduced":["3.1.0"],"last_affected":[],"package":"org.apache.pulsar:pulsar-broker-auth-sasl","purl":"pkg:maven/org.apache.pulsar/pulsar-broker-auth-sasl","source":"GHSA-c57v-4vg5-cm2x"}],"prev":{"headline":"Cross-site scripting in UNIVERSAL PASSPORT RX","id":"CVE-2023-51436"},"products":["Apache Pulsar"],"published":"2024-02-07","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":"2024-08-02","vendors":["Apache Software Foundation"]},"summary":"Attackers can exploit timing discrepancies in SASL token verification to forge valid tokens, bypassing authentication in Apache Pulsar.","url":"https://insights.sbomify.com/CVE-2023-51437/"}