CVE-2026-5503
published medium CVSS 4.0 · 6.9out-of-bounds write in TLSX_EchChangeSNI via attacker-controlled publicName
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
In TLSX_EchChangeSNI, the ctx->extensions branch set extensions unconditionally even when TLSX_Find returned NULL. This caused TLSX_UseSNI to attach the attacker-controlled publicName to the shared WOLFSSL_CTX when no inner SNI was configured. TLSX_EchRestoreSNI then failed to clean it up because its removal was gated on serverNameX != NULL. The inner ClientHello was sized before the pollution but written after it, causing TLSX_SNI_Write to memcpy 255 bytes past the allocation boundary.
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
- 6.9 / 10
- Severity
- medium
- Provider
- wolfSSL · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/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
1- CWE-787 CWE-787 Out-of-bounds write
References
1Provider assertions
2wolfSSL · cna
out-of-bounds write in TLSX_EchChangeSNI via attacker-controlled publicName
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c935dba62b8c786d35a61985d9f4ac7808f4f27b4723947e3640af25200efd7e
- Ingested
- 23 Sep 2026, 09:23:13 UTC
- Source record
- Official CVE record