Out-of-bounds write in wolfSSL - CVE-2026-5187

 

Out-of-bounds write in wolfSSL - CVE-2026-5187

Published: April 14, 2026


Vulnerability identifier: #VU125938
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2026-5187
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: wolfSSL
Affected software:
wolfSSL

Detailed vulnerability description

The vulnerability allows a remote attacker to cause a denial of service or execute arbitrary code.

The vulnerability exists due to an out-of-bounds write in DecodeObjectId() when parsing a crafted ASN.1 object identifier. A remote attacker can supply a specially crafted ASN.1 object identifier to cause a denial of service or execute arbitrary code.

The issue is caused by an off-by-one bounds check combined with a sizeof mismatch.


How to mitigate CVE-2026-5187

Install security update from vendor's website.

Sources