CVE-2026-5503 MEDIUM

CVE-2026-5503: out-of-bounds write in TLSX_EchChangeSNI via attacker-controlled publicName

Vendor Wolfssl
Product wolfSSL
Weakness CWE-787
Published April 9, 2026
Last update April 10, 2026

CVSS base score

6.9/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality
Integrity

CVSS 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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

April 9, 2026 CVE published
April 10, 2026 Record updated