joserfc: Compact JWS size guard allocates attacker-controlled segments before rejection
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in joserfc 1.7.6.
joserfc is a Python library that provides an implementation of several JSON Object Signing and Encryption (JOSE) standards. Prior to 1.7.6, joserfc compact JWS deserialization calls bytes.split() before enforcing the existing aggregate segment-size limits. When attacker-controlled compact serialization bytes reach deserialize_compact(), the split creates copies of the header, payload, and signature segments before ExceededSizeError rejects them, causing an additional allocation approximately proportional to the supplied token. Requests that exhaust available process memory can therefore cause an availability failure even though signature verification fails. This issue is fixed in version 1.7.6.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| authlib | <1.7.6 | ||
| pypi: joserfc | <1.7.6 | 1.7.6 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in joserfc (PyPI), strongest first
Embed
A live severity badge for an advisory, README or ticket