CVE-2026-69249: python-cryptography Exponential Path-Building Vulnerability Due to Duplicate Self-Signed Intermediates

cryptography Updated 04 Aug 2026

Summary

04/08/2026
Yes i
High
8.7

CVE-2026-69249: python-cryptography: Duplicate self-signed intermediates can cause exponential path-building. Affects cryptography versions < 49.0.0. Fixed in 49.0.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The python-cryptography library is a widely used package in Python for cryptographic operations, including the creation and verification of certificates. It provides essential functionalities for secure communications and data protection. However, it is susceptible to a vulnerability that can lead to denial of service through resource exhaustion when handling invalid certificate chains containing duplicate self-signed certificates.

Vulnerability Detail

The vulnerability arises from the recursive nature of the 'build_chain_inner' function, which does not de-duplicate previously analyzed candidates. This oversight allows an attacker to craft a certificate chain that causes the processing to recursively invoke the same candidate, leading to an exponential increase in processing time. Although the maximum chain depth limits recursion, an attacker-controlled certificate chain can still result in significant delays, potentially exceeding 5 seconds to reject. This amplification can be exploited to launch a denial of service attack, affecting the availability of systems relying on this library.

How To Fix

Latest published version: 50.0.2 as of 22 Oct 2026

pip install --upgrade "cryptography==50.0.2"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

49.0.0

This is the first release that contains the fix.

pip install --upgrade "cryptography==49.0.0"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

A temporary workaround involves modifying the code to track valid issuers and skip those that have already been seen. Below is an example of how to implement this in the 'build_chain_inner' function:

let mut seen_valid_issuers = Vec::<&VerificationCertificate<'chain, B>>::new();
for issuing_cert_candidate in self.potential_issuers(working_cert) {
    if seen_valid_issuers.contains(&issuing_cert_candidate) {
    continue;
    }
    seen_valid_issuers.push(issuing_cert_candidate);
match self.build_chain_inner(
    issuing_cert_candidate,
        // Additional parameters...
    ) {
        // Handle result...
    }
}

Conclusion

The CVE-2026-69249 vulnerability in the python-cryptography library poses a significant risk of denial of service due to exponential path-building from duplicate self-signed intermediates. It is crucial to update to version 49.0.0 or later to mitigate this risk effectively. Additionally, users can utilize Vulert to monitor their applications for vulnerabilities.

See every vulnerability recorded for cryptography →

Share this vulnerability

FAQ

CVE-2026-69249 is a vulnerability in the python-cryptography library that allows for denial of service through exponential path-building when processing invalid certificate chains with duplicate self-signed certificates.

If your application uses the python-cryptography library and processes certificate chains, it may be susceptible to denial of service attacks, leading to significant delays in processing time.

The CVSS score of this vulnerability is 8.7, indicating a high severity level.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check your application against this vulnerability using the Vulert playground without any signup.

If immediate updates are not possible, consider implementing the provided workaround to mitigate the risk until you can upgrade to the patched version.

Related vulnerabilities

Recent vulnerabilities recorded for cryptography.

How To Fix

Latest published version: 50.0.2 as of 22 Oct 2026

pip install --upgrade "cryptography==50.0.2"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

49.0.0

This is the first release that contains the fix.

pip install --upgrade "cryptography==49.0.0"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback