Advisory

PYSEC-2026-35

Also known as: CVE-2026-34073, GHSA-m959-cc7f-wv43

Summary

The record has no summary.

Details

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.

Severity

Medium Basis: CVSS v3 score 5.3, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Dates

Published
2026-03-31 03:15 UTC
Modified
2026-05-20 09:18 UTC

Affected packages and fixes

cryptography

PyPI · All systems

Affected

  • introduced 0, fixed 46.0.6 (ecosystem)

Fixed versions

46.0.6

Fix

  • Fixed version 46.0.6
    pip install --upgrade cryptography==46.0.6

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences