Path traversal in Mongoose - #VU167581

 

Path traversal in Mongoose - #VU167581

Published: November 18, 2026


Vulnerability identifier: #VU167581
CSH Severity: Low
CVSS v4: 7.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to read arbitrary files accessible to the Mongoose process outside the webroot.

The vulnerability exists due to path traversal in the mg_ssi() function in mongoose.c when processing SSI include paths without validation on servers built with MG_ENABLE_SSI=1. A remote user can place a .shtml file containing <!--#include file="../../../etc/passwd"--> in the webroot and request it to disclose file contents in the response.


Affected software

Mongoose

Remediation

Install security update from vendor's website.

Mongoose - update to 7.22

External References

Related Security Bulletins