{"id":"CVE-2026-115473","published":"2026-11-04T21:40:39Z","modified":"2026-11-05T20:02:27Z","title":"Mongoose: Heap OOB reads and null-byte bypass in mg_path_is_sane (util.c)","vendor":"cesanta","product":"mongoose","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00411,"percentile":0.36081,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"},{"id":"CWE-158","name":"Improper Neutralization of Null Byte or NUL Character"}],"references":[{"url":"https://github.com/cesanta/mongoose/security/advisories/GHSA-cjmx-764f-286c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/cesanta/mongoose/commit/b55de8b151d1466a3e41d1f854f22eeb6faa23dc","tags":["x_refsource_MISC"]},{"url":"https://github.com/cesanta/mongoose/releases/tag/7.22","tags":["x_refsource_MISC"]}],"priority":{"score":11.8,"factors":[{"name":"EPSS percentile","points":7.22},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"cesanta","affectedVersions":[{"vendor":"cesanta","product":"mongoose","versions":["< 7.22"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-11-05T20:02:05.668751Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-117180","exploited":false,"provenance":"source"}}