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.
CVSS Details
- CVSS 4.0 Base Score: 8.7 (HIGH)
- CVSS 4.0 Vector: (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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Redhat_linux | — | Upgrade python3-cryptographyUpgrade python3.14-cryptography-debuginfoUpgrade python3-cryptography-debuginfoUpgrade python3.14-cryptographyUpgrade python-cryptography-debugsourceUpgrade python3.14-cryptography-debugsource | Aug 31, 2026 | Aug 3, 2026 |
| Rocky_linux | — | Upgrade python3.14-cryptography-debugsourceUpgrade python3.14-cryptographyUpgrade python3.14-cryptography-debuginfoUpgrade python3-cryptographyUpgrade python-cryptography-debugsourceUpgrade python3-cryptography-debuginfo | Sep 15, 2026 | Sep 9, 2026 |
| Ubuntu | — | Upgrade python-cryptography-docUpgrade python3-cryptography | Sep 17, 2026 | Sep 16, 2026 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub