Skip to main content

pyca cryptography CVE-2026-69247

| EUVDEUVD-2026-52446 HIGH
Observable Timing Discrepancy (CWE-208)
2026-08-03 GitHub_M GHSA-g6cj-pr64-35w5
8.2
CVSS 4.0 · Vendor: GitHub_M
Share

Severity by source

Vendor (GitHub_M) PRIMARY
8.2 HIGH
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
vuln.today AI
5.9 MEDIUM

Network-accessible oracle with high complexity due to required adaptive query volume and specific reflective-service deployment; key recovery yields only confidentiality impact with no integrity or availability effect.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
SUSE
5.9 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Red Hat
5.9 MEDIUM
qualitative

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
X

Lifecycle Timeline

4
Patch available
Aug 03, 2026 - 22:17 EUVD
Source Code Evidence Fetched
Aug 03, 2026 - 22:06 vuln.today
Analysis Generated
Aug 03, 2026 - 22:06 vuln.today
CVE Published
Aug 03, 2026 - 21:16 cve.org
HIGH 8.2

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 154 pypi packages depend on cryptography (92 direct, 62 indirect)

Ecosystem-wide dependent count for version 44.0.0.

DescriptionCVE.org

cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. From 44.0.0 until 50.0.0, pkcs7_decrypt_der, pkcs7_decrypt_pem, and pkcs7_decrypt_smime reported the outcome of decrypting a RecipientInfo's encryptedKey in several distinguishable ways, one of which disclosed the exact length recovered from the RSA operation. The same distinction was also observable by timing. An application that decrypts attacker-supplied EnvelopedData and reflects the outcome gives the attacker a Bleichenbacher oracle against the content-encryption key. Decryption ran as RSA PKCS#1 v1.5 decrypt of encryptedKey, build an AES cipher from the result, then AES-CBC decrypt and PKCS#7 unpad. Invalid RSA padding, a valid padding with a bad key length, a correct length with a wrong key, and the real key each failed or succeeded differently. Case 1 is reachable only where the linked library lacks implicit rejection: OpenSSL 3.0 and 3.1, LibreSSL, and BoringSSL. Exploitation requires a service that auto-decrypts untrusted EnvelopedData matching the victim certificate and answers adaptively at high volume, such as an S/MIME gateway or mail filter. This issue is fixed in 50.0.0.

AnalysisAI

PKCS#7 EnvelopedData decryption in the Python cryptography library (versions 44.0.0-49.x) leaks a Bleichenbacher oracle through four distinguishable error messages and timing side-channels during RSA PKCS#1 v1.5 key unwrapping, exposing the exact recovered plaintext length in one case. An attacker who can submit crafted EnvelopedData to an auto-decrypting service - such as an S/MIME gateway or mail filter that reflects outcomes at high volume - can adaptively recover the content-encryption key and decrypt intercepted messages. No public exploit has been identified at time of analysis, and exploitation requires very specific deployment conditions; the fix in version 50.0.0 applies RFC 3218 indistinguishability by substituting a random key on any failure.

Technical ContextAI

The vulnerability resides in the Rust-backed PKCS#7 decryption implementation (src/rust/src/pkcs7.rs) of pyca/cryptography, introduced in version 44.0.0. PKCS#7 EnvelopedData uses RSA PKCS#1 v1.5 to wrap the content-encryption key, which is then used with AES-CBC to decrypt the message body. The four-stage pipeline - RSA decrypt → key length check → AES-CBC decrypt → PKCS#7 unpad - each failed with a distinct observable outcome: (1) invalid RSA padding yielded 'Decryption failed', (2) valid padding with wrong key length leaked the recovered length as 'Invalid key size (N) for AES.', (3) correct length with wrong key yielded 'Invalid padding bytes.', and (4) the real key succeeded. CWE-208 (Observable Discrepancy) applies directly: the length disclosure in case 2 and timing differences across all four cases form a multi-channel oracle. Case 1 is reachable only when the linked native library lacks implicit rejection - specifically OpenSSL 3.0 and 3.1, LibreSSL, and BoringSSL. OpenSSL 3.2+, used in pyca's own distributed wheels, returns a pseudorandom synthetic plaintext for invalid padding, suppressing case 1. The fix, per RFC 3218, resolves the content-encryption algorithm (and thus expected key size) before invoking RSA, then substitutes a cryptographically random key of the expected length on any failure, making all error paths computationally indistinguishable. CPE: cpe:2.3:a:pyca:cryptography:*:*:*:*:*:*:*:* (versions 44.0.0-49.x).

RemediationAI

Upgrade pyca/cryptography to version 50.0.0, which applies the RFC 3218 indistinguishability fix: the expected content-encryption key length is resolved from the algorithm identifier before RSA decryption is attempted, and any failure (invalid RSA padding or recovered key of wrong length) substitutes a cryptographically random key of the correct size, so all failure paths perform identical work and produce identical error outputs. The advisory is at https://github.com/pyca/cryptography/security/advisories/GHSA-g6cj-pr64-35w5 and the patch is at https://github.com/pyca/cryptography/pull/15369 and commit 53fccd93413a8d7f07d6d8999681f27b75cffa3f. If immediate upgrade is not possible, compensating controls include: disabling or blocking any service path that auto-decrypts untrusted PKCS#7 EnvelopedData and returns distinguishable outcomes - error codes, response bodies, or observable latency - to the sender (trade-off: may break legitimate S/MIME gateway workflows); applying aggressive rate limiting on decryption endpoints to raise the cost of the adaptive querying required for Bleichenbacher exploitation (trade-off: does not eliminate the oracle, only increases attacker effort and time). Note that the vendor's updated documentation advises against decrypting untrusted EnvelopedData entirely due to the residual CBC padding oracle, which is a PKCS#7 protocol property unaddressed by this or any library-level fix.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Not-Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Not-Affected
SUSE Linux Enterprise Micro 5.3 Not-Affected

Share

CVE-2026-69247 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy