Skip to main content

python-cryptography EUVDEUVD-2026-52450

| CVE-2026-69249 HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-08-03 GitHub_M GHSA-jwv3-5hgf-82ww
8.7
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Submit crafted TLS handshake or certificate chain with duplicate self-signed intermediates
  2. Delivery
    Trigger recursive build_chain_inner path-building
  3. Exploit
    Candidates re-explored exponentially without deduplication
  4. Execution
    CPU exhaustion per validation attempt
  5. Persist
    Sustained low-volume requests stall the service
  6. Impact
    Denial of service achieved

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption 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 target application invokes python-cryptography's X.509 path validator (build_chain_inner) against a certificate chain that includes attacker-controlled content - specifically chains where duplicate self-signed certificates appear as intermediate candidates. Highest-risk deployment patterns include TLS mutual authentication (where clients present certificate chains during handshake, before any application-layer authentication), OCSP or CMS/PKCS#7 signature validation over untrusted content, and custom PKI workflows that accept externally sourced intermediate certificates. Applications that only validate certificates sourced from a fully trusted, internally controlled store and never process externally supplied intermediates are not affected. The vulnerability is exclusively a DoS vector - the vendor confirms correctness of validation is unaffected, so confidentiality and integrity cannot be compromised via this path.

Impact

The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H scores 8.7, accurately reflecting network-accessible, zero-prerequisite exploitation with high availability impact and confirmed absence of confidentiality or integrity consequences. Real-world risk is conditional on application exposure: the vulnerability is triggered only when attacker-influenced certificate chains reach the path validator, so services performing TLS mutual authentication, PKCS#7/CMS verification, or custom PKI validation against untrusted inputs are at meaningful risk, while applications that validate only pre-vetted, internally sourced certificates are not. No active exploitation is confirmed (absent from CISA KEV) and no public exploit code has been identified at time of analysis, suggesting the current threat is primarily theoretical DoS rather than active campaign. The finding was identified by an AI coding agent (Codex) via Trail of Bits' Patch The Planet project and manually reviewed before submission - source quality is high.

Exploit ScenarioDerived

An attacker submits a crafted TLS client certificate chain to a service performing mutual TLS authentication - the chain contains many copies of the same self-signed intermediate certificate. Each recursive build_chain_inner call re-explores all duplicate candidates without deduplication, causing CPU consumption to grow exponentially with the number of duplicates. Even a modestly sized crafted chain (~10-15 duplicate self-signed intermediates) can stall the validator for several seconds per connection, requiring minimal attacker bandwidth to sustain a denial-of-service condition against the validating service.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 03, 2026

Certificate path building in python-cryptography before 49.0.0 is exploitable as a denial-of-service vector by attackers who can supply crafted X.509 chains containing duplicate self-signed intermediate certificates. The Rust-based build_chain_inner function explores issuer candidates recursively without deduplicating previously analyzed entries, causing computational work to grow exponentially with the number of duplicates present - empirically exceeding 5 seconds per rejection in testing. No active exploitation has been confirmed (not in CISA KEV) and no public exploit code has been identified; the fix shipped in 49.0.0 bounds path-building via a global signature-check budget.

RemediationAI

Upgrade the cryptography package to version 49.0.0 or later via pip install --upgrade cryptography, which introduces the 128-operation signature-check budget that bounds worst-case path-building cost regardless of input structure; this is the only confirmed fix. The upstream patch is in commit 4a12cf49675a184e47f912b00b04f3a629283582 and pull request https://github.com/pyca/cryptography/pull/14960. If immediate upgrade is blocked, the most effective compensating control is to restrict the application so it never passes externally supplied intermediate certificates to the path validator - for example, by disabling TLS client certificate verification, enforcing that all intermediates are sourced from a pinned internal store, or validating chain uniqueness at the application boundary before invocation. These workarounds are fragile and operationally costly; they do not eliminate the root cause and should be treated as temporary bridges to patching.

Affected VersionsENISA

cryptography < 49.0.0

Affected Packages

pypi cryptography fix: 49.0.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerable component is the Rust x509-verification crate (cryptography-x509-verification) embedded within the pyca/cryptography Python package, which implements RFC 5280 certificate path validation. CWE-400 (Uncontrolled Resource Consumption) manifests in build_chain_inner: each call to potential_issuers collects all candidate issuers without filtering previously visited ones, so duplicate self-signed certificates in the untrusted intermediate set cause the recursion tree to branch exponentially at each depth level. Although the max_chain_depth policy cap guarantees eventual termination, the exponential fan-out within that bound is sufficient for a DoS amplification. CPE cpe:2.3:a:pyca:cryptography:*:*:*:*:*:*:*:* covers all versions through 48.0.0. The fix (PR #14960, commit 4a12cf49) introduces a global signature-check budget defaulting to 128 operations - matching Go's and rustls-webpki's defaults - and adds AKI/SKI-based candidate ordering to prioritize likely issuers and preserve budget efficiency.

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 (GitHub_M) PRIMARY 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.5 HIGH

Unauthenticated network submission of certificate chains triggers CPU exhaustion with no confidentiality or integrity impact, scoped to the vulnerable system only.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Red Hat 7.5 HIGH

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Aug 03, 2026 - 22:17 EUVD
CVE Published
Aug 03, 2026 - 21:26 cve.org
HIGH 8.7

DescriptionCVE.org

python-cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. Prior to 49.0.0, when resolving invalid certificate chains that include duplicate copies of self-signed certificates, the processing recursively invokes the same candidate, leading to an exponential blowup. Although the limitation that the chain depth cannot exceed a specified maximum depth prevents unbounded recursion and guarantees termination, an attacker-controlled certificate chain can lead the processing to easily take more than 5s to reject in testing. This amplification could form the basis for a resource exhaustion denial of service attack. The core issue arises in the recursive nature of build_chain_inner, which does not de-duplicate against previously analyzed candidates. As the correctness of validation is not affected, the integrity of a system cannot be compromised through this vector, only its availability. This issue is fixed in 49.0.0.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 12 pypi packages depend on cryptography (11 direct, 1 indirect)

Ecosystem-wide dependent count for version 42.0.0.

Executive ViewAI

Why It Matters

python-cryptography versions before 49.0.0 expose applications to denial-of-service attacks when processing untrusted X.509 certificate chains, allowing attackers to exhaust server resources during certificate validation. Organizations should prioritize patching to protect service availability in authentication and TLS workflows.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
High
most-downloaded Python cryptography library, broad ecosystem dependency
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Social Media
4
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA MSRC Vendor CIRCL GitHub VulDB

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 HIGH
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: +20
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.

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

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Not-Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Not-Affected
SUSE Linux Enterprise Micro 5.3 Not-Affected

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