Skip to main content
← Vulnerabilities

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

Written by anthropic/claude-haiku-5.5 from the sources below. Verify against them.

6.5MediumCNA
Exploited
No known exploitation
Fix
Fixed in 7.22
Who is exposed
Not reported

Do first: Upgrade to a fixed version: 7.22.

24Pcve.now Index 24 of 100 · methodology v3 · provisional
  • Exploitation?/40Exploitation: unknown (data gap). No CISA SSVC exploitation rating yet
  • Exposure17/25No login or user action needed per the CVSS vector, reachable over the network without a login · Data gap: No advisory context yet
  • Reach?/20Reach: unknown (data gap). No tracked technology or package matched
  • Severity6.5/10CVSS 6.5
  • No patch0/5No signal

What would change the score

  • Would score about 69 if added to CISA KEV
  • Would score about 64 if CISA's SSVC rates exploitation active
  • Would score about 29 if advisories confirm default setups are exposed

CVE-2026-115473 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 6.5 (medium) and affects mongoose; fixed in 7.22.

Published
Last modified
Published
Not listed in CISA KEV
24/100 · provisional
Fix
Fixed in 7.22
None on Exploit-DB, Metasploit or GitHub

Summary

Mongoose, an embedded web server and network library, has a flaw in how it checks request paths, which can cause one-byte heap out-of-bounds reads. Remote attackers can trigger it without logging in, but only through specific short path requests to mg_http_upload or mg_http_serve_dir; on bare-metal or RTOS targets without memory protection, the adjacent byte could be exposed or affect whether a path is accepted.

Read the original 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.

What to do

  • Upgrade to a fixed version: 7.22.

Timeline

  1. CVE published
  2. First seen by cve.now

Affected versions

  • cesanta mongoose

    fixed in 7.22

Evidence 3

  1. Advisory
  2. Repository
  3. Repository

Corrections

None so far.

Something wrong on this page? Report an error. Every fix is listed here.

FAQ

Questions about CVE-2026-115473

Is CVE-2026-115473 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.Source: cve.now feed data

Which versions are affected by CVE-2026-115473?

mongoose: before 7.22.Source: cve.now feed data

How do I fix CVE-2026-115473?

Upgrade to a fixed version: 7.22.Source: cve.now feed data