{"api_version":"1","generated_at":"2026-12-01T17:42:00+00:00","cve":"CVE-2026-120667","urls":{"html":"https://cve.report/CVE-2026-120667","api":"https://cve.report/api/cve/CVE-2026-120667.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-120667","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-120667"},"summary":{"title":"Heap Buffer Overflow When Re-Encoding Cached ASN.1 Items Above INT_MAX","description":"Issue summary: An application that parses a maliciously crafted DER CRL,\ncertificate or CSR from a buffer larger than 4 GiB may trigger a heap buffer\noverflow when OpenSSL re-encodes the item's cached encoding.\n\nImpact summary: An attacker who supplies a crafted CRL, certificate or CSR to\nan application that parses untrusted DER from a buffer larger than 4 GiB\ncauses a heap out-of-bounds write of attacker-controlled data, crashing the\nprocess: Denial of Service.\n\nCWE: CWE-787: Out-of-bounds Write\n\nDescription: ASN1_item_i2d() encodes an item in two passes, sizing the buffer\nfirst and writing it second. For an item with a cached DER encoding,\nossl_asn1_enc_restore() reports that length through an int while copying the\nfull long. A cached encoding longer than INT_MAX is reported truncated, so the\ncaller allocates a small buffer and the second pass copies the whole span into\nit.\n\nThe cache is kept for the signed parts of CRLs, certificates and CSRs. Parsing\na CRL reaches it: d2i_X509_CRL() fingerprints the CRL and re-encodes that\npart, and a CRL inside PKCS#7 or CMS triggers it when the container is parsed.\nCertificates reach it at the first X509_verify() or extension-cache\nfingerprint, CSRs at X509_REQ_verify(). The attacker must supply a DER object\nwhose signed part spans more than 2^32 bytes from a buffer of at least 4 GiB,\non a platform with a 64-bit long. TLS, the HTTP CRL fetch, the BIO, PEM,\ndecoder and store readers cap input below 4 GiB.\n\nThe oversized copy runs off the end of the heap mapping and the process dies.\nNothing is read out of bounds or returned to the attacker, and the fixed\noverrun size leaves no partial overwrite to steer.\n\nFIPS impact: no\nThe affected code is outside the FIPS module boundary.","state":"PUBLISHED","assigner":"openssl","published_at":"2026-12-01 17:17:20","updated_at":"2026-12-01 17:17:20"},"problem_types":["CWE-787","CWE-787 Out-of-bounds Write"],"metrics":[{"version":"3.1","source":"ADP","type":"DECLARED","score":"7.5","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","data":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}},{"version":"3.1","source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","type":"Secondary","score":"7.5","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":7.5,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"}}],"references":[{"url":"https://openssl-library.org/news/secadv/20261201.txt","name":"https://openssl-library.org/news/secadv/20261201.txt","refsource":"openssl-security@openssl.org","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/openssl/openssl/commit/8257d58a42033fd7ea4cc439cddcb0c71a879d47","name":"https://github.com/openssl/openssl/commit/8257d58a42033fd7ea4cc439cddcb0c71a879d47","refsource":"openssl-security@openssl.org","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/openssl/openssl/commit/e70e09fbecc5c1dc2dd159cb63216bf06318e579","name":"https://github.com/openssl/openssl/commit/e70e09fbecc5c1dc2dd159cb63216bf06318e579","refsource":"openssl-security@openssl.org","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-120667","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-120667","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"OpenSSL","product":"OpenSSL","version":"affected 4.1.0 4.1.1 semver","platforms":[]},{"source":"CNA","vendor":"OpenSSL","product":"OpenSSL","version":"affected 4.0.0 4.0.4 semver","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"CNA","value":"Bhabani Sankar Das","lang":"en"},{"source":"CNA","value":"Nikola Pajkovsky","lang":"en"},{"source":"CNA","value":"Bhabani Sankar Das","lang":"en"}],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}},{"other":{"content":{"id":"CVE-2026-120667","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","timestamp":"2026-12-01T16:52:25.402676Z","version":"2.0.3"},"type":"ssvc"}}],"providerMetadata":{"dateUpdated":"2026-12-01T16:52:29.515Z","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP"},"title":"CISA ADP Vulnrichment"}],"cna":{"affected":[{"defaultStatus":"unaffected","product":"OpenSSL","vendor":"OpenSSL","versions":[{"lessThan":"4.1.1","status":"affected","version":"4.1.0","versionType":"semver"},{"lessThan":"4.0.4","status":"affected","version":"4.0.0","versionType":"semver"}]}],"credits":[{"lang":"en","type":"reporter","value":"Bhabani Sankar Das"},{"lang":"en","type":"remediation developer","value":"Nikola Pajkovsky"},{"lang":"en","type":"remediation developer","value":"Bhabani Sankar Das"}],"datePublic":"2026-12-01T16:00:00.000Z","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"Issue summary: An application that parses a maliciously crafted DER CRL,<br>certificate or CSR from a buffer larger than 4 GiB may trigger a heap buffer<br>overflow when OpenSSL re-encodes the item's cached encoding.<br><br>Impact summary: An attacker who supplies a crafted CRL, certificate or CSR to<br>an application that parses untrusted DER from a buffer larger than 4 GiB<br>causes a heap out-of-bounds write of attacker-controlled data, crashing the<br>process: Denial of Service.<br><br>CWE: CWE-787: Out-of-bounds Write<br><br>Description: ASN1_item_i2d() encodes an item in two passes, sizing the buffer<br>first and writing it second. For an item with a cached DER encoding,<br>ossl_asn1_enc_restore() reports that length through an int while copying the<br>full long. A cached encoding longer than INT_MAX is reported truncated, so the<br>caller allocates a small buffer and the second pass copies the whole span into<br>it.<br><br>The cache is kept for the signed parts of CRLs, certificates and CSRs. Parsing<br>a CRL reaches it: d2i_X509_CRL() fingerprints the CRL and re-encodes that<br>part, and a CRL inside PKCS#7 or CMS triggers it when the container is parsed.<br>Certificates reach it at the first X509_verify() or extension-cache<br>fingerprint, CSRs at X509_REQ_verify(). The attacker must supply a DER object<br>whose signed part spans more than 2^32 bytes from a buffer of at least 4 GiB,<br>on a platform with a 64-bit long. TLS, the HTTP CRL fetch, the BIO, PEM,<br>decoder and store readers cap input below 4 GiB.<br><br>The oversized copy runs off the end of the heap mapping and the process dies.<br>Nothing is read out of bounds or returned to the attacker, and the fixed<br>overrun size leaves no partial overwrite to steer.<br><br>FIPS impact: no<br>The affected code is outside the FIPS module boundary."}],"value":"Issue summary: An application that parses a maliciously crafted DER CRL,\ncertificate or CSR from a buffer larger than 4 GiB may trigger a heap buffer\noverflow when OpenSSL re-encodes the item's cached encoding.\n\nImpact summary: An attacker who supplies a crafted CRL, certificate or CSR to\nan application that parses untrusted DER from a buffer larger than 4 GiB\ncauses a heap out-of-bounds write of attacker-controlled data, crashing the\nprocess: Denial of Service.\n\nCWE: CWE-787: Out-of-bounds Write\n\nDescription: ASN1_item_i2d() encodes an item in two passes, sizing the buffer\nfirst and writing it second. For an item with a cached DER encoding,\nossl_asn1_enc_restore() reports that length through an int while copying the\nfull long. A cached encoding longer than INT_MAX is reported truncated, so the\ncaller allocates a small buffer and the second pass copies the whole span into\nit.\n\nThe cache is kept for the signed parts of CRLs, certificates and CSRs. Parsing\na CRL reaches it: d2i_X509_CRL() fingerprints the CRL and re-encodes that\npart, and a CRL inside PKCS#7 or CMS triggers it when the container is parsed.\nCertificates reach it at the first X509_verify() or extension-cache\nfingerprint, CSRs at X509_REQ_verify(). The attacker must supply a DER object\nwhose signed part spans more than 2^32 bytes from a buffer of at least 4 GiB,\non a platform with a 64-bit long. TLS, the HTTP CRL fetch, the BIO, PEM,\ndecoder and store readers cap input below 4 GiB.\n\nThe oversized copy runs off the end of the heap mapping and the process dies.\nNothing is read out of bounds or returned to the attacker, and the fixed\noverrun size leaves no partial overwrite to steer.\n\nFIPS impact: no\nThe affected code is outside the FIPS module boundary."}],"metrics":[{"format":"other","other":{"content":{"text":"Moderate"},"type":"https://openssl-library.org/policies/general/security-policy/"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-787","description":"Out-of-bounds Write","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-12-01T16:36:21.747Z","orgId":"3a12439a-ef3a-4c79-92e6-6081a721f1e5","shortName":"openssl"},"references":[{"name":"OpenSSL Advisory","tags":["vendor-advisory"],"url":"https://openssl-library.org/news/secadv/20261201.txt"},{"name":"4.1.1 git commit","tags":["patch"],"url":"https://github.com/openssl/openssl/commit/8257d58a42033fd7ea4cc439cddcb0c71a879d47"},{"name":"4.0.4 git commit","tags":["patch"],"url":"https://github.com/openssl/openssl/commit/e70e09fbecc5c1dc2dd159cb63216bf06318e579"}],"source":{"discovery":"UNKNOWN"},"title":"Heap Buffer Overflow When Re-Encoding Cached ASN.1 Items Above INT_MAX","x_generator":{"engine":"Vulnogram 0.2.0"}}},"cveMetadata":{"assignerOrgId":"3a12439a-ef3a-4c79-92e6-6081a721f1e5","assignerShortName":"openssl","cveId":"CVE-2026-120667","datePublished":"2026-12-01T16:36:21.747Z","dateReserved":"2026-11-02T18:47:05.906Z","dateUpdated":"2026-12-01T16:52:29.515Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-01 17:17:20","lastModifiedDate":"2026-12-01 17:17:20","problem_types":["CWE-787","CWE-787 Out-of-bounds Write"],"metrics":{"cvssMetricV31":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":7.5,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-12-01T16:52:25.402676Z","id":"CVE-2026-120667","options":[{"exploitation":"none"},{"automatable":"yes"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"120667","Ordinal":"1","Title":"Heap Buffer Overflow When Re-Encoding Cached ASN.1 Items Above I","CVE":"CVE-2026-120667","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"120667","Ordinal":"1","NoteData":"Issue summary: An application that parses a maliciously crafted DER CRL,\ncertificate or CSR from a buffer larger than 4 GiB may trigger a heap buffer\noverflow when OpenSSL re-encodes the item's cached encoding.\n\nImpact summary: An attacker who supplies a crafted CRL, certificate or CSR to\nan application that parses untrusted DER from a buffer larger than 4 GiB\ncauses a heap out-of-bounds write of attacker-controlled data, crashing the\nprocess: Denial of Service.\n\nCWE: CWE-787: Out-of-bounds Write\n\nDescription: ASN1_item_i2d() encodes an item in two passes, sizing the buffer\nfirst and writing it second. For an item with a cached DER encoding,\nossl_asn1_enc_restore() reports that length through an int while copying the\nfull long. A cached encoding longer than INT_MAX is reported truncated, so the\ncaller allocates a small buffer and the second pass copies the whole span into\nit.\n\nThe cache is kept for the signed parts of CRLs, certificates and CSRs. Parsing\na CRL reaches it: d2i_X509_CRL() fingerprints the CRL and re-encodes that\npart, and a CRL inside PKCS#7 or CMS triggers it when the container is parsed.\nCertificates reach it at the first X509_verify() or extension-cache\nfingerprint, CSRs at X509_REQ_verify(). The attacker must supply a DER object\nwhose signed part spans more than 2^32 bytes from a buffer of at least 4 GiB,\non a platform with a 64-bit long. TLS, the HTTP CRL fetch, the BIO, PEM,\ndecoder and store readers cap input below 4 GiB.\n\nThe oversized copy runs off the end of the heap mapping and the process dies.\nNothing is read out of bounds or returned to the attacker, and the fixed\noverrun size leaves no partial overwrite to steer.\n\nFIPS impact: no\nThe affected code is outside the FIPS module boundary.","Type":"Description","Title":"Heap Buffer Overflow When Re-Encoding Cached ASN.1 Items Above I"}]}}}