Skip to content
OpenAdvisories
Medium · 5.9 CVE-2023-49083 EUVD-2023-0060GHSA-jfhm-5ghh-2f97PYSEC-2023-254

cryptography vulnerable to NULL-dereference when loading PKCS7 certificates

Published Nov 29, 2023 · Updated Dec 18, 2025 · Assigned by GitHub_M

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

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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 ↗
ReleasePackageFixed inAdvisory
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 ↗
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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

ReleasePackageFixed inAdvisory
Amazon Linux 2023 python3-cryptography 36.0.1-1.amzn2023.0.5 ALAS2023-2023-446

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 python-cryptography 42.0.5-1 —
Azure Linux 2 (CBL-Mariner) python-cryptography 3.3.2-6 —

Oracle Linux

ReleasePackageFixed inAdvisory
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

ReleasePackageFixed inAdvisory
Wolfi rolling mitmproxy 12.2.1-r0 —
Wolfi rolling py3-cassandra-medusa +1 0.19.1-r1 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI cryptography >= 3.1, < 41.0.6 41.0.6 GHSA-jfhm-5ghh-2f97

Advisories 49

References