# CVE-2026-5187: Heap Out-of-Bounds Write in DecodeObjectId() in wolfSSL

- Severity: Low 2.3 (CVSS:4.0, scored by wolfSSL) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2026-04-09T19:45:39.937Z
- Modified: 2026-06-17T10:58:34.337Z
- Weaknesses: CWE-122, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: wolfSSL

## Description

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.

(As written by CVE List.)

## Affected

- wolfSSL wolfSSL: up to 5.9.0

## Every score

- wolfSSL: CVSS:4.0 2.3 Low `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`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/wolfSSL/wolfssl> (product)

## Sources

- CVE List: [CVE-2026-5187](https://www.cve.org/CVERecord?id=CVE-2026-5187), CVE Terms of Use, modified 2026-04-14
- NVD: [CVE-2026-5187](https://nvd.nist.gov/vuln/detail/CVE-2026-5187), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-5187 · Whole record: https://cve.day/CVE-2026-5187.json · Rebuilt by cve.day 2026-11-25T22:59:18.420Z
