Vulnerability · Published May 26, 2021 · Assigned by apache

CVE-2021-22160Authentication with JWT allows use of “none”-algorithm

Critical 9.8

In plain English

A critical-severity security flaw in Apache Pulsar from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 52.9% (higher than 99% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)52.9%top 1.0% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

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).

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavenorg.apache.pulsar:pulsar2.7.2GHSA-3cv4-xxv7-934q

Affected products (as reported)

VendorProductVersions
Apache Software Foundation Apache Pulsar Apache Pulsar – before 2.7.1

References