CVE-2026-5187
Two potential heap out-of-bounds write locations existed in DecodeObje ...
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Julia (low).
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| alpine 3.23 | wolfssl | 5.9.1-r0 |
| alpine 3.24 | wolfssl | 5.9.1-r0 |
| alpine edge | wolfssl | 5.9.1-r0 |
| debian 11 | wolfssl | no fix listed |
| debian 12 | wolfssl | no fix listed |
| debian 13 | wolfssl | no fix listed |
| echo | wolfssl | no fix listed |
| julia::Julia Ecosystem Security Advisories | wolfSSL_jll | 5.9.2+0 |
| rapidfort alpine 3.20 | wolfssl | 5.9.1-r0 |
| rapidfort alpine 3.21 | wolfssl | 5.9.1-r0 |
| rapidfort alpine 3.22 | wolfssl | 5.9.1-r0 |
| rapidfort debian 12 | wolfssl | 0:5.9.1-0.1 |
Show all 13 entries from 13 sources
| Source | Package | Fixed in |
|---|---|---|
| alpine 3.23 | wolfssl | 5.9.1-r0 |
| alpine 3.24 | wolfssl | 5.9.1-r0 |
| alpine edge | wolfssl | 5.9.1-r0 |
| debian 11 | wolfssl | no fix listed |
| debian 12 | wolfssl | no fix listed |
| debian 13 | wolfssl | no fix listed |
| echo | wolfssl | no fix listed |
| julia::Julia Ecosystem Security Advisories | wolfSSL_jll | 5.9.2+0 |
| rapidfort alpine 3.20 | wolfssl | 5.9.1-r0 |
| rapidfort alpine 3.21 | wolfssl | 5.9.1-r0 |
| rapidfort alpine 3.22 | wolfssl | 5.9.1-r0 |
| rapidfort debian 12 | wolfssl | 0:5.9.1-0.1 |
| rapidfort debian 13 | wolfssl | 0:5.9.1-0.1 |