CVE-2026-5503 PUBLISHED

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

Assigner: wolfSSL
Reserved: 03.04.2026 Published: 09.04.2026 Updated: 09.04.2026

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.

Metrics

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
CVSS Score: 6.9

Product Status

Vendor wolfSSL
Product wolfSSL
Versions Default: unaffected
  • affected from 0 to 5.9.0 (incl.)

Credits

  • Calif.io in collaboration with Claude and Anthropic Research finder

References

Problem Types

  • CWE-787 Out-of-bounds write CWE