Description
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. Calling `load_pem_pkcs7_certificates` or `load_der_pkcs7_certificates` could lead to a NULL-pointer dereference and segfault. Exploitation of this vulnerability poses a serious risk of Denial of Service (DoS) for any application attempting to deserialize a PKCS7 blob/certificate. The consequences extend to potential disruptions in system availability and stability. This vulnerability has been patched in version 41.0.6.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| pyca | cryptography | >= 3.1, < 41.0.6 | — |
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 | 41.0.7-1 | — |
| Debian 13 | python-cryptography | 41.0.7-1 | — |
| Debian 12 | python-cryptography | 38.0.4-3+deb12u1 | — |
| Debian 11 | python-cryptography | 3.3.2-1+deb11u1 | DLA-3922-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | python-cryptography | 3.4.8-1ubuntu2.1 | USN-6539-1 |
| Ubuntu 20.04 LTS | python-cryptography | 2.8-3ubuntu0.2 | USN-6539-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9 | python-cryptography +1 | 36.0.1-5.el9_6 | RHSA-2025:15874 |
| RHEL 9 | python3.11-cryptography | 37.0.2-6.el9 | RHSA-2024:2337 |
| RHEL 8 | python-cryptography +1 | 3.2.1-8.el8_10 | RHSA-2025:14553 |
| RHEL 8 | python3.11-cryptography | 37.0.2-6.el8 | RHSA-2024:3105 |
Show 15 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Rhui 4 | python-aiohttp +1 | 3.9.2-1.el8ui | RHSA-2024:1878 |
| Red Hat Rhui 4 | python-cryptography +1 | 41.0.6-1.el8ui | RHSA-2024:1878 |
| Red Hat Rhui 4 | python-django +1 | 4.2.11-1.el8ui | RHSA-2024:1878 |
| Red Hat Rhui 4 | python-ecdsa +1 | 0.18.0-4.el8ui | RHSA-2024:1878 |
| Red Hat Rhui 4 | python-jinja2 +1 | 3.1.3-1.el8ui | RHSA-2024:1878 |
| RHEL 9.4 EUS | python-cryptography +1 | 36.0.1-4.el9_4.1 | RHSA-2025:13103 |
| RHEL 9.2 E4S | python-cryptography +1 | 36.0.1-2.el9_2.1 | RHSA-2025:13101 |
| RHEL 9.0 E4S | python-cryptography +1 | 36.0.1-1.el9_0.1 | RHSA-2025:13102 |
| RHEL 8.8 TUS | python-cryptography +1 | 3.2.1-6.el8_8 | RHSA-2025:13100 |
| RHEL 8.8 EUS | python3.11-cryptography | 37.0.2-5.el8_8.1 | RHSA-2024:10965 |
| RHEL 8.8 E4S | python-cryptography +1 | 3.2.1-6.el8_8 | RHSA-2025:13100 |
| RHEL 8.6 TUS | python-cryptography +1 | 3.2.1-5.1.el8_6.1 | RHSA-2025:13104 |
| RHEL 8.6 E4S | python-cryptography +1 | 3.2.1-5.1.el8_6.1 | RHSA-2025:13104 |
| RHEL 8.6 AUS | python-cryptography +1 | 3.2.1-5.1.el8_6.1 | RHSA-2025:13104 |
| RHEL 8.4 EUS Long Life | python-cryptography +1 | 3.2.1-4.el8_4.1 | RHSA-2025:13098 |
| RHEL 8.4 AUS | python-cryptography +1 | 3.2.1-4.el8_4.1 | RHSA-2025:13098 |
| Red Hat Ansible Automation Platform Inside 2 | python-black +1 | 22.8.0-2.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Inside 2 | python-cryptography +1 | 42.0.5-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Inside 2 | python-jinja2 +1 | 3.1.4-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Inside 2 | python39-black +1 | 22.8.0-2.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Inside 2 | python39-cryptography +1 | 42.0.5-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Inside 2 | python39-jinja2 +1 | 3.1.4-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Inside 2 | receptor +1 | 1.4.5-1.el8ap | RHSA-2024:3781, RHSA-2024:1640 |
| Red Hat Ansible Automation Platform Developer 2 | python-black +1 | 22.8.0-2.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Developer 2 | python-cryptography +1 | 42.0.5-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Developer 2 | python-idna +1 | 3.7-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Developer 2 | python-jinja2 +1 | 3.1.4-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Developer 2 | python-requests +1 | 2.32.2-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Developer 2 | python39-black +1 | 22.8.0-2.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Developer 2 | python39-cryptography +1 | 42.0.5-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Developer 2 | python39-idna +1 | 3.7-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Developer 2 | python39-jinja2 +1 | 3.1.4-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Developer 2 | python39-requests +1 | 2.32.2-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Developer 2 | receptor +1 | 1.4.5-1.el8ap | RHSA-2024:3781, RHSA-2024:1640 |
| Red Hat Ansible Automation Platform 2 | automation-controller-venv-tower | 4.5.5-2.el8ap | RHSA-2024:3781, RHSA-2024:1640 |
| Red Hat Ansible Automation Platform 2 | automation-hub +2 | 4.9.2-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python-aiohttp +1 | 3.9.3-1.el9ap | RHSA-2024:3781, RHSA-2024:1640 |
| Red Hat Ansible Automation Platform 2 | python-black +1 | 22.8.0-2.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python-cryptography +1 | 42.0.5-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python-django +1 | 4.2.11-1.el9ap | RHSA-2024:1640 |
| Red Hat Ansible Automation Platform 2 | python-galaxy-ng +1 | 4.9.2-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python-gunicorn +1 | 22.0.0-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python-idna +1 | 3.7-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python-jinja2 +1 | 3.1.4-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python-pillow +1 | 10.3.0-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python-pydantic +1 | 1.10.15-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python-requests +1 | 2.32.2-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python-social-auth-app-django +1 | 5.4.1-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python-sqlparse +1 | 0.5.0-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python39-aiohttp +1 | 3.9.3-1.el8ap | RHSA-2024:3781, RHSA-2024:1640 |
| Red Hat Ansible Automation Platform 2 | python39-black +1 | 22.8.0-2.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python39-cryptography +1 | 42.0.5-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python39-django +1 | 4.2.11-1.el8ap | RHSA-2024:1640 |
| Red Hat Ansible Automation Platform 2 | python39-gunicorn +1 | 22.0.0-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python39-idna +1 | 3.7-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python39-jinja2 +1 | 3.1.4-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python39-pillow +1 | 10.3.0-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python39-pydantic +1 | 1.10.15-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python39-requests +1 | 2.32.2-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python39-social-auth-app-django +1 | 5.4.1-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python39-sqlparse +1 | 0.5.0-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | receptor +1 | 1.4.5-1.el8ap | RHSA-2024:3781, RHSA-2024:1640 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 9 | python3-cryptography | 36.0.1-5.el9_6 | ALSA-2025:15874 |
| AlmaLinux 9 | python3.11-cryptography | 37.0.2-6.el9 | ALSA-2024:2337 |
| AlmaLinux 8 | python3-cryptography | 3.2.1-8.el8_10 | ALSA-2025:14553 |
| AlmaLinux 8 | python3.11-cryptography | 37.0.2-6.el8 | ALSA-2024:3105 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 9 | python-cryptography | 36.0.1-5.el9_6 | RLSA-2025:15874 |
| Rocky Linux 9 | python3.11-cryptography | 37.0.2-6.el9 | RLSA-2024:2337 |
| Rocky Linux 8 | python-cryptography | 3.2.1-8.el8_10 | RLSA-2025:14553 |
| Rocky Linux 8 | python3.11-cryptography | 37.0.2-6.el8 | RLSA-2024:3105 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP5 | python3-cryptography | 3.3.2-150400.23.1 | SUSE-SU-2023:4843-1 |
| SLES 15 SP4 | python3-cryptography | 3.3.2-150400.23.1 | SUSE-SU-2023:4843-1 |
| SLES 15 SP1 | python-cryptography | 3.3.2-150100.7.18.1 | SUSE-SU-2023:4844-1 |
| SLES 3 | python-cryptography | 41.0.3-150400.16.12.1 | SUSE-SU-2023:4842-1 |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLE Micro 5.5 | python3-cryptography | 3.3.2-150400.23.1 | SUSE-SU-2024:2375-1, SUSE-SU-2023:4843-1 |
| SLE Micro 5.4 | python3-cryptography | 3.3.2-150400.23.1 | SUSE-SU-2023:4843-1 |
| SLE Micro 5.3 | python3-cryptography | 3.3.2-150400.23.1 | SUSE-SU-2023:4843-1 |
| SLE Micro 5.2 | python-cryptography | 3.3.2-150200.22.1 | SUSE-SU-2023:4921-1 |
| SLE Micro 5.1 | python-cryptography | 3.3.2-150200.22.1 | SUSE-SU-2023:4921-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-cryptography | 41.0.7-1.1 | openSUSE-SU-2026:11468-1, openSUSE-SU-2024:13472-1 |
| openSUSE Leap 15.5 | python-cryptography | 41.0.3-150400.16.12.1 | SUSE-SU-2023:4842-1 |
| openSUSE Leap 15.5 | python3-cryptography | 3.3.2-150400.23.1 | SUSE-SU-2023:4843-1 |
| openSUSE Leap 15.4 | python-cryptography | 41.0.3-150400.16.12.1 | SUSE-SU-2023:4842-1 |
| openSUSE Leap 15.4 | python3-cryptography | 3.3.2-150400.23.1 | SUSE-SU-2023:4843-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap Micro 5.4 | python3-cryptography | 3.3.2-150400.23.1 | SUSE-SU-2023:4843-1 |
| openSUSE Leap Micro 5.3 | python3-cryptography | 3.3.2-150400.23.1 | SUSE-SU-2023:4843-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | python3-cryptography | 36.0.1-1.amzn2023.0.5 | ALAS2023-2023-446 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | python-cryptography | 42.0.5-1 | — |
| Azure Linux 2 (CBL-Mariner) | python-cryptography | 3.3.2-6 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 9 | python3-cryptography | 36.0.1-5.el9_6 | ELSA-2025-15874 |
| Oracle Linux 9 | python3.11-cryptography | 37.0.2-6.el9 | ELSA-2024-2337 |
| Oracle Linux 8 | python3-cryptography | 3.2.1-8.el8_10 | ELSA-2025-14553, ELSA-2024-12079 |
| Oracle Linux 8 | python3.11-cryptography | 37.0.2-5.0.1.el9 | ELSA-2024-12078, ELSA-2024-3105 |
| Oracle Linux 7 | python36-cryptography | 3.2.1-1.0.1.el7 | ELSA-2024-19480, ELSA-2024-12234 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | mitmproxy | 12.2.1-r0 | — |
| Wolfi rolling | py3-cassandra-medusa +1 | 0.19.1-r1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | cryptography | >= 3.1, < 41.0.6 | 41.0.6 | GHSA-jfhm-5ghh-2f97 |
Advisories 49
- ALSA-2025:15874 Moderate: python-cryptography security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2024:2337 Moderate: python3.11-cryptography security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2025:14553 Moderate: python-cryptography security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2024:3105 Moderate: python3.11-cryptography security update AlmaLinux Security Advisories · Oct 29, 2026
- WID-SEC-2024-1328 Red Hat Ansible Automation Platform: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 18, 2026
- RHSA-2024:1640 Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update Red Hat Security Advisories (RHSA) · Oct 18, 2026
- RHSA-2024:3781 Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update Red Hat Security Advisories (RHSA) · Oct 17, 2026
- RHSA-2024:1878 Red Hat Security Advisory: RHUI 4.8 Release - Security Updates, Bug Fixes, and Enhancements Red Hat Security Advisories (RHSA) · Sep 9, 2026
- RHSA-2025:15874 Red Hat Security Advisory: python-cryptography security update Red Hat Security Advisories (RHSA) · Aug 27, 2026
- RHSA-2025:14553 Red Hat Security Advisory: python-cryptography security update Red Hat Security Advisories (RHSA) · Aug 27, 2026
- RHSA-2025:13104 Red Hat Security Advisory: python-cryptography security update Red Hat Security Advisories (RHSA) · Aug 27, 2026
- RHSA-2025:13103 Red Hat Security Advisory: python-cryptography security update Red Hat Security Advisories (RHSA) · Aug 27, 2026
- RHSA-2025:13102 Red Hat Security Advisory: python-cryptography security update Red Hat Security Advisories (RHSA) · Aug 27, 2026
- RHSA-2025:13100 Red Hat Security Advisory: python-cryptography security update Red Hat Security Advisories (RHSA) · Aug 27, 2026
- RHSA-2025:13101 Red Hat Security Advisory: python-cryptography security update Red Hat Security Advisories (RHSA) · Aug 27, 2026
- RHSA-2025:13098 Red Hat Security Advisory: python-cryptography security update Red Hat Security Advisories (RHSA) · Aug 27, 2026
- RHSA-2024:3105 Red Hat Security Advisory: python3.11-cryptography security update Red Hat Security Advisories (RHSA) · Aug 27, 2026
- RHSA-2024:2337 Red Hat Security Advisory: python3.11-cryptography security update Red Hat Security Advisories (RHSA) · Aug 27, 2026
- RHSA-2024:10965 Red Hat Security Advisory: python3.11-cryptography security update Red Hat Security Advisories (RHSA) · Aug 27, 2026
- openSUSE-SU-2026:11468-1 python313-cryptography-50.0.0-1.1 on GA media SUSE / openSUSE Security Updates · Aug 7, 2026
- USN-6539-1 python-cryptography vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- DLA-3922-1 python-cryptography - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2023:4842-1 Security update for python-cryptography SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2375-1 Security update for python3-cryptography SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2023:4921-1 Security update for python-cryptography SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:13472-1 python310-cryptography-41.0.7-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2023:4844-1 Security update for python-cryptography SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2024-0995 Red Hat Enterprise Linux: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 17, 2025
- WID-SEC-2024-3377 Dell PowerProtect Data Domain: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 12, 2025
- RLSA-2025:15874 Moderate: python-cryptography security update Rocky Linux Security Advisories · Oct 10, 2025
- RLSA-2024:2337 Moderate: python3.11-cryptography security update Rocky Linux Security Advisories · Oct 9, 2025
- WID-SEC-2025-0225 Dell PowerProtect Data Domain: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 1, 2025
- WID-SEC-2025-2043 IBM QRadar SIEM: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 1, 2025
- ELSA-2025-15874 Moderate: python-cryptography security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Sep 16, 2025
- WID-SEC-2024-0869 Oracle Communications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Sep 10, 2025
- RLSA-2025:14553 Moderate: python-cryptography security update Rocky Linux Security Advisories · Sep 8, 2025
- ELSA-2025-14553 Moderate: python-cryptography security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Aug 26, 2025
- RLSA-2024:3105 Moderate: python3.11-cryptography security update Rocky Linux Security Advisories · May 7, 2025
- SUSE-SU-2023:4843-1 Security update for python3-cryptography SUSE / openSUSE Security Updates · May 2, 2025
- NCSC-2024-0411 Kwetsbaarheden verholpen in Oracle Database producten NCSC-NL (Netherlands) · Oct 17, 2024
- WID-SEC-2024-1696 SolarWinds Platform: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 15, 2024
- NCSC-2024-0299 Kwetsbaarheden verholpen in Oracle Analytics NCSC-NL (Netherlands) · Jul 17, 2024
- ELSA-2024-3105 Moderate: python3.11-cryptography security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · May 23, 2024
- ELSA-2024-2337 Moderate: python3.11-cryptography security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · May 2, 2024
- ELSA-2024-19480 Moderate: python-cryptography security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Mar 20, 2024
- ELSA-2024-12234 Moderate: python-cryptography security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Mar 20, 2024
- ELSA-2024-12079 Important: python-cryptography security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Jan 18, 2024
- ELSA-2024-12078 Important: python3.11-cryptography security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Jan 18, 2024
- ALAS2023-2023-446 Moderate: python-cryptography security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Dec 14, 2023
References
- https://github.com/pyca/cryptography/security/advisories/GHSA-jfhm-5ghh-2f97
- https://github.com/pyca/cryptography/pull/9926
- https://github.com/pyca/cryptography/commit/f09c261ca10a31fe41b1262306db7f8f1da0e48a
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QMNTYMUGFJSDBYBU22FUYBHFRZODRKXV/