Vulnerabilities / CVE-2026-5187

critical

CVE-2026-5187

Two potential heap out-of-bounds write locations existed in DecodeObje ...

Published Modified CWE 122, 787
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Julia2.3CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N

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

SourcePackageFixed in
alpine 3.23wolfssl5.9.1-r0
alpine 3.24wolfssl5.9.1-r0
alpine edgewolfssl5.9.1-r0
debian 11wolfsslno fix listed
debian 12wolfsslno fix listed
debian 13wolfsslno fix listed
echowolfsslno fix listed
julia::Julia Ecosystem Security AdvisorieswolfSSL_jll5.9.2+0
rapidfort alpine 3.20wolfssl5.9.1-r0
rapidfort alpine 3.21wolfssl5.9.1-r0
rapidfort alpine 3.22wolfssl5.9.1-r0
rapidfort debian 12wolfssl0:5.9.1-0.1
Show all 13 entries from 13 sources
SourcePackageFixed in
alpine 3.23wolfssl5.9.1-r0
alpine 3.24wolfssl5.9.1-r0
alpine edgewolfssl5.9.1-r0
debian 11wolfsslno fix listed
debian 12wolfsslno fix listed
debian 13wolfsslno fix listed
echowolfsslno fix listed
julia::Julia Ecosystem Security AdvisorieswolfSSL_jll5.9.2+0
rapidfort alpine 3.20wolfssl5.9.1-r0
rapidfort alpine 3.21wolfssl5.9.1-r0
rapidfort alpine 3.22wolfssl5.9.1-r0
rapidfort debian 12wolfssl0:5.9.1-0.1
rapidfort debian 13wolfssl0:5.9.1-0.1

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.