Skip to main content
← All vulnerabilities
CVE-2026-69249GHSA-JWV3-5HGF-82WWPYSEC-2026-3553

python-cryptography: Duplicate self-signed intermediates can cause exponential path-building

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 49.0.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

python-cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. In versions 42.0.0 through 48.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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • pyca cryptography

    From 42.0.0 · fixed in 49.0.0

  • cryptographyPyPI

    From 42.0.0 · fixed in 49.0.0

  • cryptographyPyPI

    fixed in 49.0.0

References 5

GitHub · pyca/cryptography

GitHub · pypa/advisory-database