Authlib joserfc
joserfc: Unbounded JWE General JSON `recipients` Array Leads to CPU Exhaustion (DoS) via Repeated RSA Private-Key Decryption
joserfc is a Python library that provides an implementation of several JSON Object Signing and Encryption (JOSE) standards. Prior to 1.7.5, joserfc.jwe.decrypt_json() accepts a JWE General JSON Serialization recipients array without a count limit and calls decrypt_cek() for every entry. An unauthenticated attacker who can submit a JWE to an endpoint using an RSA key-management algorithm can choose the number of private-key decryption operations performed by one request. The verify_all_recipients option does not reduce this work because the affected loop processes every recipient before consulting that setting, allowing repeated requests to exhaust service CPU without affecting confidentiality or integrity. This issue is fixed in version 1.7.5.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.7.5
Fixed in 1.7.5
Mitigation
Upgrade joserfc to 1.7.5 or later.
References
- Vendor advisory github.com/authlib/joserfc/security/advisories…
- Patch github.com/authlib/joserfc/commit/d6dc8df6c760…
- Release notes github.com/authlib/joserfc/releases/tag/1.7.5
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.