What’s Vulnerable › Vulnerabilities
CVE-2026-69248: python-cryptography verifier accepts wildcard DNS names allowing escape from permittedSubtrees
- Severity: medium (CVSS 6.9 v4.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-08-03 · updated 2026-10-23
- Weakness: CWE-295
Description
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. In versions 45.0.0 through 48.0.0, if an intermediate constrained CA permits the DNS name foo.example.com, and the leaf certificate has a wildcard in its DNS SAN of *.example.com, python-cryptography's verifier accepts which allows escaping outside of the permitted names. The core issue is in DNSConstraint::matches, where a wildcard pattern was treated as matching a more-specific permitted constraint even though *.example.com can expand to sibling names such as bar.example.com outside foo.example.com. This allows acceptance of an invalid certificate chain. This issue is fixed in 49.0.0.
Affected products
- Pypi Cryptography: before 49.0.0; 0.1, 0.2, 0.2.1, 0.2.2, 0.3, 0.4 (+150) — fixed in 49.0.0
- pyca cryptography: before 49.0.0
How to fix
Upgrade to a fixed version: Pypi Cryptography 49.0.0. Check the vendor advisory for mitigations.
References
- https://github.com/pyca/cryptography/commit/4d035a4225965edeffd312079a510ef25fcfdcb2
- https://github.com/pyca/cryptography/pull/14888
- https://github.com/pyca/cryptography/security/advisories/GHSA-m2h6-j472-rp4c
- https://github.com/pyca/cryptography/security/advisories/GHSA-m2h6-j472-rp4c
Get alerted when CVE-2026-69248 or the next vulnerability affects your stack