CVE-2023-49083cryptography vulnerable to NULL-dereference when loading PKCS7 certificates
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.
What to do
Fixed builds are available from AlmaLinux, Debian, PyPI, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | python-cryptography | Fixed | 3.4.8-1ubuntu2.1 | UBUNTU-CVE-2023-49083 |
| Ubuntu 16.04 | python-cryptography | Fix pending | ||
| Debian 14 | python-cryptography | Fixed | 41.0.7-1 | DEBIAN-CVE-2023-49083 |
| Debian 13 | python-cryptography | Fixed | 41.0.7-1 | DEBIAN-CVE-2023-49083 |
| Debian 12 | python-cryptography | Fixed | 38.0.4-3+deb12u1 | DEBIAN-CVE-2023-49083 |
| Red Hat Enterprise Linux 9 | python-cryptography | Fixed | 0:36.0.1-5.el9_6 | RHSA-2025:15874 |
| Red Hat Enterprise Linux 9 | python3-cryptography | Fixed | 0:36.0.1-5.el9_6 | RHSA-2025:15874 |
| Red Hat Enterprise Linux 9 | python3.11-cryptography | Fixed | 0:37.0.2-6.el9 | RHSA-2024:2337 |
| Red Hat Enterprise Linux 9 | python3.12-cryptography | Not affected | ||
| Red Hat Enterprise Linux 8 | python-cryptography | Fixed Affected | 0:3.2.1-8.el8_10 | RHSA-2025:14553 |
| Red Hat Enterprise Linux 8 | python3-cryptography | Fixed Affected | 0:3.2.1-8.el8_10 | RHSA-2025:14553 |
| Red Hat Enterprise Linux 8 | python3.11-cryptography | Fixed | 0:37.0.2-6.el8 | RHSA-2024:3105 |
| Red Hat Enterprise Linux 8 | python3.12-cryptography | Not affected | ||
| Red Hat Enterprise Linux 7 | python-cryptography | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | python2-cryptography | Will not fix Out of support scope | ||
| AlmaLinux 9 | python3-cryptography | Fixed | 36.0.1-5.el9_6 | ALSA-2025:15874 |
| AlmaLinux 9 | python3.11-cryptography | Fixed | 37.0.2-6.el9 | ALSA-2024:2337 |
| AlmaLinux 8 | python3-cryptography | Fixed | 3.2.1-8.el8_10 | ALSA-2025:14553 |
| AlmaLinux 8 | python3.11-cryptography | Fixed | 37.0.2-6.el8 | ALSA-2024:3105 |
| Rocky Linux 9 | python-cryptography | Fixed | 0:36.0.1-5.el9_6 | RLSA-2025:15874 |
| Rocky Linux 9 | python3.11-cryptography | Fixed | 0:37.0.2-6.el9 | RLSA-2024:2337 |
| Rocky Linux 8 | python-cryptography | Fixed | 0:3.2.1-8.el8_10 | RLSA-2025:14553 |
| Rocky Linux 8 | python3.11-cryptography | Fixed | 0:37.0.2-6.el8 | RLSA-2024:3105 |
| PyPI library | cryptography | Fixed | 41.0.6 | PYSEC-2023-254 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- pyca cryptography: affected: >= 3.1, < 41.0.6
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/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.