CVE-2026-34073 Details
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.
A vulnerability in the cryptography package prior to version 46.0.6 allows DNS name constraints to be bypassed for wildcard leaf certificates. The issue arises because name constraints were only validated against Subject Alternative Names (SANs) in child certificates, not the peer name presented during validation. This flaw could enable a peer named bar.example.com to validate against a wildcard certificate for *.example.com, even if an excluded subtree constraint for bar.example.com existed in the certificate hierarchy. The vulnerability is rooted in a misalignment between RFC 5280 and RFC 9525 regarding name constraint validation for peer names, leading to potential exploitation in specific X.509 topologies.
Users are advised to upgrade to version 46.0.6 or later.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 31, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/pyca/cryptography/security/advisories/GHSA-m959-cc7f-wv43 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-295 | Improper Certificate Validation | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| cryptography.io cryptography | < 46.0.6 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 6, 2026 | Initial Analysis | [email protected] |
| Mar 31, 2026 | New CVE Received | [email protected] |