{"id":"CVE-2021-22160","published":"2021-05-26T12:22:31Z","modified":"2024-08-03T18:37:18Z","title":"Authentication with JWT allows use of “none”-algorithm","vendor":"Apache","product":"Apache Pulsar","tier":"tail","description":{"text":"If Apache Pulsar is configured to authenticate clients using tokens based on JSON Web Tokens (JWT), the signature of the token is not validated if the algorithm of the presented token is set to \"none\". This allows an attacker to connect to Pulsar instances as any user (incl. admins).","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.52926,"percentile":0.98991,"provenance":"source"},"cwes":[],"references":[{"url":"https://lists.apache.org/thread.html/r347650d15a3e9c5f58b83e918b6ad6dedc2a63d3eb63da8e6a7be87e%40%3Cusers.pulsar.apache.org%3E","tags":["x_refsource_MISC"]},{"url":"https://lists.apache.org/thread.html/rf2e90942996dceebac8296abf39257cfeb5ae918f82f7af3d37a48c5%40%3Cdev.pulsar.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/ra49cb62105154e4795b259c79a6b27d63bfa2ab5787ff8529b089550%40%3Cdev.pulsar.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/ra49cb62105154e4795b259c79a6b27d63bfa2ab5787ff8529b089550%40%3Cusers.pulsar.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r8e545559781231a83bf0644548c660255859e52feb86bbfcd42590da%40%3Cdev.pulsar.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r9a12b4da2f26ce9b8f7e7117a879efaa973dab7e54717bbc7923fab1%40%3Cdev.pulsar.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/rbe845aa1573a61769b9c5916c62971f4b10de87c2ea5f38a97f0cf84%40%3Cdev.pulsar.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/rca54f4b26ba5e6f2e39732b47ec51640e89f57e3b6a38ac3bab314df%40%3Cdev.pulsar.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":19.8,"factors":[{"name":"EPSS percentile","points":19.8}]},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache Pulsar","versions":[">= Apache Pulsar, < 2.7.1"]}],"affected":[{"ecosystem":"Maven","package":"org.apache.pulsar:pulsar","vulnerableRanges":["<2.7.2"],"patched":["2.7.2"],"from":["GHSA-3cv4-xxv7-934q"],"provenance":"source"}],"summary":{"text":"Apache Pulsar, when configured to authenticate clients with JSON Web Token (JWT) tokens, fails to validate token signatures whenever the presented token's algorithm is set to \"none\". An attacker who can reach a Pulsar instance with JWT authentication enabled can craft an unsigned token and connect as any user, including administrators.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T03:46:36Z"},"euvd":{"id":"EUVD-2021-1254","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-22160","published":"2021-05-26","fixed":"2.7.2","kev":false},{"cve":"CVE-2021-41571","published":"2022-02-01","fixed":"2.8.1","kev":false,"link":{"from":"CVE-2021-22160","to":"CVE-2021-41571","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.apache.pulsar:pulsar","fromFixed":"2.7.2","toFixed":"2.7.4","daysApart":251}]}},{"cve":"CVE-2022-24280","published":"2022-09-23","fixed":"2.9.2","kev":false},{"cve":"CVE-2023-30429","published":"2023-07-12","fixed":"2.11.1","kev":false}],"package":"Maven:org.apache.pulsar:pulsar"}}