Vulnerability · Published Nov 29, 2023 · Assigned by GitHub_M
CVE-2023-49083cryptography vulnerable to NULL-dereference when loading PKCS7 certificates
Medium 5.9
In plain English
A medium-severity null pointer dereference in cryptography from pyca. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 63% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | python3-cryptography | 3.2.1-8.el8_10 | ALSA-2025:14553 |
| AlmaLinux:9 | python3-cryptography | 36.0.1-5.el9_6 | ALSA-2025:15874 |
| AlmaLinux:8 | python3.11-cryptography | 37.0.2-6.el8 | ALSA-2024:3105 |
| AlmaLinux:9 | python3.11-cryptography | 37.0.2-6.el9 | ALSA-2024:2337 |
| Debian:12 | python-cryptography | 38.0.4-3+deb12u1 | DEBIAN-CVE-2023-49083 |
| Debian:13 | python-cryptography | 41.0.7-1 | DEBIAN-CVE-2023-49083 |
| Debian:14 | python-cryptography | 41.0.7-1 | DEBIAN-CVE-2023-49083 |
| PyPI | cryptography | 41.0.6 | GHSA-jfhm-5ghh-2f97 |
| PyPI | cryptography | 41.0.6 | PYSEC-2023-254 |
| Rocky Linux:8 | python-cryptography | 0:3.2.1-8.el8_10 | RLSA-2025:14553 |
| Rocky Linux:9 | python-cryptography | 0:36.0.1-5.el9_6 | RLSA-2025:15874 |
| Rocky Linux:8 | python3.11-cryptography | 0:37.0.2-6.el8 | RLSA-2024:3105 |
| Rocky Linux:9 | python3.11-cryptography | 0:37.0.2-6.el9 | RLSA-2024:2337 |
| Ubuntu:22.04:LTS | python-cryptography | 3.4.8-1ubuntu2.1 | USN-6539-1 |
| Ubuntu:22.04:LTS | python-cryptography | 3.4.8-1ubuntu2.1 | UBUNTU-CVE-2023-49083 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| pyca | cryptography | >= 3.1, < 41.0.6 |
Weakness: CWE-476 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/pyca/cryptography/security/advisories/GHSA-jfhm-5ghh-2f97 x_refsource_CONFIRM
- https://github.com/pyca/cryptography/pull/9926 x_refsource_MISC
- https://github.com/pyca/cryptography/commit/f09c261ca10a31fe41b1262306db7f8f1da0e48a x_refsource_MISC
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QMNTYMUGFJSDBYBU22FUYBHFRZODRKXV/
- https://lists.debian.org/debian-lts-announce/2024/10/msg00012.html