Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach JWE/JWKS processing endpoint
-
DeliverySend token with crafted 'epk'/'generate' member
-
ExploitLibrary generates unbounded key pre-auth
-
ExecutionExcessive CPU/memory consumption
-
ImpactApplication unresponsive or crash
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the application pass attacker-controlled data into jwcrypto's key-import paths before authentication: specifically an ECDH-ES JWE whose 'epk' (ephemeral public key) header is deserialized during JWE decryption (jwa.py unwrap), or a JWK Set imported via JWKSet.from_json/import_keyset from an untrusted source such as a jwks_uri or a client-registration document (jwk.py). The concrete trigger is a 'generate' member (with a 'size'/type such as 'RSA'/2048 or 'oct'/large size) in that attacker-supplied JWE header or JWK entry, which the old JWK(**data) constructor honored, causing the library to generate an arbitrary-type, unbounded-size key. Limiting factors: the application must actually accept and process JWE tokens or import JWK sets from untrusted parties - a service that only issues tokens, or that imports JWKS solely from trusted internal sources, is not exposed. No authentication is required (PR:N) and no user interaction is needed (UI:N), and processing occurs prior to cryptographic authentication, so there is no credential or signature barrier for a reachable endpoint. Impact is limited to availability (resource exhaustion/crash); there is no confidentiality or integrity effect. |
| Impact | This is a moderate-severity, availability-only Denial of Service with no confidentiality or integrity impact, which the CVSS:3.1 base vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L = 5.3) captures accurately: it is network-reachable, low-complexity, and - importantly - pre-authentication, since the library generates keys from attacker-supplied 'generate' members before any cryptographic verification occurs. The signals are mutually consistent and point to a real-but-bounded priority rather than a top-tier emergency: Red Hat's own decision label is 'this_month' (not act_now/emergency), there is no CISA KEV listing, and no EPSS score is supplied in the input. No confirmed working exploit is provided - the only code artifact is the upstream fix (latchset/jwcrypto PR #411), whose added tests demonstrate the triggering inputs but serve as regression tests for the patch, not as published attack tooling. The practical risk is therefore driven by exposure rather than exploitation maturity: any service that deserializes untrusted JWE tokens or imports JWK sets from untrusted endpoints is reachable without credentials, but the worst realistic outcome is resource exhaustion (memory/CPU) and process unresponsiveness, not code execution or data loss. Missing data to note explicitly: no EPSS probability, no KEV status, and no fixed version string are present in the supplied evidence, so patch targeting must be confirmed against the Red Hat advisory and upstream release notes. |
| Exploit ScenarioDerived | An attacker sends a service a JWE whose 'epk' header (or a JWK set fetched from an attacker-influenced jwks_uri/client-registration document) contains a deprecated 'generate' member specifying a large key type and size, e.g. {'generate': 'RSA', 'size': ...}. Because jwcrypto processes this before cryptographic authentication, the library attempts to generate the requested key, consuming excessive memory or CPU and rendering the application unresponsive or causing it to crash. No authenticated session is required (PR:N); no public weaponized exploit is identified, though the fix PR's tests show the exact triggering structure. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Deserialization of attacker-supplied JWE headers or JWK Set entries in the python-jwcrypto library lets a remote attacker force the library to generate cryptographic keys of an arbitrary type and unbounded size before any cryptographic authentication takes place, exhausting memory or CPU and rendering the application unresponsive or crashed. Network-reachable, low-complexity and pre-authentication per the assessed vector (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L = 5.3), but availability-only - there is no confidentiality or integrity impact. Exposure is limited to applications that decrypt ECDH-ES JWEs whose 'epk' header is attacker-controlled, or that import JWK Sets from untrusted sources such as a jwks_uri or a client-registration document; no public exploit code or CISA KEV entry was identified at time of analysis, and the upstream fix is a pull request (PR #411) whose inclusion in a tagged release is not independently confirmed.
RemediationAI
Vendor-released patch details per branch are held in the Red Hat advisory (https://access.redhat.com/security/cve/CVE-2026-142105) and Bugzilla 2588664; at the upstream level an upstream fix is available only as the pull request https://github.com/latchset/jwcrypto/pull/411 (a commit/PR, not an independently confirmed tagged release), so verify the release notes of the jwcrypto version you deploy before assuming the fix is present. Where the update cannot be applied immediately, the effective compensating control is to stop attacker-controlled data from reaching the two vulnerable constructors: reject any JWE whose protected header 'epk' object is not strictly limited to a 'kty'/'crv'/'x'/'y' (or RSA n/e) shape - in particular reject any header or JWK entry containing a 'generate' member - and only import JWK Sets from explicitly trusted, pinned sources rather than arbitrary jwks_uri or client-registration documents. The trade-off is that strict shape validation may break non-conforming but legitimate clients, and restricting JWKS sources removes dynamic key rotation from untrusted tenants. Additionally, bound the blast radius at the process level (per-request memory/CPU limits, worker timeouts, or running the decryption path in a constrained subprocess) so that an oversized key generation degrades a single worker rather than the service; this limits but does not remove the impact and adds operational complexity to worker pooling.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-770 (Allocation of Resources Without Limits or Throttling) in the python-jwcrypto JOSE implementation. The library's JWK class exposes a deprecated 'generate' parameter; when a JWK object was constructed with JWK(data) from untrusted document data, a 'generate' member (optionally with a 'size' or curve/type such as 'RSA'/2048 or 'oct' with a large size) was honoured and caused the constructor to mint a brand-new key of the sender's choosing instead of merely importing the supplied key material. Two reachable paths exist: (1) jwk.py JWKSet.import_keyset / JWKSet.from_json, which built each entry with JWK(jwk) - relevant when a key set is fetched from an untrusted jwks_uri or a client-registration document; and (2) jwa.py, in the ECDH-ES unwrap path, which built the ephemeral public key from the token header with JWK(headers['epk']). In both cases the work happens during parsing/decryption, i.e. strictly before signature or authentication checks, so an unauthenticated attacker reaches it directly. The upstream fix (GitHub PR #411) replaces constructor-from-dict with an explicit empty JWK() followed by import_key(data), which imports real key values as given and ignores any 'generate' member; the accompanying regression tests assert that generate_key() is never called for keyset entries such as {"generate": "oct", "size": 256} or {"generate": "RSA", "size": 2048} and for ECDH-ES 'epk' headers, which now raise InvalidJWEData instead.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Pre-authentication, network-reachable key generation from attacker input with no credential or interaction barrier (AV:N/AC:L/PR:N/UI:N); impact is resource exhaustion only, so C:N/I:N/A:L.
Primary rating from Vendor (redhat).
CVSS VectorNVD
DescriptionNVD
A flaw was found in python-jwcrypto. A remote attacker can trigger a Denial of Service (DoS) by sending crafted JSON Web Encryption (JWE) header data or JSON Web Key (JWK) set entries that force the library to generate cryptographic keys of arbitrary types and unbounded sizes. This processing occurs prior to cryptographic authentication, allowing an attacker to cause excessive memory allocation or prolonged CPU utilization during key generation. As a result, the application can become unresponsive or crash.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Affected Products (CPE)NVD
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-141532
NVD
CVE.org
GitHub
VulDB
Exploit-DB