CVE-2026-27932CWE-770

joserfc PBES2 p2c Unbounded Iteration Count enables Denial of Service (DoS)

High · published March 3, 2026

CVSS v3.1
7.5
EPSS
0%
Percentile
27.1
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00347 · 27.1th percentile
Weakness
CWE-770 · Allocation of Resources Without Limits or Throttling
Published
2026-03-03T22:48Z
EPSS history
Timeline
  • 03 MAR 22:48Z
    joserfc PBES2 p2c Unbounded Iteration Count enables Denial of Service (DoS)
    cvelistv5