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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| authlib | joserfc | <= 1.6.2 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | joserfc | 1.6.3-1 | — |
| Debian 13 | joserfc | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | joserfc | No fix yet | — |
| Ubuntu 26.04 LTS | joserfc | No fix yet | — |
| Ubuntu 25.10 | joserfc | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-joserfc | 1.6.3-1.1 | openSUSE-SU-2026:10293-1 |
| openSUSE Leap 16.0 | python-joserfc | 1.1.0-bp160.2.1 | openSUSE-SU-2026:20322-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | joserfc | < 1.6.3 | 1.6.3 | GHSA-w5r5-m38g-f9f9 |
Advisories 2
- openSUSE-SU-2026:20322-1 Security update for python-joserfc SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2026:10293-1 python311-joserfc-1.6.3-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026