Description
Mongoose is an embedded web server and network library. Prior to 7.22, an attacker who can control an SSI-enabled file can place directory traversal sequences in an #include file or #include virtual directive. The mg_ssi() function in src/ssi.c concatenates the directive argument into a filesystem path without calling mg_path_is_sane(), allowing an MG_ENABLE_SSI deployment with ssi_pattern configured to disclose files readable by the Mongoose process. This issue is fixed in version 7.22.
Published: 2026-08-20
Score: 6.5 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability occurs in the Mongoose embedded web server and network library. Prior to version 7.22, an attacker who can control an SSI‑enabled file can insert directory traversal sequences into an #include or #include virtual directive. The mg_ssi() function concatenates the directive argument into a filesystem path without sanitization, enabling arbitrary file reads by the process that runs Mongoose. This path traversal flaw allows the disclosure of any file that the server process can read.

Affected Systems

The affected product is the Cesanta Mongoose library distributed under the name mongoose. All releases before 7.22 are vulnerable. This includes embedded applications that ship the old library or compile from older source.

Risk and Exploitability

The CVSS score for this issue is 6.5, indicating a moderate impact. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. Attackers need the ability to create or modify an SSI‑enabled file that the web server will serve; if these conditions are met, they can cause an arbitrary file read. The flaw relies on unsanitized path construction, so the exploit would read any file accessible to the Mongoose process.

Generated by OpenCVE AI on August 20, 2026 at 19:42 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to Mongoose version 7.22 or later, which includes the path sanitization fix for SSI #include directives.
  • If an immediate upgrade is not possible, disable SSI support or restrict the SSI pattern to prevent inclusion of external files.
  • Run the Mongoose process under a user account with minimal filesystem permissions so that only required files are readable.

Generated by OpenCVE AI on August 20, 2026 at 19:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 20 Aug 2026 19:15:00 +0000

Type Values Removed Values Added
First Time appeared Cesanta
Cesanta mongoose
Vendors & Products Cesanta
Cesanta mongoose

Thu, 20 Aug 2026 17:45:00 +0000

Type Values Removed Values Added
Description Mongoose is an embedded web server and network library. Prior to 7.22, an attacker who can control an SSI-enabled file can place directory traversal sequences in an #include file or #include virtual directive. The mg_ssi() function in src/ssi.c concatenates the directive argument into a filesystem path without calling mg_path_is_sane(), allowing an MG_ENABLE_SSI deployment with ssi_pattern configured to disclose files readable by the Mongoose process. This issue is fixed in version 7.22.
Title Mongoose: Path traversal in SSI #include directives enables arbitrary file read
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}


Subscriptions

Cesanta Mongoose
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-20T17:40:02.443Z

Reserved: 2026-08-11T17:18:01.598Z

Link: CVE-2026-73255

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-20T18:16:46.313

Modified: 2026-08-20T18:16:46.313

Link: CVE-2026-73255

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-20T19:45:03Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')