Skip to main content
EPSS 0.2%top 92%

CVE-2026-69248: CWE-295: Improper Certificate Validation in pyca cryptography

0
Medium
Published: 08/03/2026 (08/03/2026, 21:21:43 UTC)
Source: CVE Database V5
Vendor/Project: pyca
Product: cryptography

Description

cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. In versions 45.0.0 through 48.0.0, if an intermediate constrained CA permits the DNS name foo.example.com, and the leaf certificate has a wildcard in its DNS SAN of *.example.com, python-cryptography's verifier accepts which allows escaping outside of the permitted names. The core issue is in DNSConstraint::matches, where a wildcard pattern was treated as matching a more-specific permitted constraint even though *.example.com can expand to sibling names such as bar.example.com outside foo.example.com. This allows acceptance of an invalid certificate chain. This issue is fixed in 49.0.0.

CVSS v4.0

Score 6.9medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
Low
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N/E:P

Affected software

pyca

cryptography

Affected versions
<49.0.0
cryptography
pkg:pypi/cryptography
Affected versions
<49.0.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/11/2026, 18:30:37 UTC

Technical Analysis

The pyca cryptography package before version 49.0.0 contains a certificate validation flaw (CWE-295) in the DNSConstraint::matches function. When an intermediate constrained CA permits a DNS name such as foo.example.com, and the leaf certificate contains a wildcard DNS SAN like *.example.com, the verifier incorrectly accepts the wildcard as matching the more specific permitted constraint. This allows certificates with DNS names outside the permitted scope (e.g., bar.example.com) to be accepted, effectively bypassing intended DNS name restrictions in certificate chains. The vulnerability is resolved in version 49.0.0.

Potential Impact

This vulnerability allows acceptance of invalid certificate chains that should be rejected due to DNS name constraints. This could undermine the trust model of TLS connections relying on pyca cryptography for certificate verification, potentially allowing attackers to impersonate domains outside the permitted DNS constraints. However, no known exploits in the wild have been reported.

Mitigation Recommendations

Upgrade pyca cryptography to version 49.0.0 or later, where this certificate validation issue is fixed. Patch status is confirmed by the vendor stating the fix is included in version 49.0.0. No other mitigations are indicated.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-08-03T19:54:19.852Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a710cc4bf32cb7a34490878

Added to database: 08/03/2026, 21:48:52 UTC

Last enriched: 08/11/2026, 18:30:37 UTC

Last updated: 09/17/2026, 22:01:37 UTC

Views: 55

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses