{"id":"CVE-2026-5187","aliases":["CVE-2026-5187"],"related":[],"kind":"vulnerability","state":"published","title":"Heap Out-of-Bounds Write in DecodeObjectId() in wolfSSL","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-04-09T19:45:39.937Z","modified":"2026-06-17T10:58:34.337Z","severity":{"scorer":"wolfSSL","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N","score":2.3,"rating":"LOW"},"severities":[{"scorer":"wolfSSL","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N","score":2.3,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-122","CWE-787"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"5.9.0","status":"affected"}],"vendor":"wolfSSL","product":"wolfSSL","source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"5.9.0"}],"vendor":"wolfssl","product":"wolfssl","cpe":"cpe:2.3:a:wolfssl:wolfssl:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/wolfSSL/wolfssl","tags":["product"],"sources":["cvelist","nvd"]}],"credits":["ytsun, Independent Security Researcher"],"assigner":"wolfSSL","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-04-14T14:03:11.195Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-5187","url":"https://www.cve.org/CVERecord?id=CVE-2026-5187","licence":"CVE Terms of Use","modified":"2026-04-14T14:04:53.585Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-5187","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5187","licence":"Public domain","modified":"2026-06-17T10:58:34.337Z"}],"updatedAt":"2026-11-25T22:59:18.420Z","epss":{"score":0.00301,"percentile":0.24561,"date":"2026-12-01T12:00:22.000Z"}}