Skip to main content

python-jwcrypto CVE-2026-142105

| EUVDEUVD-2026-141532 MEDIUM
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-12-02 redhat
5.3
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach JWE/JWKS processing endpoint
  2. Delivery
    Send token with crafted 'epk'/'generate' member
  3. Exploit
    Library generates unbounded key pre-auth
  4. Execution
    Excessive CPU/memory consumption
  5. Impact
    Application 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (redhat) PRIMARY MEDIUM
NVD 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 5.3 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (redhat).

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

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

Prevalence
Medium
common Python JOSE/JWT library, bundled in Red Hat Enterprise Linux dependencies
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS N/A
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)NVD

cpe:2.3:a:red_hat:red_hat_enterprise_linux_10:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_enterprise_linux_7:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_enterprise_linux_8:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_enterprise_linux_8:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_enterprise_linux_9:*:*:*:*:*:*:*:*

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy