CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-69249

CVE-2026-69249: Exponential Backtracking Denial of Service in python-cryptography X.509 Verification Engine

Alon Barad
Alon Barad
Software Engineer

Aug 3, 2026·5 min read·246 visits

Executive Summary (TL;DR)

Unauthenticated remote attackers can cause complete CPU exhaustion and Denial of Service (DoS) on endpoints using python-cryptography by submitting malformed certificate chains containing duplicate self-signed intermediates, triggering an exponential path-building backtracking loop.

An uncontrolled resource consumption vulnerability (CWE-400) exists in the python-cryptography library's Rust-based X.509 verification engine. The flaw allows unauthenticated remote attackers to trigger severe CPU exhaustion and Denial of Service (DoS) by supplying specially crafted certificate chains containing duplicate self-signed certificates, forcing the recursive path builder into an exponential state-search loop.

Vulnerability Overview

The python-cryptography library utilizes a Rust-based path validation module, cryptography-x509-verification, to construct and validate certificate paths from an end-entity leaf certificate back to a trusted anchor.

This engine exposes a critical attack surface on any server, application, or gateway that accepts client certificates, validates S/MIME signatures, or performs custom X.509 validations on untrusted user-supplied certificate inputs.

The vulnerability is classified under CWE-400: Uncontrolled Resource Consumption. Under adversarial conditions, the verification engine is susceptible to algorithmic complexity exploitation, wherein a relatively short, maliciously structured validation chain triggers high CPU usage and complete system unavailability.

Root Cause Analysis

The path building process in ChainBuilder::potential_issuers functions by mapping subject names to find candidate parents from the trust store and the untrusted intermediate certificate pool.

Prior to version 49.0.0, when the pool of untrusted intermediates contained multiple identical or structurally identical copies of a self-signed certificate, the potential_issuers method retrieved and processed each duplicate independently.

Because the recursive function build_chain_inner failed to deduplicate these candidate issuers or bound the number of cryptographic signature operations, the resolver entered a recursive backtracking search. For $k$ duplicate intermediate certificates and a maximum path search depth $d$, the engine performs up to $k^d$ recursive states and corresponding signature validations. This combinatorial explosion quickly saturates the host CPU.

Code Analysis and Remediation Patch

The vulnerability was resolved in commit 4a12cf49675a184e47f912b00b04f3a629283582 by implementing two complementary mitigation policies within the Rust engine.

First, a global signature validation budget of 128 check operations is introduced. Every signature verification decrements this budget, preventing unbound verification cycles. Second, candidate parent certificates are sorted and prioritized based on matching authority and subject key identifiers (AKI/SKI), pushing unlikely or duplicate name-colliding certificates to the bottom of the evaluation list.

Below is the structured representation of the path traversal workflow showing how validation flow has been bounded:

Let us review the key differences in src/rust/cryptography-x509-verification/src/lib.rs:

struct Budget {
    name_constraint_checks: usize,
+   signature_checks: usize,
}
 
impl Budget {
+   const DEFAULT_SIGNATURE_CHECK_LIMIT: usize = 1 << 7; // Max 128 checks
 
+   fn signature_check<'chain, B: CryptoOps>(&mut self) -> ValidationResult<'chain, (), B> {
+       self.signature_checks = self.signature_checks.checked_sub(1).ok_or_else(|| {
+           ValidationError::new(ValidationErrorKind::FatalError(
+               "Exceeded maximum signature check limit",
+           ))
+       })?;
+       Ok(())
+   }
}

The implementation of potential_issuers now performs a stable sort to group the most viable candidate issuers first, using AKI-to-SKI matching:

-   fn potential_issuers(
-       &self,
-       cert: &'a VerificationCertificate<'chain, B>,
-   ) -> impl Iterator<Item = &'a VerificationCertificate<'chain, B>> + '_ {
+   fn potential_issuers(
+       &self,
+       cert: &'a VerificationCertificate<'chain, B>,
+       cert_extensions: &Extensions<'chain>,
+   ) -> Vec<&'a VerificationCertificate<'chain, B>> {
+       let mut candidates: Vec<&'a VerificationCertificate<'chain, B>> = self
+           .store
+           .get_by_subject(&cert.certificate().tbs_cert.issuer)
+           .iter()
+           .chain(self.intermediates.iter().filter(|&candidate| {
+               candidate.certificate().subject() == cert.certificate().issuer()
+           }))
+           .collect();
+
+       let want_kid: Option<&[u8]> = cert_extensions
+           .get_extension(&AUTHORITY_KEY_IDENTIFIER_OID)
+           .and_then(|ext| ext.value::<AuthorityKeyIdentifier<'_, Asn1Read>>().ok())
+           .and_then(|aki| aki.key_identifier);
+
+       candidates.sort_by_key(|candidate| {
+           let have_kid: Option<&[u8]> = 
+               candidate.certificate().extensions().ok().and_then(|exts| {
+                   exts.get_extension(&SUBJECT_KEY_IDENTIFIER_OID)
+                       .and_then(|ext| ext.value::<&[u8]>().ok())
+               });
+
+           match (want_kid, have_kid) {
+               (Some(want), Some(have)) if want == have => 0, // Match (high priority)
+               (Some(_), Some(_)) => 2, // Mismatch (low priority)
+               _ => 1u8, // Missing ID (medium priority)
+           }
+       });
+       candidates
+   }

Exploitation & Benchmark Analysis

Exploitation does not require authentication or elevated privileges. An attacker simply submits a structured certificate chain containing several duplicates of a self-signed certificate.

Because the path validation engine explores all possible path combinations recursively, the CPU time increases exponentially relative to the number of duplicates. If the target server uses the unpatched verification engine, this process will block the executing thread indefinitely or until it hits a global worker timeout.

To demonstrate the vulnerability, the following performance table measures the validation duration of the unpatched vs. the patched library configuration:

DuplicatesMax Search DepthUnpatched Execution TimePatched Execution Time
170.00046 seconds0.00066 seconds
270.02515 seconds0.00122 seconds
370.48992 seconds0.00161 seconds
474.30940 seconds0.00214 seconds
381.46819 seconds0.00181 seconds
48TIMEOUT (> 5.00s)0.00241 seconds
57TIMEOUT (> 5.00s)0.00264 seconds
66TIMEOUT (> 5.00s)0.00282 seconds

Residual Attack Vectors and Limitations

Although the patch addresses the exponential explosion of cryptographic signature verification, some architectural edge cases remain.

First, potential_issuers continues to load and copy all matching intermediate certificates into a heap-allocated Vec before sorting. An attacker who uploads a chain with thousands of candidates can still force the server to allocate memory and perform $O(N \log N)$ operations. However, this is significantly less intensive than cryptographic signature operations.

Second, the name constraint budget of $2^{20}$ checks remains large. In highly complex, nested name constraint topologies, verification tasks could still introduce non-trivial latency overhead, though not sufficient to trigger a prolonged Denial of Service.

Official Patches

PyCAPull Request #14960 resolving path validation algorithmic complexity bugs

Fix Analysis (1)

Technical Appendix

CVSS Score
8.7/ 10
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

Affected Systems

Python environments utilizing the cryptography package version < 49.0.0Application servers implementing custom X.509 chain building or client certificate verification using PolicyBuilderS/MIME and client-authenticated TLS validation gateways relying on the pyca/cryptography engine

Affected Versions Detail

Product
Affected Versions
Fixed Version
cryptography
PyCA
< 49.0.049.0.0
AttributeDetail
CWE IDCWE-400
Attack VectorNetwork (AV:N)
CVSS v4.0 Score8.7 (High)
ImpactDenial of Service (DoS) via CPU Exhaustion
Exploit StatusProof-of-Concept (PoC) available
KEV StatusNot listed on CISA KEV

MITRE ATT&CK Mapping

T1499Endpoint Denial of Service
Impact
CWE-400
Uncontrolled Resource Consumption

The software does not properly control the allocation and maintenance of a limited resource, enabling an actor to influence the amount of resources consumed and leading to a denial of service.

Known Exploits & Detection

GitHub Security AdvisoryAdvisory containing the explanation and reproduction code demonstrating path construction resource consumption.

References & Sources

  • [1]GHSA-jwv3-5hgf-82ww: Path validation algorithmic complexity vulnerability
  • [2]Fix Commit 4a12cf49675a184e47f912b00b04f3a629283582
  • [3]Authoritative CVE-2026-69249 Record

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•33 minutes ago•GHSA-PJFF-C2WC-F6JM
9.9

CVE-2026-48769: Arbitrary File Write and Remote Code Execution via Trusted Image Hash in Canonical LXD and Linux Containers Incus

A critical path traversal vulnerability caused by improper input validation (CWE-20) exists in the direct image download handler of Canonical LXD and Linux Containers Incus. When an authenticated user requests an image import using the URL source type, the daemon reads the image fingerprint from an untrusted HTTP response header (`Incus-Image-Hash` or `LXD-Image-Hash`) without validating that it conforms to a SHA-256 format. This unvalidated string is concatenated directly into a filesystem path via `filepath.Join` prior to file creation and cryptographic verification, allowing directory traversal sequences to write arbitrary files on the host filesystem as root.

Alon Barad
Alon Barad
3 views•10 min read
•about 5 hours ago•CVE-2026-9639
6.5

CVE-2026-9639: Authenticated Denial of Service via Nil-Pointer Dereference in Canonical LXD Custom Volume Backup Import

CVE-2026-9639 (GHSA-j93m-3j9p-m5m8) is a null pointer dereference vulnerability in Canonical LXD affecting versions 5.0.0 through 5.21.4 and 6.0 through 6.8. The flaw resides in the (*lxdBackend).CreateCustomVolumeFromBackup method within lxd/storage/backend_lxd.go. An authenticated attacker with the can_create_storage_volumes permission can upload a crafted custom volume backup tarball that omits the expires_at field on a snapshot entry, triggering an unhandled SIGSEGV panic and terminating the LXD daemon.

Amit Schendel
Amit Schendel
5 views•9 min read
•about 6 hours ago•CVE-2026-33050
8.8

CVE-2026-33050: OS Command Injection in GeoNode Vector Upload Handler

An operating system command injection vulnerability (CWE-78) exists in GeoNode versions prior to 5.1.0. The vulnerability occurs in the vector upload processing pipeline when handling user-supplied geospatial files. By supplying a crafted layer name containing shell metacharacters, an authenticated attacker with basic data upload privileges can execute arbitrary commands on the underlying server or container hosting the GeoNode application and Celery worker processes.

Alon Barad
Alon Barad
5 views•9 min read
•about 7 hours ago•CVE-2026-46429
5.5

CVE-2026-46429: Unrestricted File Upload and Validation Bypass in GeoNode

GeoNode versions prior to 5.0.3 contain an unrestricted file upload vulnerability (CWE-434) within the document and dataset ingestion architecture. Authenticated low-privileged users can bypass upload validation via direct REST API interactions, file extension masquerading, metadata mutation via PATCH requests, or malicious archive submissions. This allows attackers to store and serve dangerous file types, alter on-disk file references, or trigger path traversal and resource exhaustion during archive extraction.

Amit Schendel
Amit Schendel
6 views•10 min read
•about 8 hours ago•CVE-2026-55649
6.3

CVE-2026-55649: Stored Cross-Site Scripting in GeoNode Document Metadata Abstract Field

CVE-2026-55649 is a stored Cross-Site Scripting (XSS) vulnerability in GeoNode versions prior to 5.0.3. The flaw exists because document abstract metadata fields are ingested via the metadata management pipeline and stored in the backend database without HTML sanitization or input neutralization. An authenticated attacker with privileges to create or edit document metadata can inject arbitrary HTML and JavaScript payloads into these fields. When another user, such as an administrator, views the affected document page or catalog listing, the unencoded payload is rendered into the Document Object Model (DOM) and executes within the victim's browser session.

Amit Schendel
Amit Schendel
7 views•9 min read
•about 9 hours ago•GHSA-QX75-2P3R-PWM5
7.7

CVE-2026-55622: Cross-Project Instance Copy Authorization Bypass in Canonical LXD and LXC Incus

CVE-2026-55622 (GHSA-qx75-2p3r-pwm5) is an improper access control vulnerability (CWE-284) in Canonical LXD and LXC Incus (tracked as GHSA-c9f5-j9c3-mhrg). In multi-tenant deployments utilizing project-based isolation, the REST API handler for instance creation via POST /1.0/instances verifies that the authenticated user has authorization in the destination project specified by the query parameter, but fails to verify whether the user holds read or view permissions for the source instance when executing a copy operation across projects. Consequently, an authenticated client restricted to a single project can clone instances or snapshots from unauthorized projects into their own project, resulting in complete disclosure of the target instance filesystem and embedded credentials.

Amit Schendel
Amit Schendel
6 views•11 min read