Bug 2588671 - CVE-2026-142105 python-jwcrypto: Unbounded key generation from untrusted JWE epk headers and JWK Set entries [fedora-all]
Summary: CVE-2026-142105 python-jwcrypto: Unbounded key generation from untrusted JWE ...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-jwcrypto
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Simo Sorce
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["efcee259-7371-4848-9211-4...
Depends On:
Blocks: CVE-2026-142105
TreeView+ depends on / blocked
 
Reported: 2026-12-02 13:14 UTC by Vladimir Vasilev
Modified: 2026-12-02 13:14 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

Description Vladimir Vasilev 2026-12-02 13:14:00 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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.