Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| pyca | cryptography | >= 44.0.0, < 50.0.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | python-cryptography | 49.0.0-2 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | python-cryptography | 46.0.5-1ubuntu2.2 | USN-8776-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | python-cryptography | 2.1.4-1ubuntu1.4+esm6 | USN-8776-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Hardened Images 1 | python-cryptography +1 | 50.0.0-1.hum1 | RHSA-2026:55543 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 16.0 | python-cryptography | 44.0.3-160000.5.1 | SUSE-SU-2026:23570-1 |
| SLES 16.0 | python-cryptography | 44.0.3-160000.5.1 | SUSE-SU-2026:23570-1 |
| SLE Micro 6.2 | python-cryptography | 44.0.3-160000.5.1 | SUSE-SU-2026:23404-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-cryptography | 50.0.0-1.1 | openSUSE-SU-2026:11468-1 |
| openSUSE Leap 16.0 | python-cryptography | 44.0.3-160000.5.1 | openSUSE-SU-2026:21685-1 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | airflow-3 | 3.3.0-r4 | — |
| Wolfi rolling | az | 2.91.0-r0 | — |
| Wolfi rolling | dask-kubernetes | 2026.3.0-r11 | — |
| Wolfi rolling | datadog-agent-7.80-core-integrations | 7.80.4-r10 | — |
| Wolfi rolling | ggshield | 1.53.0-r1 | — |
| Wolfi rolling | in-toto | 3.1.0-r4 | — |
| Wolfi rolling | k8s-sidecar | 2.10.1-r0 | — |
| Wolfi rolling | kserve +2 | 0.20.0-r7 | — |
| Wolfi rolling | kubeflow-profile-controller | 1.10.0-r36 | — |
| Wolfi rolling | kubeflow-volumes-web-app | 1.10.0-r23 | — |
| Wolfi rolling | mitmproxy | 12.2.3-r6 | — |
| Wolfi rolling | mycli | 2.10.0-r0 | — |
| Wolfi rolling | open-webui | 0.11.0-r8 | — |
| Wolfi rolling | py3-cassandra-medusa | 0.29.1-r1 | — |
| Wolfi rolling | semgrep | 1.172.0-r3 | — |
| Wolfi rolling | superset-6.0 +5 | No fix yet | — |
| Wolfi rolling | superset-6.1 | 6.1.0-r8 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | cryptography | >= 44.0.0, < 50.0.0 | 50.0.0 | GHSA-g6cj-pr64-35w5 |
Advisories 7
- WID-SEC-2026-4090 Oracle Communications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 11, 2026
- RHSA-2026:55543 Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update Red Hat Security Advisories (RHSA) · Oct 20, 2026
- SUSE-SU-2026:23570-1 Security update for python-cryptography SUSE / openSUSE Security Updates · Sep 29, 2026
- USN-8776-1 python-cryptography vulnerabilities Ubuntu Security Notices (USN) · Sep 17, 2026
- SUSE-SU-2026:23404-1 Security update for python-cryptography SUSE / openSUSE Security Updates · Sep 10, 2026
- openSUSE-SU-2026:21685-1 Security update for python-cryptography SUSE / openSUSE Security Updates · Aug 31, 2026
- openSUSE-SU-2026:11468-1 python313-cryptography-50.0.0-1.1 on GA media SUSE / openSUSE Security Updates · Aug 7, 2026