Out-of-bounds Read Affecting mongoose package, versions <7.22+ds-1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.41% (37th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIAN14-MONGOOSE-22281867
  • published8 Nov 2026
  • disclosed4 Nov 2026

Introduced: 4 Nov 2026

NewCVE-2026-115473  (opens in a new tab)
CWE-125  (opens in a new tab)
CWE-158  (opens in a new tab)

How to fix?

Upgrade Debian:14 mongoose to version 7.22+ds-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream mongoose package and not the mongoose package as distributed by Debian. See How to fix? for Debian:14 relevant fixed versions and status.

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.