GHSA-6QVH-54GX-Q3G6
Vulnerability from github – Published: 2026-12-01 18:31 – Updated: 2026-12-01 18:31Issue summary: An application that parses a maliciously crafted DER CRL, certificate or CSR from a buffer larger than 4 GiB may trigger a heap buffer overflow when OpenSSL re-encodes the item's cached encoding.
Impact summary: An attacker who supplies a crafted CRL, certificate or CSR to an application that parses untrusted DER from a buffer larger than 4 GiB causes a heap out-of-bounds write of attacker-controlled data, crashing the process: Denial of Service.
CWE: CWE-787: Out-of-bounds Write
Description: ASN1_item_i2d() encodes an item in two passes, sizing the buffer first and writing it second. For an item with a cached DER encoding, ossl_asn1_enc_restore() reports that length through an int while copying the full long. A cached encoding longer than INT_MAX is reported truncated, so the caller allocates a small buffer and the second pass copies the whole span into it.
The cache is kept for the signed parts of CRLs, certificates and CSRs. Parsing a CRL reaches it: d2i_X509_CRL() fingerprints the CRL and re-encodes that part, and a CRL inside PKCS#7 or CMS triggers it when the container is parsed. Certificates reach it at the first X509_verify() or extension-cache fingerprint, CSRs at X509_REQ_verify(). The attacker must supply a DER object whose signed part spans more than 2^32 bytes from a buffer of at least 4 GiB, on a platform with a 64-bit long. TLS, the HTTP CRL fetch, the BIO, PEM, decoder and store readers cap input below 4 GiB.
The oversized copy runs off the end of the heap mapping and the process dies. Nothing is read out of bounds or returned to the attacker, and the fixed overrun size leaves no partial overwrite to steer.
FIPS impact: no The affected code is outside the FIPS module boundary.
{
"affected": [],
"aliases": [
"CVE-2026-120667"
],
"database_specific": {
"cwe_ids": [
"CWE-787"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-12-01T17:17:20Z",
"severity": "HIGH"
},
"details": "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\u0027s 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.",
"id": "GHSA-6qvh-54gx-q3g6",
"modified": "2026-12-01T18:31:50Z",
"published": "2026-12-01T18:31:50Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-120667"
},
{
"type": "WEB",
"url": "https://github.com/openssl/openssl/commit/8257d58a42033fd7ea4cc439cddcb0c71a879d47"
},
{
"type": "WEB",
"url": "https://github.com/openssl/openssl/commit/e70e09fbecc5c1dc2dd159cb63216bf06318e579"
},
{
"type": "WEB",
"url": "https://openssl-library.org/news/secadv/20261201.txt"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"type": "CVSS_V3"
}
]
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.