Vulnerabilities / CVE-2026-5503

critical

CVE-2026-5503

In TLSX_EchChangeSNI, the ctx->extensions branch set extensions uncond ...

Published Modified CWE 787
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Julia6.9CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Julia (medium).

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.

Affected packages and fixed versions

SourcePackageFixed in
alpine 3.23wolfssl5.9.1-r0
alpine 3.24wolfssl5.9.1-r0
alpine edgewolfssl5.9.1-r0
debian 11wolfsslno fix listed
debian 12wolfsslno fix listed
debian 13wolfsslno fix listed
echowolfsslno fix listed
julia::Julia Ecosystem Security AdvisorieswolfSSL_jll5.9.2+0
rapidfort alpine 3.20wolfssl5.9.1-r0
rapidfort alpine 3.21wolfssl5.9.1-r0
rapidfort alpine 3.22wolfssl5.9.1-r0
rapidfort debian 12wolfssl0:5.9.1-0.1
Show all 13 entries from 13 sources
SourcePackageFixed in
alpine 3.23wolfssl5.9.1-r0
alpine 3.24wolfssl5.9.1-r0
alpine edgewolfssl5.9.1-r0
debian 11wolfsslno fix listed
debian 12wolfsslno fix listed
debian 13wolfsslno fix listed
echowolfsslno fix listed
julia::Julia Ecosystem Security AdvisorieswolfSSL_jll5.9.2+0
rapidfort alpine 3.20wolfssl5.9.1-r0
rapidfort alpine 3.21wolfssl5.9.1-r0
rapidfort alpine 3.22wolfssl5.9.1-r0
rapidfort debian 12wolfssl0:5.9.1-0.1
rapidfort debian 13wolfssl0:5.9.1-0.1

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.