# CVE-2026-27932: joserfc PBES2 p2c Unbounded Iteration Count enables Denial of Service (DoS)

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-02T18:47:37.000Z
- Modified: 2026-09-10T03:50:41.369Z
- Also known as: GHSA-w5r5-m38g-f9f9, PYSEC-2026-2529
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- authlib joserfc: <= 1.6.2
- joserfc (PyPI): before 1.6.3
- hsiaoming joserfc: up to 1.6.2

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/authlib/joserfc/security/advisories/GHSA-w5r5-m38g-f9f9> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/authlib/joserfc/commit/696a9611ab982c45ee2190ed79ca8e1d8e09398f> (patch, 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)

## Sources

- CVE List: [CVE-2026-27932](https://www.cve.org/CVERecord?id=CVE-2026-27932), CVE Terms of Use, modified 2026-03-04
- GitHub Advisory Database: [GHSA-w5r5-m38g-f9f9](https://github.com/advisories/GHSA-w5r5-m38g-f9f9), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-27932](https://nvd.nist.gov/vuln/detail/CVE-2026-27932), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-2529](https://osv.dev/vulnerability/PYSEC-2026-2529), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-27932 · Whole record: https://cve.day/CVE-2026-27932.json · Rebuilt by cve.day 2026-11-25T22:59:15.147Z
