CVE-2026-34073 cryptography has incomplete DNS name constraint enforcement on peer names

Low 1.7 Published Updated

Attackers can bypass DNS name constraints in the Python cryptography library, allowing unauthorized peer validation against restricted domains.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-34073?

CVE-2026-34073 is a low-severity vulnerability in pyca cryptography, published on 31 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-295

Which versions are affected by CVE-2026-34073?

3 open source packages ship an affected version, including cryptography. It affects 1 product.

PackageAffectedFixed in
cryptography PyPIAll versions46.0.6
cryptography PyPIAll versions46.0.6
cryptography PyPIAll versions46.0.6
Linux distribution packages (3)
python-cryptography SUSE:Linux Micro 6.0All versions42.0.4-4.1
python-cryptography SUSE:Linux Micro 6.1All versions42.0.4-slfo.1.1_4.1
python-cryptography openSUSE:TumbleweedAll versions46.0.6-1.1

Products include Cryptography.io Cryptography.

How do I fix CVE-2026-34073?

Upgrade cryptography to 46.0.6 or later.

Is CVE-2026-34073 being exploited?

There is no known exploitation of CVE-2026-34073 in the wild and no public exploit code.

Sources

Also known as ALPINE-CVE-2026-34073, BELL-CVE-2026-34073, CLEANSTART-2026-JG72912, CLEANSTART-2026-VN38539, CLSA-2026-1784164006, DEBIAN-CVE-2026-34073 and 24 more.

Is CVE-2026-34073 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free