disler aider-mcp-server Command Injection Vulnerability (CVE-2026-7157)
A command injection vulnerability (CVE-2026-7157) exists in disler aider-mcp-server, allowing remote attackers to execute arbitrary commands by manipulating the relative_editable_files argument in the aider_ai_code component's server.py.
CVE search metadata
CVE search record: CVE-2026-7157. Severity: high. CVSS: 7.3. EPSS: 2.18%. KEV: no. Product: aider-mcp-server. Brief: disler aider-mcp-server Command Injection Vulnerability (CVE-2026-7157). Brief link: https://feed.craftedsignal.io/briefs/2024-01-02-aider-mcp-command-injection/
Triage facts
Revision 2- Applicability
- aider-mcp-server
- Evidence
- Unknown
- Severity
- High
- Sources
- 1 public source
- Freshness
- Revision 2Jan 2, 12:00 UTC
- Detection
- 2 rules
- Vulnerabilities
- 1 CVE
Revision history 1 entry · Revision 2
- Revision 2
Repaired a legacy canonical identity collision
Changed: slug
A command injection vulnerability, identified as CVE-2026-7157, affects disler aider-mcp-server up to commit b2516fa466d0d851932da92ee6d0e66946db9efc. The vulnerability resides within the src/aider_mcp_server/server.py file of the aider_ai_code component. It stems from improper handling of the relative_editable_files argument, which can be manipulated by a remote attacker to inject and execute arbitrary commands on the system. Exploitation is possible remotely, and a proof-of-concept exploit has been published, increasing the risk of widespread attacks. The project follows a rolling release model, so specific patched versions are not available, making mitigation challenging.
Attack Chain
- Attacker identifies a vulnerable instance of
aider-mcp-serverrunning a version up to commitb2516fa466d0d851932da92ee6d0e66946db9efc. - Attacker crafts a malicious request targeting the vulnerable functionality in
src/aider_mcp_server/server.py. - The crafted request includes a payload within the
relative_editable_filesargument designed to inject shell commands. - The
aider-mcp-serverprocesses the request and improperly sanitizes therelative_editable_filesargument. - The unsanitized argument is passed to a function that executes shell commands.
- The injected commands are executed on the server with the privileges of the
aider-mcp-serverprocess. - Attacker gains arbitrary code execution on the server.
- The attacker can then perform actions such as installing malware, accessing sensitive data, or pivoting to other systems.
Impact
Successful exploitation of this command injection vulnerability allows a remote attacker to execute arbitrary commands on the affected server. This can lead to complete system compromise, including data theft, malware installation, and denial of service. Given that an exploit is publicly available, the risk of exploitation is significantly elevated. The lack of versioned releases makes patching and mitigation more complex, potentially affecting any instance running a version prior to a fix being implemented.
Recommendation
- Inspect
aider-mcp-serverlogs for suspicious activity related to requests targetingsrc/aider_mcp_server/server.pyand the handling ofrelative_editable_filesto detect potential exploitation attempts. - Deploy the provided Sigma rule to detect command execution originating from the
aider-mcp-serverprocess. - Monitor network connections originating from the
aider-mcp-serverfor unexpected outbound activity.
Detection coverage 2
Detect Command Execution from Aider MCP Server
highDetects command execution originating from the aider-mcp-server process, potentially indicating exploitation of the command injection vulnerability.
Detect suspicious arguments to aider-mcp-server
mediumDetects command line arguments being passed to aider-mcp-server that contain suspicious command injection syntax
Detection queries are available on the platform. Get full rules →