{"id":"CVE-2026-115473","state":"PUBLISHED","title":"Mongoose: Heap OOB reads and null-byte bypass in mg_path_is_sane (util.c)","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.","publishedAt":"2026-11-04T21:40:39.470Z","updatedAt":"2026-11-05T20:02:27.603Z","severity":{"score":6.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["cesanta mongoose"],"affected":[{"vendor":"cesanta","product":"mongoose","versions":[{"version":"< 7.22","status":"affected"}]}],"references":["https://github.com/cesanta/mongoose/security/advisories/GHSA-cjmx-764f-286c","https://github.com/cesanta/mongoose/commit/b55de8b151d1466a3e41d1f854f22eeb6faa23dc","https://github.com/cesanta/mongoose/releases/tag/7.22"],"weaknesses":["CWE-125","CWE-158"],"ingestedAt":"2026-11-05T20:16:06.462Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/115xxx/CVE-2026-115473.json","commit":"3a3273713044cea6f0ffe0577511d8cc11fbf113","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-115473","state":"PUBLISHED","datePublished":"2026-11-04T21:40:39.470Z","dateUpdated":"2026-11-05T20:02:27.603Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-10-22T15:06:52.738Z"},"containers":{"cna":{"title":"Mongoose: Heap OOB reads and null-byte bypass in mg_path_is_sane (util.c)","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"cesanta","product":"mongoose","versions":[{"version":"< 7.22","status":"affected"}]}],"references":[{"url":"https://github.com/cesanta/mongoose/security/advisories/GHSA-cjmx-764f-286c","name":"https://github.com/cesanta/mongoose/security/advisories/GHSA-cjmx-764f-286c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/cesanta/mongoose/commit/b55de8b151d1466a3e41d1f854f22eeb6faa23dc","name":"https://github.com/cesanta/mongoose/commit/b55de8b151d1466a3e41d1f854f22eeb6faa23dc","tags":["x_refsource_MISC"]},{"url":"https://github.com/cesanta/mongoose/releases/tag/7.22","name":"https://github.com/cesanta/mongoose/releases/tag/7.22","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-125","lang":"en","description":"CWE-125: Out-of-bounds Read","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-158","lang":"en","description":"CWE-158: Improper Neutralization of Null Byte or NUL Character","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-11-04T21:40:39.470Z"},"source":{"advisory":"GHSA-cjmx-764f-286c","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/cesanta/mongoose/security/advisories/GHSA-cjmx-764f-286c","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-05T20:02:05.668751Z","id":"CVE-2026-115473","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-05T20:02:27.603Z"}}]}}}