CVE-2026-5188 is an integer underflow in the wolfSSL embedded TLS library: a malformed Subject Alternative Name in an X.509 certificate wraps a length counter during parsing. NVD scores it 8.1 while wolfSSL rates it Low, because only builds using the original ASN.1 parser, off by default, are affected. wolfSSL 5.9.1 fixes it.
Vulnerability summary
CVSS base score
8.1
High severity
EPSS score (FIRST)
0.1%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
No
Not listed
Published
Vulnerability ID: CVE-2026-5188 · Source: NVD
Affected components
| Component | CPE | Version range |
|---|---|---|
| wolfSSL (X.509 SAN parsing, original ASN.1 parser) | cpe:2.3:a:wolfssl:wolfssl:*:*:*:*:*:*:*:* | NVD: before 5.9.1; only builds with the original ASN.1 parser (--enable-asn=original / WOLFSSL_ASN_ORIGINAL); fixed in 5.9.1 (PR 10024) |
| OpenWrt libwolfssl package | — | 5.7.6 in OpenWrt 24.10.0-24.10.6 and 5.8.4 in 25.12.0-25.12.2 (stock build uses the template parser); 5.9.1 from 24.10.7 and 25.12.3 |
What does this mean for affected devices?
CVE-2026-5188 is an integer underflow (CWE-191, per wolfSSL as CNA) in wolfSSL's X.509 certificate parsing. The wolfSSL vulnerabilities page and the 5.9.1 section of the wolfSSL ChangeLog (8 April 2026) say a malformed Subject Alternative Name extension "can specify an entry length larger than the enclosing sequence, causing the internal length counter to wrap during parsing", and that "the issue is limited to configurations using the original ASN.1 parsing implementation", which "is off by default". wolfSSL rates it Low and lists a time to fix of less than a day. Muhammad Arya Arjuna Habibullah reported it; the fix is pull request 10024, "Fix DecodeAltNames length check", merged on 20 March 2026.
NVD's Primary CVSS v3.1 score is 8.1, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H, far above wolfSSL's own CVSS v4.0 score of 2.3, which sets high attack complexity and an attack requirement (AT:P). NVD's configuration covers wolfSSL up to (excluding) 5.9.1 (NVD). The GitHub advisory is GHSA-9qgc-pcpx-g38q.
The build condition is the parser choice. wolfSSL's configure.ac treats --enable-asn (and template) as the template parser and defines WOLFSSL_ASN_ORIGINAL only for --enable-asn=original. On a device the exposure is any TLS client, server or update check that parses a peer certificate with an original-parser build.
Three common embedded build templates use the template parser. The stock OpenWrt wolfSSL Makefile passes no --enable-asn option, although its libwolfssl package shipped 5.7.6 in OpenWrt 24.10.0 to 24.10.6 and 5.8.4 in 25.12.0 to 25.12.2, inside NVD's range, before moving to 5.9.1 in 24.10.7 and 25.12.3 (OpenWrt 5.9.1 update commit). The ESP-IDF template user_settings.h and the Zephyr user_settings.h shipped with wolfSSL 5.8.2 both define WOLFSSL_ASN_TEMPLATE. Firmware is affected only when its own configuration selects the original parser.
Debian fixed it in unstable with 5.9.1-0.1 and marks bookworm and trixie no-dsa (minor issue) (Debian security tracker).
CVE-2026-5188 is not in the CISA KEV catalog as of 2026-11-17 (catalog version 2026.11.13), and FIRST EPSS gives it 0.0014, the 3.4th percentile, in the 2026-11-16 dataset (CISA KEV, FIRST EPSS).
Search the wolfSSL configure line or user_settings.h for WOLFSSL_ASN_ORIGINAL, and move to 5.9.1 or later (the current release is 5.9.4). Our Mbed TLS and wolfSSL firmware guide covers finding the library and its build options, and our memory corruption fix guide covers the weakness class. The same 5.9.1 release fixed CVE-2026-5194 and CVE-2026-5264.
Evidence
- Low; SAN entry length larger than the enclosing sequence wraps the length counter; limited to the original ASN.1 parser, off by default; reported by Muhammad Arya Arjuna Habibullah; fixed in 5.9.1, PR 10024. — wolfSSL ChangeLog (5.9.1, 8 April 2026)
- Low rating, time to fix less than a day, fixed in 5.9.1. — wolfSSL security vulnerabilities page
- NVD Primary CVSS v3.1 8.1 (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H); CNA CVSS v4.0 2.3; CPE range before 5.9.1; CWE-191 from the CNA. — NVD
- PR 10024 "Fix DecodeAltNames length check" merged 2026-03-20. — GitHub
- --enable-asn default yes = template parser; WOLFSSL_ASN_ORIGINAL only for --enable-asn=original. — wolfSSL configure.ac (v5.9.0-stable)
- OpenWrt wolfSSL configure arguments contain no --enable-asn option. — OpenWrt wolfSSL Makefile (v24.10.8)
- ESP-IDF template user_settings.h defines WOLFSSL_ASN_TEMPLATE. — wolfSSL v5.8.2-stable
- Zephyr user_settings.h defines WOLFSSL_ASN_TEMPLATE. — wolfSSL v5.8.2-stable
- OpenWrt libwolfssl 5.7.6 at v24.10.6, 5.9.1 at v24.10.7; 5.8.4 at v25.12.2, 5.9.1 at v25.12.3; update commit da8b65de. — OpenWrt
- Debian: fixed in unstable 5.9.1-0.1; bookworm and trixie no-dsa (minor issue). — Debian security tracker
- Not in the CISA KEV catalog as of 2026-11-17 (catalog version 2026.11.13). — CISA KEV
- EPSS 0.0014 (3.4th percentile), dataset 2026-11-16, read 2026-11-17. — FIRST EPSS

Related advisories
Sources
- NVD
- wolfSSL: Security Vulnerabilities
- wolfSSL ChangeLog.md (release 5.9.1)
- wolfSSL pull request 10024: DecodeAltNames length check
- GitHub Advisory GHSA-9qgc-pcpx-g38q
- wolfSSL configure.ac (v5.9.0-stable)
- wolfSSL ESP-IDF template user_settings.h (v5.8.2-stable)
- wolfSSL Zephyr user_settings.h (v5.8.2-stable)
- OpenWrt commit: wolfssl update to 5.9.1
- OpenWrt wolfSSL package Makefile (v24.10.8)
- Debian security tracker
- CISA KEV
- FIRST EPSS
Frequently asked questions
Is every wolfSSL build affected by CVE-2026-5188?
No. wolfSSL says the issue is limited to the original ASN.1 parsing implementation, which is off by default; configure.ac selects it only with --enable-asn=original, which defines WOLFSSL_ASN_ORIGINAL (per the wolfSSL ChangeLog and configure.ac).
Why does NVD score it 8.1 when wolfSSL rates it Low?
NVD's CVSS v3.1 vector is network, low complexity, user interaction required, with high confidentiality and availability impact. wolfSSL's CVSS v4.0 score of 2.3 sets high attack complexity and an attack requirement (AT:P) for the original-parser build (per NVD).
Do OpenWrt, ESP-IDF or Zephyr builds of wolfSSL use the original ASN.1 parser?
Not in their stock templates. The OpenWrt Makefile passes no --enable-asn option, and the ESP-IDF template and Zephyr user_settings.h shipped with wolfSSL 5.8.2 define WOLFSSL_ASN_TEMPLATE (per those files).
Is CVE-2026-5188 in the CISA KEV catalog?
No, not as of 2026-11-17 (catalog version 2026.11.13). FIRST EPSS gives it 0.0014, the 3.4th percentile, in the 2026-11-16 dataset (per CISA KEV and FIRST EPSS).
Questions about this page?