Vulnerability
CVE-2026-69249
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.
87 advisories report this vulnerability, across 13 ecosystems.
Advisories in Wolfi
- CGA-2254-h994-q8fr
- CGA-293v-gf8c-2ph4
- CGA-3g89-jqc3-4r6q
- CGA-3xp3-7pwq-rjq5
- CGA-4567-j9p3-w9jj
- CGA-62jw-cr6c-38gr
- CGA-8wfv-c739-rh7w
- CGA-9m7r-h8w9-pxv8
- CGA-g3xf-f4fm-fh65
- CGA-mq28-rj49-rw62
- CGA-mrj4-phg2-c6rg
- CGA-vwww-f48h-p4cq
- CGA-xm9h-x2xf-8m76
References
- https://github.com/pyca/cryptography/commit/3763aa79b
- https://github.com/pyca/cryptography/commit/4a12cf49675a184e47f912b00b04f3a629283582
- https://github.com/pyca/cryptography/pull/14960
- https://github.com/pyca/cryptography/security/advisories/GHSA-jwv3-5hgf-82ww
- https://github.com/pypa/advisory-database/tree/main/vulns/cryptography/PYSEC-2026-3553.yaml