Vulnerability DatabaseCVE-2026-142105

CVE-2026-142105: 
Python vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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).

Exploitation steps

  1. Identify target: Locate a service that uses python-jwcrypto to process JWE tokens or import JWK Sets from external/untrusted input (e.g., an IdM or OAuth token endpoint).
  2. Craft malicious JWE token: Construct a JWE token whose 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.
  3. Send crafted token: Submit the malicious JWE token to the target service's decryption endpoint. The library will invoke JWK(**epk) before performing any authentication tag check, triggering unbounded key generation.
  4. Repeat for amplification: Send multiple concurrent requests with the crafted token to exhaust available memory or CPU across all worker processes, causing the service to become unresponsive or crash.
  5. Alternative — JWK Set attack: If the target imports JWK Sets from attacker-influenced sources, supply a JWK Set entry containing {"generate": "RSA", "size": N} to trigger the same unbounded key generation via JWKSet.import_keyset() (Red Hat Bugzilla, GitHub PR #411).

Indicators of compromise

  • Network: Repeated requests to JWE decryption or JWK Set import endpoints from a single or small set of source IPs; unusually small request payloads (~146 bytes) causing disproportionate server resource consumption.
  • Logs: Application logs showing repeated JWE decryption attempts or JWK Set import operations followed by memory allocation errors, OOM killer events, or worker process crashes; Python tracebacks related to key generation in jwa.py or jwk.py.
  • Process: Worker processes (e.g., 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.
  • System: Sudden drops in service availability or increased response latency on identity management or token validation endpoints coinciding with inbound JWE traffic (Red Hat Bugzilla).

Mitigation and workarounds

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.

Community reactions

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.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

RHEL / CentOS

Affected

RHEL 8

idm:client/python-jwcrypto.src

Affected

RHEL 9

python-jwcrypto.src

Affected

RHEL 10

python-jwcrypto.src

Affected

Source: This report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-m6fh-58r7-x697HIGH8.4
  • Python logoPython
  • fickling
NoYesDec 03, 2026
GHSA-ggjq-x9vq-v787HIGH8.3
  • Python logoPython
  • web-cheacker-mainditect
NoYesDec 03, 2026
GHSA-5gvf-7wqf-r4cvMEDIUM4.7
  • Python logoPython
  • lxml-html-clean
NoYesDec 03, 2026
GHSA-vfhw-gfwp-vxfjMEDIUM4.7
  • Python logoPython
  • lxml-html-clean
NoYesDec 03, 2026
GHSA-j7c5-jjc2-fx3wMEDIUM4
  • Python logoPython
  • hegemony-inventory-netbox
NoYesDec 03, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management