{"id":"CVE-2026-115473","aliases":["CVE-2026-115473"],"related":[],"kind":"vulnerability","state":"published","title":"Mongoose: Heap OOB reads and null-byte bypass in mg_path_is_sane (util.c)","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-11-04T21:40:39.470Z","modified":"2026-11-12T19:18:09.510Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-125","CWE-158"],"affected":[{"ranges":[{"version":"< 7.22","status":"affected"}],"vendor":"cesanta","product":"mongoose","source":"cvelist"}],"references":[{"url":"https://github.com/cesanta/mongoose/security/advisories/GHSA-cjmx-764f-286c","tags":["exploit","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/cesanta/mongoose/commit/b55de8b151d1466a3e41d1f854f22eeb6faa23dc","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/cesanta/mongoose/releases/tag/7.22","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-11-05T20:02:05.668Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-115473","url":"https://www.cve.org/CVERecord?id=CVE-2026-115473","licence":"CVE Terms of Use","modified":"2026-11-05T20:02:27.603Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-115473","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-115473","licence":"Public domain","modified":"2026-11-12T19:18:09.510Z"}],"updatedAt":"2026-11-25T22:59:49.047Z","epss":{"score":0.00411,"percentile":0.37389,"date":"2026-12-01T12:00:22.000Z"}}