CVE-2026-34073

cryptography has incomplete DNS name constraint enforcement on peer names

Title source: cna

Description

cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. Prior to version 46.0.6, DNS name constraints were only validated against SANs within child certificates, and not the "peer name" presented during each validation. Consequently, cryptography would allow a peer named bar.example.com to validate against a wildcard leaf certificate for *.example.com, even if the leaf's parent certificate (or upwards) contained an excluded subtree constraint for bar.example.com. This issue has been patched in version 46.0.6.

Scores

EPSS 0.0002
EPSS Percentile 6.2%

Details

CWE
CWE-295
Status published
Products (2)
pyca/cryptography < 46.0.6
pypi/cryptography 0 - 46.0.6PyPI
Published Mar 31, 2026
Tracked Since Mar 31, 2026