CVE-2026-27932
HIGH 7.5CVSS 3.1joserfc's PBES2 p2c Unbounded Iteration Count enables Denial of Service (DoS)
joserfc is a Python library that provides an implementation of several JSON Object Signing and Encryption (JOSE) standards. In 1.6.2 and earlier, a resource exhaustion vulnerability in joserfc allows an unauthenticated attacker to cause a Denial of Service (DoS) via CPU exhaustion. When the library decrypts a JSON Web Encryption (JWE) token using Password-Based Encryption (PBES2) algorithms, it reads the p2c (PBES2 Count) parameter directly from the token's protected header. This parameter defines the number of iterations for the PBKDF2 key derivation function. Because joserfc does not validate or bound this value, an attacker can specify an extremely large iteration count (e.g., 2^31 - 1), forcing the server to expend massive CPU resources processing a single token. This vulnerability exists at the JWA layer and impacts all high-level JWE and JWT decryption interfaces if PBES2 algorithms are allowed by the application's policy.
- Published
- 3 Mar 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-770
- Also known as
- GHSA-w5r5-m38g-f9f9PYSEC-2026-2529
- Sources
- NVDJSONOSV GHSA-w5r5-m38g-f9f9JSONOSV PYSEC-2026-2529JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | hsiaoming | joserfccpe:2.3:a:hsiaoming:joserfc:*:*:*:*:*:python:*:* |
<= 1.6.2 | |
| OSV | PyPI | joserfc | < 1.6.3 | 1.6.3 |
References
- https://github.com/authlib/joserfc/commit/696a9611ab982c45ee2190ed79ca8e1d8e09398f · Patch, WEB
- https://github.com/authlib/joserfc/security/advisories/GHSA-w5r5-m38g-f9f9 · Exploit, Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-27932 · ADVISORY
- https://github.com/authlib/joserfc/commit/696a961 · WEB
- https://github.com/authlib/joserfc · PACKAGE
- https://pypi.org/project/joserfc · PACKAGE
- https://github.com/advisories/GHSA-w5r5-m38g-f9f9 · ADVISORY
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 3 Mar 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 2 Mar 2026)