---
schema_version: '1.0'
id: security-20260812-ad50e3
title: CVE-2026-34073 — cryptography
url: https://osv.dev/vulnerability/PYSEC-2026-35
url_hash: ad50e3e0b7e02fc649b5c8516ae7e8347cd1ab72b2f5945edccf8ca1a44412c5
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-35
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-34073
- PYSEC-2026-35
- severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- cryptography
- PyPI
lang: en
published_at: '2026-03-31T03:15:59Z'
fetched_at: '2026-08-12T16:00:04.352635Z'
updated_at: '2026-08-22T14:41:29Z'
status: published
content_hash: 729e7bc8b4ca23cc7ae79c7f87a5e160d6f10b4c394be9dfdf5b0add8d1df628
content_changed_at: '2026-08-22T13:15:21.205384Z'
license_note: full
summary: 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
summary_source: rss
summary_en: 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
summary_omitted_reason: null
redistribution: true
keywords_en:
- cryptography
- CVE
- CVE-2026-34073
- library vulnerability
- PyPI
- PYSEC-2026-35
- severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- software security
entities_en:
- name: CVE
  type: data
- name: PyPI
  type: artifact
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: CVE
  type: data
- name: PyPI
  type: artifact
related_auto:
- name: Portal
  type: organization
  weight: 1.0
- name: Hugging Face
  type: organization
  weight: 1.0
computed_at: '2026-08-22T14:41:22Z'
---

# CVE-2026-34073 — cryptography

## TL;DR
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

## Key Points
- cve / CVE-2026-34073 / PYSEC-2026-35 / severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N / cryptography / PyPI

## Details
**Severity:** CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
**Advisory:** PYSEC-2026-35 (CVE-2026-34073)

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

**References:**
- https://github.com/pyca/cryptography/security/advisories/GHSA-m959-cc7f-wv43

_Data: OSV.dev (upstream: pypa) — https://osv.dev/vulnerability/PYSEC-2026-35_

## Source
元記事: [CVE-2026-34073 — cryptography](https://osv.dev/vulnerability/PYSEC-2026-35) — published 2026-03-31T03:15:59Z
