
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-142105 is a Denial of Service (DoS) vulnerability in python-jwcrypto (the jwcrypto library maintained by the latchset project) caused by unbounded cryptographic key generation from untrusted JWE epk headers and JWK Set entries. A remote, unauthenticated attacker can send crafted JSON Web Encryption (JWE) header data or JSON Web Key (JWK) set entries to force the library to generate cryptographic keys of arbitrary types and unbounded sizes before any authentication check occurs, leading to excessive memory allocation or prolonged CPU utilization. The vulnerability was disclosed on December 2, 2026, with a fix merged into the upstream repository on December 1, 2026. Affected products include Red Hat's python-jwcrypto packages (including idm:DL1/python-jwcrypto and idm:client/python-jwcrypto). It carries a CVSS v3.1 base score of 5.3 (Medium) (Red Hat CVE, Red Hat Bugzilla).
The root cause is CWE-770 (Allocation of Resources Without Limits or Throttling). The JWK.__init__ constructor in jwcrypto still honors the deprecated generate keyword parameter. Two code paths pass untrusted external data directly to JWK(**data): the ECDH-ES epk header during JWE decryption (_EcdhEs.unwrap() in jwa.py) and individual entries imported via JWKSet.import_keyset(). An attacker can craft a JWE token or JWK Set entry containing {"generate": "oct", "size": N} or {"generate": "RSA", "size": N}, causing the library to generate a new key of the attacker's chosen type and unbounded size. For ECDH-ES, this occurs before any authentication tag check — a crafted 146-byte token was demonstrated to cause approximately 1.1 GB of memory allocation per decryption attempt, and a large RSA key size can stall the worker process for minutes (Red Hat Bugzilla, GitHub PR #411).
Successful exploitation results in excessive memory allocation or prolonged CPU exhaustion in any application using python-jwcrypto to process JWE tokens or import JWK Sets from untrusted sources. In Red Hat environments, python-jwcrypto is used within Identity Management (IdM) and token handling components, meaning worker processes handling authentication or token validation can be rendered unresponsive or crash. There is no confidentiality or integrity impact — the vulnerability is limited to availability (DoS). Lateral movement is not directly enabled, but disruption of identity management services could indirectly impair access control enforcement (Red Hat CVE, Red Hat Bugzilla).
No public proof-of-concept exploit code or in-the-wild exploitation has been reported as of the disclosure date. The EPSS score is 0.0, indicating very low probability of near-term exploitation (Feedly). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires no authentication, no user interaction, and low attack complexity — any attacker able to send a crafted JWE token or JWK Set to a vulnerable endpoint can trigger the DoS condition (Red Hat CVE).
epk header contains a JSON object with the deprecated generate keyword, specifying a large key type and size — for example, {"generate": "RSA", "size": 65536} or {"generate": "oct", "size": 8589934592} to trigger gigabyte-scale memory allocation.JWK(**epk) before performing any authentication tag check, triggering unbounded key generation.{"generate": "RSA", "size": N} to trigger the same unbounded key generation via JWKSet.import_keyset() (Red Hat Bugzilla, GitHub PR #411).jwa.py or jwk.py.python, gunicorn, uwsgi) consuming abnormally high memory (gigabytes) or CPU (near 100% for extended periods) during JWE processing; processes being killed by the OS OOM killer.The upstream fix was merged into the latchset/jwcrypto main branch on December 1, 2026 (commit 5071126, PR #411), which changes _EcdhEs.unwrap() and JWKSet.import_keyset() to build keys using JWK() + import_key() instead of JWK(**data), preventing the generate keyword from being honored on untrusted input (GitHub PR #411). Organizations should update python-jwcrypto to a version incorporating this fix as soon as packages are available. Red Hat has noted that no configuration-based mitigation is currently available that meets their deployment criteria; upgrading to a patched package version is the recommended remediation (Red Hat CVE). As a temporary measure, restrict network access to JWE decryption and JWK Set import endpoints to trusted sources only.
Red Hat classified this vulnerability as having Moderate impact for Red Hat Enterprise Linux, noting that exploitation is limited to resource exhaustion without data exposure or integrity compromise (Red Hat CVE). The issue was discovered and fixed by a contributor identified as iefken (GitHub), with the fix noted as having been found with the assistance of Claude (an AI tool) and then reviewed and confirmed by the reporter. The upstream maintainer (simo5) approved and merged the fix promptly on December 1, 2026, one day before public disclosure (GitHub PR #411). No significant broader media coverage or social media discussion has been identified at this time.
Fix availability across major Linux distributions and their releases.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."