# CVE-2026-115473: Mongoose: Heap OOB reads and null-byte bypass in mg_path_is_sane (util.c)

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-04T21:40:39.470Z
- Modified: 2026-11-12T19:18:09.510Z
- Weaknesses: CWE-125, CWE-158
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Mongoose is an embedded web server and network library. Prior to 7.22, mg_path_is_sane in src/util.c read path.buf[1] without first requiring path.len to be at least two and read s[2] when only two bytes remained. Unauthenticated remote requests reaching mg_http_upload or mg_http_serve_dir with the affected short path shapes could therefore trigger one-byte heap out-of-bounds reads. On bare-metal or RTOS targets without memory protection, the adjacent byte could be exposed or influence whether a path was accepted, and instrumented builds could crash. This issue is fixed in version 7.22.

(As written by CVE List.)

## Affected

- cesanta mongoose: < 7.22

## References

- <https://github.com/cesanta/mongoose/security/advisories/GHSA-cjmx-764f-286c> (exploit)
- <https://github.com/cesanta/mongoose/commit/b55de8b151d1466a3e41d1f854f22eeb6faa23dc>
- <https://github.com/cesanta/mongoose/releases/tag/7.22>

## Sources

- CVE List: [CVE-2026-115473](https://www.cve.org/CVERecord?id=CVE-2026-115473), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2026-115473](https://nvd.nist.gov/vuln/detail/CVE-2026-115473), Public domain, modified 2026-11-12

---

Page: https://cve.day/CVE-2026-115473 · Whole record: https://cve.day/CVE-2026-115473.json · Rebuilt by cve.day 2026-11-25T22:59:49.047Z
