CVE-2026-6118 Details
Description
A vulnerability was determined in AstrBotDevs AstrBot up to 4.22.1. Impacted is the function add_mcp_server of the file astrbot/dashboard/routes/tools.py of the component MCP Endpoint. This manipulation of the argument command causes command injection. The attack is possible to be carried out remotely. The exploit has been publicly disclosed and may be utilized. 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 (Model Context Protocol) endpoint of AstrBotDevs AstrBot, affecting versions through 4.22.1. The vulnerability resides in the 'add_mcp_server' function within 'astrbot/dashboard/routes/tools.py'. It allows authenticated dashboard users to execute arbitrary system commands by manipulating the 'command' argument of the MCP server configuration. This exploitation occurs remotely, with the injected command executed immediately during a connection test, bypassing any validation or restrictions.
It is recommended to implement command allowlisting for the MCP server configurations, ensuring that only specified commands can be executed. Additionally, validating the 'args' field to reject arguments with shell metacharacters, separating the configuration saving from connection testing, adding confirmation dialogs for MCP server additions, and logging all MCP configuration changes with user attribution could help mitigate this vulnerability.
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 Apr 12, 2026CISA-ADP
Assessed Apr 14, 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/AstrBotDevs/AstrBot/ | [email protected] | ProductVendor |
| https://github.com/AstrBotDevs/AstrBot/issues/7169 | [email protected] | ExploitIssue TrackingTechnical AnalysisVendor |
| https://vuldb.com/submit/792655 | [email protected] | ExploitTechnical Description |
| https://vuldb.com/vuln/356978 | [email protected] | AdvisoryExploitPartial Content |
| https://vuldb.com/vuln/356978/cti | [email protected] | Content Wall |
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 |
|---|---|
| AstrBot | 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] |
| Apr 12, 2026 | New CVE Received | [email protected] |
Volerion