CVE-2026-94046

0215AndrewFeng ACE-MCP MCP Tool getFileSnippet.ts get_file_snippet path traversal

Published Sep 20, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
A weakness has been identified in 0215AndrewFeng ACE-MCP up to 4.10.8. The affected element is the function get_file_snippet of the file getFileSnippet.ts of the component MCP Tool. Executing a manipulation of the argument projectRootPath/filePath can lead to path traversal. The attack may be launched remotely. The exploit has been made available to the public and could be used for attacks. isPathInsideProjectRoot only blocks filePath escaping the attacker-chosen projectRootPath; the root itself is untrusted client input - set projectRootPath=/etc, filePath=hosts and the guard passes. The project was informed of the problem early through an issue report but has not responded yet.

Analysis

AI-generated

Technical impact

The ACE-MCP get_file_snippet function, part of the MCP Tool, accepts a projectRootPath and filePath supplied by a client. An attacker can manipulate these inputs to read files outside the intended project directory, including sensitive system files such as /etc/hosts. This flaw is classed as a path traversal weakness (CWE‑22) and is exploitable remotely, allowing a threat actor to retrieve arbitrary files from the host machine. The CVSS score of 5.3 indicates a moderate risk, and the publicly available exploit on GitHub confirms that the weakness can be actively used in the wild.

Affected Systems

Code contributors and users of 0215AndrewFeng’s ACE‑MCP product, specifically versions up to and including 4.10.8, are impacted. No other vendors or product lines are referenced in the documentation. The vulnerability is tied to the getFileSnippet.ts component of the MCP Tool.

Risk and Exploitability

Because the attack does not require elevated privileges and only relies on client input, any user who can invoke the get_file_snippet endpoint can potentially read arbitrary files. The exploit is already public on GitHub, and the lack of an official fix or response from the project increases the attack surface. Although the EPSS score is unavailable, the moderate CVSS suggests significant exploitation potential, and the issue is not yet listed in CISA’s KEV catalog.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ACE-MCP to a version where the get_file_snippet endpoint correctly validates and sanitizes both projectRootPath and filePath inputs.
  • If an upgrade is not possible, restrict the projectRootPath value to a trusted directory and deny any absolute or parent references before passing it to the function.
  • Configure the application to run under the least‑privilege user and limit file read permissions to the necessary project files only.

Generated by OpenCVE AI on September 20, 2026 at 20:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A weakness has been identified in 0215AndrewFeng ACE-MCP up to 4.10.8. The affected element is the function get_file_snippet of the file getFileSnippet.ts of the component MCP Tool. Executing a manipulation of the argument projectRootPath/filePath can lead to path traversal. The attack may be launched remotely. The exploit has been made available to the public and could be used for attacks. isPathInsideProjectRoot only blocks filePath escaping the attacker-chosen projectRootPath; the root itself is untrusted client input - set projectRootPath=/etc, filePath=hosts and the guard passes. The project was informed of the problem early through an issue report but has not responded yet.
Title 0215AndrewFeng ACE-MCP MCP Tool getFileSnippet.ts get_file_snippet path traversal
First Time appeared 0215andrewfeng
0215andrewfeng ace-mcp
Weaknesses CWE-22
CPEs cpe:2.3:a:0215andrewfeng:ace-mcp:*:*:*:*:*:*:*:*
Vendors & Products 0215andrewfeng
0215andrewfeng ace-mcp
References
Metrics cvssV2_0

{'score': 4, 'vector': 'AV:N/AC:L/Au:S/C:P/I:N/A:N/E:POC/RL:ND/RC:UR'}

cvssV3_0

{'score': 4.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N/E:P/RL:X/RC:R'}

cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N/E:P/RL:X/RC:R'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P'}

Weaknesses
  • CWE-22

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

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Sep 21, 2026, 4:25 PM
Reserved
Sep 19, 2026, 9:43 PM
Status
Deferred
Published
Sep 20, 2026, 7:17 PM
Modified
Sep 21, 2026, 5:19 PM