# JLSEC-2026-731: In `TLSX_EchChangeSNI`, the ctx->extensions branch set extensions unconditionally even when...

- Severity: Critical 9.1 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-07-14T21:41:35.775Z
- Modified: 2026-07-25T18:24:50.577Z
- Related: CVE-2026-5503, GHSA-65xm-pfx9-g5p3, EUVD-2026-21234

## 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.

(As written by Julia Security Advisories.)

## Affected

- wolfSSL_jll (Julia): before 5.9.2+0

## Every score

- Julia Security Advisories: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- Julia Security Advisories: CVSS:4.0 `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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`

## References

- <https://github.com/advisories/GHSA-65xm-pfx9-g5p3> (web)
- <https://github.com/wolfSSL/wolfssl/pull/10102> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-5503> (web)

## Sources

- Julia Security Advisories: [JLSEC-2026-731](https://osv.dev/vulnerability/JLSEC-2026-731), CC-BY-4.0, modified 2026-07-25

---

Page: https://cve.day/JLSEC-2026-731 · Whole record: https://cve.day/JLSEC-2026-731.json · Rebuilt by cve.day 2026-11-25T22:56:26.219Z
