Patchfirst
CVE-2021-22160 EPSS 52.9%

Authentication with JWT allows use of “none”-algorithm

Fix:upgrade pulsar to 2.7.2 or later Details ↓

Apache Software Foundation · Apache Pulsar

Summary

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.

Official description · CVE.org

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

Breakdown
19.8 / 100
Exploited
Not confirmed
Reports
0
Tactics
0/15

Disclosed on 26 May 2021. No public exploit code or confirmed exploitation is recorded.

4 fixes in pulsar over 2 years. The latest fix listed for pulsar is 2.11.1.

Fixes in pulsarMaven package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 2.7.2CVE-2021-2216026 May 2021
  2. 2.8.1CVE-2021-415711 Feb 2022
  3. 2.9.2CVE-2022-2428023 Sep 2022
  4. 2.11.1CVE-2023-3042912 Jul 2023Latest listed

Affected versions and fixes

as published in the CVE record

Apache Software Foundation Apache Pulsar

Affected: >= Apache Pulsar, < 2.7.1

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: org.apache.pulsar:pulsar.

Mavenorg.apache.pulsar:pulsarGHSA-3cv4-xxv7-934q

Upgrade to 2.7.2 or later

Set the version to 2.7.2 or later in your pom.xml or build.gradle.

The first fix for CVE-2021-22160. No other CVE tracked by Patchfirst affects this package.

Affected versions

If you runUpgrade to
All versions before 2.7.22.7.2

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

References

8 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close