{"id":"CVE-2026-115473","summary":"Mongoose: Heap OOB reads and null-byte bypass in mg_path_is_sane (util.c)","details":"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.","aliases":["GHSA-cjmx-764f-286c"],"modified":"2026-11-27T20:00:09.245998356Z","published":"2026-11-04T21:40:39.470Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/115xxx/CVE-2026-115473.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-125","CWE-158"]},"references":[{"type":"WEB","url":"https://github.com/cesanta/mongoose/releases/tag/7.22"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/115xxx/CVE-2026-115473.json"},{"type":"ADVISORY","url":"https://github.com/cesanta/mongoose/security/advisories/GHSA-cjmx-764f-286c"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-115473"},{"type":"FIX","url":"https://github.com/cesanta/mongoose/commit/b55de8b151d1466a3e41d1f854f22eeb6faa23dc"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/cesanta/mongoose","events":[{"introduced":"0"},{"fixed":"c288ac1f38424ffdd4d2fd5e1893fd4962642db3"},{"fixed":"b55de8b151d1466a3e41d1f854f22eeb6faa23dc"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"7.22"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"range":[{"fixed":"b55de8b151d1466a3e41d1f854f22eeb6faa23dc"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_TAG","original_tag":"7.22","range":[{"fixed":"c288ac1f38424ffdd4d2fd5e1893fd4962642db3"}]}]}}],"versions":["7.21","7.20","7.19","7.18","7.17","7.16","7.15","7.14","7.13","7.12","7.11","7.8","7.7","7.6","7.5","7.4","7.3","7.2","7.1","7.0","6.18","6.17","6.16","6.15","6.14","6.13","6.12","6.11","6.10","6.9","6.7","6.6","6.5","6.4","6.3","6.2","6.1","6.0","5.6","5.5_20140120","5.5","5.4","5.3","5.2","5.1","5.0","4.1","4.0","3.8","3.7","3.6","3.5","3.4","3.3","3.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-115473.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L"}]}