CVE-2026-6118 AstrBotDevs AstrBot MCP Endpoint tools.py add_mcp_server command injection
Remote attackers can execute arbitrary commands via the add_mcp_server function in AstrBot's MCP Endpoint, requiring permissions.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-6118?
CVE-2026-6118 is a medium-severity command injection vulnerability in AstrBotDevs AstrBot, published on 12 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2026-6118?
How do I fix CVE-2026-6118?
No fix has been published for CVE-2026-6118 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2026-6118 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-6118 exists.
Public exploit code: 1 Nuclei template.
Sources
Also known as GHSA-g599-67fp-qhgv.