CVE-2026-7812 Details
Description
A vulnerability was found in 54yyyu code-mcp up to 4cfc4643541a110c906d93635b391bf7e357f4a8. The impacted element is the function git_operation of the file src/code_mcp/server.py of the component MCP Tool. Performing a manipulation of the argument operation results in command injection. The attack can be initiated remotely. The exploit has been made public and could be used. Continious delivery with rolling releases is used by this product. Therefore, no version details of affected nor updated releases are available. The project was informed of the problem early through an issue report but has not responded yet.
A command injection vulnerability has been identified in the MCP Tool component of 54yyyu's Code-MCP project, specifically in versions up to the latest commit on April 18, 2026. The issue arises in the 'git_operation' function within 'src/code_mcp/server.py', where user-controlled input is improperly sanitized before being executed as a shell command. This flaw allows remote attackers to inject arbitrary commands, potentially leading to unauthorized command execution on the server.
To address this vulnerability, the 'git_operation' function should be modified to execute commands using an argument array instead of a shell string, and a strict allowlist of permitted git subcommands should be enforced. Additionally, input should be sanitized to reject metacharacters and command separators.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 5, 2026CISA-ADP
Assessed May 6, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/54yyyu/code-mcp/ | [email protected] | ProductSource CodeVendor |
| https://github.com/54yyyu/code-mcp/issues/5 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://vuldb.com/submit/807752 | [email protected] | Permission Required |
| https://vuldb.com/vuln/361072 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/vuln/361072/cti | [email protected] | AdvisoryPermission Required |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') | [email protected] |
| CWE-77 | Improper Neutralization of Special Elements used in a Command ('Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| 54yyyu code-mcp | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 5, 2026 | New CVE Received | [email protected] |
Volerion