CVE-2023-49083
python-cryptography: NULL-dereference when loading PKCS7 certificates
Overview
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.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness: CWE-476
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| PyPI | cryptography | >=3.1, <41.0.6 | 41.0.6 |
Open a package to see all its vulnerabilities.
Operating systems · 56 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | python-cryptography | 0:42.0.5-1.azl3 |
Oracle Linux 3 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 7 | python36-cryptography | 3.2.1-1.0.1.el7 |
| 8 | python3-cryptography | 3.2.1-8.el8_10 |
| 8 | python3-11-cryptography | 37.0.2-6.el8 |
| 9 | python3-cryptography | 36.0.1-5.el9_6 |
| 9 | python3-11-cryptography | 37.0.2-6.el9 |
Photon OS 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | python3-cryptography | 41.0.7-1.ph4 |
| 5.0 | python3-cryptography | 41.0.7-1.ph5 |
Red Hat 4 releases · 4 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | python-cryptography +1 | eol | — |
| 7 | rh-python38-python-cryptography | wont fix | — |
| 8 | python3-cryptography | 0:3.2.1-4.el8_4.1 | RHSA-2025:13098 |
| 8 | python3-cryptography | 0:3.2.1-5.1.el8_6.1 | RHSA-2025:13104 |
| 8 | python3-cryptography | 0:3.2.1-6.el8_8 | RHSA-2025:13100 |
| 8 | python3-cryptography | 0:3.2.1-8.el8_10 | RHSA-2025:14553 |
8 more rows
SUSE Linux Enterprise 2 releases · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | python3-cryptography | 3.3.2-150400.23.1 | SUSE-SU-2023:4843-1 |
| 15.4 | python311-cryptography | 41.0.3-150400.16.12.1 | SUSE-SU-2023:4842-1 |
| 15.5 | python3-cryptography | 3.3.2-150400.23.1 | SUSE-SU-2023:4843-1 |
| 15.5 | python311-cryptography | 41.0.3-150400.16.12.1 | SUSE-SU-2023:4842-1 |
SUSE Linux Enterprise Micro 5 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.1 | python3-cryptography | 3.3.2-150200.22.1 | SUSE-SU-2023:4921-1 |
| 5.2 | python3-cryptography | 3.3.2-150200.22.1 | SUSE-SU-2023:4921-1 |
| 5.3 | python3-cryptography | 3.3.2-150400.23.1 | SUSE-SU-2023:4843-1 |
| 5.4 | python3-cryptography | 3.3.2-150400.23.1 | SUSE-SU-2023:4843-1 |
| 5.5 | python3-cryptography | 3.3.2-150400.23.1 | SUSE-SU-2023:4843-1 |
alma 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | python3-cryptography | 3.2.1-8.el8_10 |
| 8 | python3-11-cryptography | 37.0.2-6.el8 |
| 9 | python3-cryptography | 36.0.1-5.el9_6 |
| 9 | python3-11-cryptography | 37.0.2-6.el9 |
amazon linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 2023 | python-cryptography-debugsource +2 | 36.0.1-1.amzn2023.0.5 |
chainguard 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| py3-cassandra-medusa | 0.19.1-r1 | |
| mitmproxy | 12.2.1-r0 |
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | python-cryptography | 3.3.2-1+deb11u1 |
| 12 | python-cryptography | 38.0.4-3+deb12u1 |
| 13 | python-cryptography | 41.0.7-1 |
| 14 | python-cryptography | 41.0.7-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| python-cryptography | 38.0.4-3+deb12u1 |
openSUSE 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | python310-cryptography +2 | 41.0.7-1.1 | openSUSE-SU-2024:13472-1 |
| Tumbleweed | python313-cryptography +1 | 50.0.0-1.1 | openSUSE-SU-2026:11468-1 |
openSUSE Leap Micro 2 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.3 | python3-cryptography | 3.3.2-150400.23.1 | SUSE-SU-2023:4843-1 |
| 5.4 | python3-cryptography | 3.3.2-150400.23.1 | SUSE-SU-2023:4843-1 |
rocky 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | python3-cryptography | 3.2.1-8.el8_10 |
| 8 | python3-11-cryptography | 37.0.2-6.el8 |
| 9 | python3-cryptography | 36.0.1-5.el9_6 |
| 9 | python3-11-cryptography | 37.0.2-6.el9 |
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-python-cryptography | 38.0.4-3+deb12u1 |
seal Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | python-jinja2 +1 | 2.7.2-4.el7+sp999 |
ubuntu 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 22.04 | python-cryptography | 3.4.8-1ubuntu2.1 |
wolfi 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| py3-cassandra-medusa | 0.19.1-r1 | |
| mitmproxy | 12.2.1-r0 |
References
- www.openwall.com http://www.openwall.com/lists/oss-security/2023/11/29/2
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:14553
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:15874
- access.redhat.com https://access.redhat.com/security/cve/CVE-2023-49083
- bugzilla.redhat.com https://bugzilla.redhat.com/2255331
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2255331
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-49083
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2025-15874.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2025:14553
Show all 23 references
- github.com https://github.com/pyca/cryptography
- github.com https://github.com/pyca/cryptography/commit/f09c261ca10a31fe41b1262306db7f8f1da0e48a
- github.com https://github.com/pyca/cryptography/pull/9926
- github.com https://github.com/pyca/cryptography/security/advisories/GHSA-jfhm-5ghh-2f97
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/cryptography/PYSEC-2023-254.yaml
- linux.oracle.com https://linux.oracle.com/cve/CVE-2023-49083.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2025-15874.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2024/10/msg00012.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QMNTYMUGFJSDBYBU22FUYBHFRZODRKXV
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QMNTYMUGFJSDBYBU22FUYBHFRZODRKXV/
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2023-49083
- ubuntu.com https://ubuntu.com/security/notices/USN-6539-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2023-49083
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.