9.8critical
Authentication with JWT allows use of “none”-algorithm
- Severity
- 9.8critical CVSS:3.1 by NVD
- Exploit likelihood
- 52.9% (higher than 98% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- apache
- Also known as
- GHSA-3cv4-xxv7-934q
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
| Product or package | Versions | Reported by |
|---|---|---|
| Apache Software Foundation Apache Pulsar | from Apache Pulsar before 2.7.1 | CVE List |
| org.apache.pulsar:pulsar (Maven) | before 2.7.2 | GitHub Advisory Database |
| apache pulsar | before 2.7.1 | NVD |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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).
NVD (es)
Si Apache Pulsar está configurado para autenticar clientes utilizando tokens basados ??en JSON Web Tokens (JWT), la firma del token no es comprobada si el algoritmo del token presentado se establece en "none". Esto permite a un atacante conectarse a las instancias de Pulsar como cualquier usuario (incluidos los administradores)
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-22160 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3cv4-xxv7-934q changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2021-22160 changed 2026-06-17 | Public domain |