# JLSEC-2026-1257: Cesanta Mongoose before 7.22 contains an out-of-bounds read in the built-in TLS server function...

- Severity: High 7.5 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-08-12T07:17:34.116Z
- Modified: 2026-08-12T07:43:45.656Z
- Related: CVE-2026-11404, EUVD-2026-42605, GHSA-cvgj-gr8r-q762

## Description

Cesanta Mongoose before 7.22 contains an out-of-bounds read in the built-in TLS server function `mg_tls_server_recv_hello()`, which uses an attacker-controlled `session_id_len` byte from a TLS ClientHello as a buffer index without validating it against the length of received data. A remote, unauthenticated attacker can send a single crafted ClientHello with an oversized session id length to read past the receive buffer, crashing any HTTPS, MQTTS, or WSS service built on `MG_TLS_BUILTIN`.

(As written by Julia Security Advisories.)

## Affected

- Mongoose_jll (Julia): all versions

## Every score

- Julia Security Advisories: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Julia Security Advisories: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/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-cvgj-gr8r-q762> (web)
- <https://github.com/cesanta/mongoose> (web)
- <https://github.com/cesanta/mongoose/commit/c288ac1f38424ffdd4d2fd5e1893fd4962642db3> (web)
- <https://github.com/cesanta/mongoose/releases/tag/7.22> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-11404> (web)
- <https://www.vulncheck.com/advisories/cesanta-mongoose-out-of-bounds-read-in-mg-tls-builtin-clienthello-session-id-parsing> (web)

## Sources

- Julia Security Advisories: [JLSEC-2026-1257](https://osv.dev/vulnerability/JLSEC-2026-1257), CC-BY-4.0, modified 2026-08-12

---

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