CVE-2026-5023 Details
Description
A vulnerability has been found in DeDeveloper23 codebase-mcp up to 3ec749d237dd8eabbeef48657cf917275792fde6. This vulnerability affects the function getCodebase/getRemoteCodebase/saveCodebase of the file src/tools/codebase.ts of the component RepoMix Command Handler. Such manipulation leads to os command injection. The attack needs to be performed locally. The exploit has been disclosed to the public and may be used. This product implements a rolling release for ongoing delivery, which means version information for affected or updated releases is unavailable. The project was informed of the problem early through an issue report but has not responded yet.
A command injection vulnerability exists in DeDeveloper23 Codebase-MCP versions prior to 1.0.0, specifically in the RepoMix Command Handler component. The issue arises from the unsafe use of child_process.execSync, which allows user-controlled input to be interpolated into command strings and executed. This vulnerability is present in the 'getCodebase', 'getRemoteCodebase', and 'saveCodebase' functions within 'src/tools/codebase.ts'. Exploitation of this vulnerability allows for arbitrary command execution on the server where the MCP service is running, using the same privileges as the MCP server process.
It is recommended to avoid using 'execSync' for executing commands. Instead, use 'execFileSync', which allows for safer execution by treating command arguments as separate elements, reducing the risk of injection. Additionally, implement strict input validation for all parameters exposed to MCP clients, particularly those that can influence command execution, such as 'includePatterns', 'ignorePatterns', 'repo', and 'outputFile'.
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 Mar 29, 2026CISA-ADP
Assessed Mar 30, 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/DeDeveloper23/codebase-mcp/ | [email protected] | ProductSource CodeVendor |
| https://github.com/DeDeveloper23/codebase-mcp/issues/7 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://vuldb.com/submit/778348 | [email protected] | Technical Description |
| https://vuldb.com/vuln/353907 | [email protected] | AdvisoryExploitPartial Content |
| https://vuldb.com/vuln/353907/cti | [email protected] | Content Wall |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-77 | Improper Neutralization of Special Elements used in a Command ('Command Injection') | [email protected] |
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| DeDeveloper23 codebase-mcp | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Mar 29, 2026 | New CVE Received | [email protected] |
Volerion