CVE-2026-5503
In TLSX_EchChangeSNI, the ctx->extensions branch set extensions uncond ...
Severity by source
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
| Source | Package | Fixed in |
|---|---|---|
| alpine 3.23 | wolfssl | 5.9.1-r0 |
| alpine 3.24 | wolfssl | 5.9.1-r0 |
| alpine edge | wolfssl | 5.9.1-r0 |
| debian 11 | wolfssl | no fix listed |
| debian 12 | wolfssl | no fix listed |
| debian 13 | wolfssl | no fix listed |
| echo | wolfssl | no fix listed |
| julia::Julia Ecosystem Security Advisories | wolfSSL_jll | 5.9.2+0 |
| rapidfort alpine 3.20 | wolfssl | 5.9.1-r0 |
| rapidfort alpine 3.21 | wolfssl | 5.9.1-r0 |
| rapidfort alpine 3.22 | wolfssl | 5.9.1-r0 |
| rapidfort debian 12 | wolfssl | 0:5.9.1-0.1 |
Show all 13 entries from 13 sources
| Source | Package | Fixed in |
|---|---|---|
| alpine 3.23 | wolfssl | 5.9.1-r0 |
| alpine 3.24 | wolfssl | 5.9.1-r0 |
| alpine edge | wolfssl | 5.9.1-r0 |
| debian 11 | wolfssl | no fix listed |
| debian 12 | wolfssl | no fix listed |
| debian 13 | wolfssl | no fix listed |
| echo | wolfssl | no fix listed |
| julia::Julia Ecosystem Security Advisories | wolfSSL_jll | 5.9.2+0 |
| rapidfort alpine 3.20 | wolfssl | 5.9.1-r0 |
| rapidfort alpine 3.21 | wolfssl | 5.9.1-r0 |
| rapidfort alpine 3.22 | wolfssl | 5.9.1-r0 |
| rapidfort debian 12 | wolfssl | 0:5.9.1-0.1 |
| rapidfort debian 13 | wolfssl | 0:5.9.1-0.1 |