Bug 2588664 (CVE-2026-142105) - CVE-2026-142105 python-jwcrypto: Unbounded key generation from untrusted JWE epk headers and JWK Set entries
Summary: CVE-2026-142105 python-jwcrypto: Unbounded key generation from untrusted JWE ...
Keywords:
Status: NEW
Alias: CVE-2026-142105
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2588671
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-12-02 12:55 UTC by OSIDB Bzimport
Modified: 2026-12-02 13:14 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-12-02 12:55:31 UTC
A flaw was found in python-jwcrypto. The JWK constructor still honours the deprecated `generate` keyword, and two code paths build a JWK from untrusted data through that constructor: the ECDH-ES `epk` header processed during JWE decryption, and individual entries imported through JWKSet. An attacker-supplied `epk` header or JWK Set entry such as {"generate": "oct", "size": ...} makes jwcrypto generate a key of the attacker's chosen type and unbounded size, for JWE before any authentication tag check and without any key material. A crafted 146-byte token was shown to cause roughly 1.1 GB of memory allocation per decryption attempt, and a large RSA size stalls the worker in key generation for minutes, potentially resulting in a denial of service.


Note You need to log in before you can comment on or make changes to this bug.