CVE-2026-69247 — Vulnerability in cryptography — CVE Details
cryptography: PKCS#7 EnvelopedData decryption exposes a Bleichenbacher oracle through distinguishable errors and timing
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.27%). Schedule for your next planned update.
Does your project use an affected cryptography version?
Paste your requirements.txt to check it for CVE-2026-69247 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
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.
Introduced in 44.0.0. Fixed in 50.0.0.
Details
Decryption ran as: RSA PKCS#1 v1.5 decrypt of encryptedKey → build an AES
cipher from the result → AES-CBC decrypt and PKCS#7 unpad. Each stage failed
differently, with no RFC 3218 mitigation:
- invalid RSA padding →
Decryption failed - valid padding, bad key length →
Invalid key size (N) for AES., disclosingN - correct length, wrong key →
Invalid padding bytes. - the real key → plaintext
Case 1 is reachable only where the linked library lacks implicit rejection: OpenSSL 3.0 and 3.1, LibreSSL, and BoringSSL. On OpenSSL 3.2+, used in our wheels, invalid padding instead returns a synthetic plaintext of pseudorandom length, so the error channel does not distinguish conforming ciphertexts.
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.
Fix
Per RFC 3218, the content-encryption algorithm is now resolved before the private key is used, so the expected key length is known in advance. If the RSA decryption fails or recovers a key of the wrong length, a random key of the expected length is substituted and decryption continues down an identical path. All failures now report identically and perform the same work.
Not addressed by this fix
EnvelopedData does not authenticate its content. Tampering with
encryptedContent alone yields a CBC padding oracle that recovers plaintext at
roughly 256 queries per byte, without recovering any key, on every backend. This
is a property of PKCS#7 rather than of this implementation, cannot be fixed in
the library, and is now documented.
Credit
Reported by @X1AOxiang.
Advisory Timeline
- First published August 3, 2026 (115 days ago).
- Last revised September 10, 2026 — 37 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "cryptography>=50.0.0"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: PyPI (1).
| Package | Fixed In |
|---|---|
| cryptography PyPI · Affected: 44.0.0, 44.0.1, 44.0.2, 44.0.3 (+20 more) | 50.0.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-208
- CWE-209
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 5.6 score means for each attack dimension.
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
References
Frequently Asked Questions
- What is CVE-2026-69247?
- cryptography: PKCS#7 EnvelopedData decryption exposes a Bleichenbacher oracle through distinguishable errors and timing. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 5.6/10).
- How do I check if my project is affected by CVE-2026-69247?
- CVE-2026-69247 affects cryptography. It has a 0.3% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-69247 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is a below-median EPSS score — only 12.6% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-39892CRITICAL
- CVE-2026-69249HIGH
python-cryptography: Duplicate self-signed intermediates can cause exponential path-building
- CVE-2026-69248HIGH
python-cryptography verifier accepts wildcard DNS names allowing escape from permittedSubtrees
- GHSA-537c-gmf6-5ccfHIGH
Vulnerable OpenSSL included in cryptography wheels
- CVE-2026-69249HIGH
python-cryptography: Duplicate self-signed intermediates can cause exponential path-building
- CVE-2023-0286HIGH
Vulnerable OpenSSL included in cryptography wheels
- CVE-2026-69248MEDIUM
python-cryptography verifier accepts wildcard DNS names allowing escape from permittedSubtrees
- CVE-2026-39892MEDIUM
Cryptography vulnerable to buffer overflow if non-contiguous buffers were passed to APIs