CVE-2026-69248 PUBLISHED

python-cryptography verifier accepts wildcard DNS names allowing escape from permittedSubtrees

Assigner: GitHub_M
Reserved: 03.08.2026 Published: 03.08.2026 Updated: 04.08.2026

cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. Prior to 49.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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N/E:P
CVSS Score: 6.9

Product Status

Vendor pyca
Product cryptography
Versions
  • Version < 49.0.0 is affected

References

Problem Types

  • CWE-295: Improper Certificate Validation CWE