CVE-2026-5187
published low CVSS 4.0 · 2.3Heap Out-of-Bounds Write in DecodeObjectId() in wolfSSL
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| wolfSSL | — | wolfSSL0 through 5.9.0 · Other versions: unaffected | Affected | Not stated | wolfSSL |
| Alpine Linux | edge | wolfssl | Fixed | 5.9.1-r0 | Package fix record |
| Alpine Linux | v3.23 | wolfssl | Fixed | 5.9.1-r0 | Package fix record |
| Alpine Linux | v3.24 | wolfssl | Fixed | 5.9.1-r0 | Package fix record |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 2.3 / 10
- Severity
- low
- Provider
- wolfSSL · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| wolfSSL | wolfSSL | 0 through 5.9.0 (affected · semver)Default: unaffected | wolfSSL · cna |
Weaknesses
2- CWE-122 CWE-122: Heap-based Buffer Overflow
- CWE-787 CWE-787: Out-of-bounds Write
References
1- wolfSSL GitHub Repository https://github.com/wolfSSL/wolfssl
Provider assertions
2wolfSSL · cna
Heap Out-of-Bounds Write in DecodeObjectId() in wolfSSL
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- db05fbd14f57b0cc764ef97f116a1077cbfc33fa7bbefa0354efcbe253268c54
- Ingested
- 23 Sep 2026, 09:23:13 UTC
- Source record
- Official CVE record