{"id":"CVE-2024-0727","published":"2024-01-26T08:57:19Z","modified":"2026-10-15T00:21:17Z","title":"PKCS12 Decoding crashes","vendor":"OpenSSL","product":"OpenSSL","tier":"tail","description":{"text":"Issue summary: Processing a maliciously formatted PKCS12 file may lead OpenSSL\nto crash leading to a potential Denial of Service attack\n\nImpact summary: Applications loading files in the PKCS12 format from untrusted\nsources might terminate abruptly.\n\nA file in PKCS12 format can contain certificates and keys and may come from an\nuntrusted source. The PKCS12 specification allows certain fields to be NULL, but\nOpenSSL does not correctly check for this case. This can lead to a NULL pointer\ndereference that results in OpenSSL crashing. If an application processes PKCS12\nfiles from an untrusted source using the OpenSSL APIs then that application will\nbe vulnerable to this issue.\n\nOpenSSL APIs that are vulnerable to this are: PKCS12_parse(),\nPKCS12_unpack_p7data(), PKCS12_unpack_p7encdata(), PKCS12_unpack_authsafes()\nand PKCS12_newpass().\n\nWe have also fixed a similar issue in SMIME_write_PKCS7(). However since this\nfunction is related to writing data we do not consider it security significant.\n\nThe FIPS modules in 3.2, 3.1 and 3.0 are not affected by this issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.03187,"percentile":0.88392,"provenance":"source"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"references":[{"url":"https://www.openssl.org/news/secadv/20240125.txt","tags":["vendor-advisory"]},{"url":"https://github.com/openssl/openssl/commit/775acfdbd0c6af9ac855f34969cdab0c0c90844a","tags":["patch"]},{"url":"https://github.com/openssl/openssl/commit/d135eeab8a5dbf72b3da5240bab9ddb7678dbd2c","tags":["patch"]},{"url":"https://github.com/openssl/openssl/commit/09df4395b5071217b76dc7d3d2e630eb8c5a79c2","tags":["patch"]},{"url":"https://github.openssl.org/openssl/extended-releases/commit/03b3941d60c4bce58fab69a0c22377ab439bc0e8","tags":["patch"]},{"url":"https://github.openssl.org/openssl/extended-releases/commit/aebaa5883e31122b404e450732dc833dc9dee539","tags":["patch"]},{"url":"https://security.netapp.com/advisory/ntap-20240208-0006/","tags":["x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2024/03/11/1","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/11/msg00000.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00033.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-331112.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-915275.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-769027.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-277137.html","tags":[]}],"priority":{"score":21.5,"factors":[{"name":"EPSS percentile","points":17.68},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"openssl","affectedVersions":[{"vendor":"OpenSSL","product":"OpenSSL","versions":[">= 3.2.0, < 3.2.1",">= 3.1.0, < 3.1.5",">= 3.0.0, < 3.0.13",">= 1.1.1, < 1.1.1x",">= 1.0.2, < 1.0.2zj"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-05-08T20:15:21.221130Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"cryptography","vulnerableRanges":["<42.0.2"],"patched":["42.0.2"],"from":["GHSA-9v9h-cgj8-h64p","PYSEC-2026-1285"],"provenance":"source"}],"summary":{"text":"OpenSSL's PKCS12 parsing and unpacking code (including PKCS12_parse(), PKCS12_unpack_p7data(), PKCS12_unpack_p7encdata(), PKCS12_unpack_authsafes() and PKCS12_newpass()) fails to check for NULL fields that the PKCS12 specification permits, causing a NULL pointer dereference. An attacker who can supply a maliciously formatted PKCS12 file to an application that loads such files through these APIs can crash that application, which requires local access and user interaction, with no authentication needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:12:47Z"},"euvd":{"id":"EUVD-2024-0317","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-openssl-cve-2024-0727","children":[{"from":"CVE-2024-0727","to":"CVE-2025-11187","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["crypto/pkcs12/p12_mutl.c"],"commits":["https://github.com/openssl/openssl/commit/775acfdbd0c6af9ac855f34969cdab0c0c90844a","https://github.com/openssl/openssl/commit/d135eeab8a5dbf72b3da5240bab9ddb7678dbd2c","https://github.com/openssl/openssl/commit/8caf359d6e46fb413e8f5f0df765d2e8a51df4e8","https://github.com/openssl/openssl/commit/e1079bc17ed93ff16f6b86f33a2fe3336e78817e"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2023-38325","published":"2023-07-14","fixed":"41.0.2","kev":false},{"cve":"CVE-2023-49083","published":"2023-11-29","fixed":"41.0.6","kev":false},{"cve":"CVE-2023-50782","published":"2024-02-05","fixed":"42.0.0","kev":false},{"cve":"CVE-2024-0727","published":"2024-01-26","fixed":"42.0.2","kev":false},{"cve":"CVE-2024-26130","published":"2024-02-21","fixed":"42.0.4","kev":false,"link":{"from":"CVE-2024-0727","to":"CVE-2024-26130","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:cryptography","fromFixed":"42.0.2","toFixed":"42.0.4","daysApart":26},{"kind":"similar","provenance":"machine","score":0.23,"basis":"same package + description similarity"}]}},{"cve":"CVE-2024-12797","published":"2025-02-11","fixed":"44.0.1","kev":false},{"cve":"CVE-2026-26007","published":"2026-02-10","fixed":"46.0.5","kev":false}],"package":"PyPI:cryptography"}}