Two potential heap out-of-bounds write locations existed in DecodeObjectId() in wolfcrypt/src/asn.c. First, a bounds check only validates one available slot before writing two OID arc values (out[0] and out[1]), enabling a 2-byte out-of-bounds write when outSz equals 1. Second, multiple callers pass sizeof(decOid) (64 bytes on 64-bit platforms) instead of the element count MAX_OID_SZ (32), causing the function to accept crafted OIDs with 33 or more arcs that write past the end of the allocated buffer.
{
"sources": [
{
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-5187",
"database_specific": {
"status": "Analyzed"
},
"modified": "2026-06-17T10:58:34.337Z",
"id": "CVE-2026-5187",
"published": "2026-04-09T20:16:28.233Z",
"imported": "2026-07-17T22:29:28.882Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-5187"
},
{
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-21068",
"modified": "2026-04-14T14:04:53Z",
"id": "EUVD-2026-21068",
"published": "2026-04-09T19:45:39Z",
"imported": "2026-07-17T22:29:38.861Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-21068"
}
],
"license": "CC-BY-4.0"
}