CVE-2026-5188: Integer underflow in X.509 SAN parsing in wolfSSL
An integer underflow issue exists in wolfSSL when parsing the Subject Alternative Name (SAN) extension of X.509 certificates. A malformed certificate can specify an entry length larger than the enclosing sequence, causing the internal length counter to wrap during parsing. This results in incorrect handling of certificate data. The issue is limited to configurations using the original ASN.1 parsing implementation which is off by default.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
alpine/wolfsslto a version that resolves this vulnerability.Fixed in 5.9.1-r0 - Upgrade
Upgrade
debian/wolfsslto a version that resolves this vulnerability.Fixed in 5.9.2-1.2 - Configuration
Keep the original ASN.1 parsing implementation disabled; it is off by default and the issue is limited to configurations that use it.
wolfSSL original ASN.1 parsing implementation = disabled
Event History
Frequently Asked Questions
What is the severity of CVE-2026-5188?
CVE-2026-5188 is classified as a moderate severity vulnerability due to the risk of integer underflow during X.509 SAN parsing.
How do I fix CVE-2026-5188?
To fix CVE-2026-5188, update to the latest version of wolfSSL where the vulnerability has been addressed.
What causes CVE-2026-5188?
CVE-2026-5188 is caused by a malformed X.509 certificate that specifies an entry length larger than the enclosing sequence.
What are the potential impacts of CVE-2026-5188?
The potential impact of CVE-2026-5188 includes crashes or unexpected behavior in applications using the affected versions of wolfSSL.
Which versions of wolfSSL are affected by CVE-2026-5188?
CVE-2026-5188 affects certain versions of wolfSSL, particularly those before the patch addressing this vulnerability.