CVE-2026-5503CWE-787

out-of-bounds write in TLSX_EchChangeSNI via attacker-controlled publicName

Medium · published April 9, 2026

CVSS v4.0
6.9
EPSS
0%
Percentile
38.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
6.9 · MEDIUM
Vector
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
EPSS
0.00452 · 38.3th percentile
Weakness
CWE-787 · Out-of-bounds Write
Published
2026-04-09T22:35Z
EPSS history
Timeline
  • 09 APR 22:35Z
    out-of-bounds write in TLSX_EchChangeSNI via attacker-controlled publicName
    cvelistv5