Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessNetwork request to MCP server
-
DeliveryCraft scriptPath with traversal sequence
-
ExploitDeliver to vulnerable function
-
ExecutionPath validation bypassed
-
PersistAccess arbitrary file
-
ImpactRead or modify contents
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The vulnerability requires the matlab-mcp-server to be running and accessible over the network. No special configuration, authentication credentials, or user interaction is needed - the MCP interface processes remote scriptPath arguments directly from network requests without validation. Exploitation is possible against default configurations where the MCP server binds to a network interface and accepts external connections. The only limiting factor is that the attacker must have network access to the MCP server endpoint; if the server is isolated to localhost-only or protected by firewall rules, exploitation is prevented. Additionally, the impact of write operations is limited by the file system permissions of the matlab-mcp-server process - if it runs with restricted permissions, the attacker cannot write to sensitive system directories, though read operations via path traversal may still succeed. |
| Impact | The CVSS 4.0 vector indicates a network-accessible vulnerability (AV:N) with low complexity (AC:L) and no privileges or user interaction required (PR:N, UI:N), resulting in low confidentiality, integrity, and availability impact (VC:L, VI:L, VA:L) with no scope change. However, the exploitation probability flag (E:P) and confirmed public exploit availability elevate real-world risk despite the moderate CVSS score. The lack of authentication or interaction requirements makes exploitation trivial for any network-connected attacker. The primary concern is confidentiality and integrity - attackers can read sensitive files or write malicious content to arbitrary locations where the matlab-mcp-server process has write permissions. Availability impact is not scored because path traversal alone does not directly crash services, though write operations could corrupt critical files. The absence of vendor response and continued availability of the vulnerable code in production increases practical risk. This is a genuine priority for any organization running matlab-mcp-server in network-accessible environments, though the low impact metrics (L-rated across VC/VI/VA) suggest this is not a critical RCE vector. |
| Exploit ScenarioDerived | An attacker without authentication sends a crafted MCP request to a network-accessible matlab-mcp-server instance, specifying a scriptPath value such as '../../../../etc/passwd' or '../../sensitive_config.m'. The vulnerable generate_matlab_code or execute_matlab_code function constructs a file system path using this unsanitized input, allowing the attacker to read arbitrary files from the system (e.g., configuration files, credentials) or write malicious MATLAB scripts to locations where they will be executed by other processes. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 28, 2026
Path traversal in WilliamCloudQi matlab-mcp-server allows remote unauthenticated attackers to manipulate the scriptPath argument in the generate_matlab_code and execute_matlab_code functions, enabling unauthorized file system access with confidentiality and integrity impact. The vulnerability affects versions up to commit ab88f6b9bf5f36f725e8628029f7f6dd0d9913ca, has publicly available exploit code, and the vendor has not yet responded to early disclosure notification.
RemediationAI
Upgrade to a patched version once released by the WilliamCloudQi project; however, no vendor-released patch is currently available as the maintainer has not yet responded to disclosure. As an immediate mitigation, restrict network access to the matlab-mcp-server MCP interface using network-level controls such as firewall rules or VPC security groups to permit requests only from trusted MCP clients. Disable the generate_matlab_code and execute_matlab_code functions if they are not essential to your deployment, and implement input validation in the MCP layer to reject scriptPath arguments containing '..' sequences, absolute paths, or other traversal indicators. Additionally, run the matlab-mcp-server process with minimal file system permissions (e.g., chroot jail, containerization with read-only root filesystem, or process-level access controls) to limit the damage if path traversal exploitation occurs. Monitor the GitHub repository (https://github.com/WilliamCloudQi/matlab-mcp-server) and VulDB for patch updates. If the vendor remains unresponsive, consider forking the repository and applying a fix locally by sanitizing the scriptPath parameter with a whitelist of allowed directories or using safe path resolution APIs that prevent traversal.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The matlab-mcp-server is a Model Context Protocol (MCP) interface implemented in TypeScript (src/index.ts) that processes MATLAB script execution requests. The vulnerability exists in the path handling logic of the generate_matlab_code and execute_matlab_code functions, which fail to properly validate or sanitize the scriptPath parameter before using it in file system operations. This is a classic CWE-22 path traversal flaw where an attacker can use directory traversal sequences (e.g., '../', absolute paths, or symbolic links) to access files outside the intended script directory. The MCP interface accepts remote requests over the network without authentication, exposing this functionality directly to unauthenticated network access.
Know when Matlab Mcp Server gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
5DescriptionCVE.org
A flaw has been found in WilliamCloudQi matlab-mcp-server up to ab88f6b9bf5f36f725e8628029f7f6dd0d9913ca. The affected element is the function generate_matlab_code/execute_matlab_code of the file src/index.ts of the component MCP Interface. Executing a manipulation of the argument scriptPath can lead to path traversal. The attack can be executed remotely. The exploit has been published and may be used. The project was informed of the problem early through an issue report but has not responded yet.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-26050
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB