CVE-2026-42271: CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') in BerriAI litellm
In this article AI workloads are becoming high-value control points Case study 1: LiteLLM gateway compromise Case study 2: RAGFlow compromise Case study 3: Kestra compromise Mitigation and protection guidance MITRE ATT&CK techniques observed References Learn more AI is creating a new layer of enterprise infrastructure. Gateways, retrieval platforms, orchestration services, and containerized runtimes now sit between users, applications, data, and models. These systems concentrate credentials, data access, model connectivity, and execution privileges, making them some of the most powerful components in the AI stack. That concentration of trust is also creating new opportunities for attackers. In recent investigations, Microsoft observed activity targeting three distinct AI workloads: a LiteLLM gateway, a RAGFlow deployment, and a Kestra workflow environment. The intrusion paths varied, but the objectives were strikingly similar. Attackers sought to steal credentials, establish persistence, and monetize compromised compute resources. The individual techniques matter, but the broader pattern matters more. Across these cases, attackers treated AI infrastructure as a control plane where credential theft, host compromise, and downstream data access can converge. As organizations continue to deploy AI systems, these platforms are becoming high value targets that deserve the same security scrutiny as other critical enterprise infrastructure. AI workloads are becoming high-value control points The campaign-level signal extends beyond one product. The targeted workloads served different functions, but each exposed assets that could support follow-on abuse, including model-provider keys, proxy-issued virtual keys, database connection strings, tenant configuration, workflow execution, or host compute. Post-compromise behavior varied by workload role. Defenders should inventory exposed AI management surfaces, restrict administrative access, and monitor for gateway-originated execution and secret access. Three observed compromises across AI workloads AI workload Observed activity Attacker objective LiteLLM Observed attacker activity : Python droppers, runtime secret harvesting, PostgreSQL collection, miner deployment, and persistence activity from the LiteLLM gateway context. Microsoft assessment: Initial access likely occurred through exploitation of the exposed LiteLLM gateway surface, consistent with the vulnerability chain involving CVE-2026-42271 and CVE-2026-48710. Credential theft, backend database access, durable host access, and compute monetization. RAGFlow Observed attacker activity : Possible SSRF-style reconnaissance followed several days later by code execution, application-path modification, and placement of a Python hook in the TenantLLM credential-configuration flow. Public research: Describes multiple RAGFlow execution paths; Microsoft does not attribute this intrusion to a specific vulnerability. Intercept newly configured LLM provider credentials and model metadata. Kestra Observed attacker activity : Workflow-origin shell execution, Docker and container-environment discovery, XMRig deployment, and follow-on data collection. Microsoft assessment: Initial access likely involved exploitation of the exposed Kestra orchestration surface, with CVE-2026-49869 providing relevant public vulnerability context. Secret discovery, container-level access, data collection, and rapid compute monetization. Case study 1: LiteLLM gateway compromise Framework role and affected runtime context LiteLLM is commonly deployed as a proxy or gateway between applications and model providers. In that position, the service may hold or retrieve model-provider keys, LiteLLM master keys, virtual-key records, database connection strings, routing configuration, and tenant policy data. Command execution in the gateway runtime therefore exposed a process context close to AI routing and credential material. Figure 1. LiteLLM gateway compromise – attack chain…
AI Analysis
Technical Summary
LiteLLM is a proxy server for calling LLM APIs. Versions from 1.74.2 to before 1.83.7 contain a command injection vulnerability in the POST /mcp-rest/test/connection and POST /mcp-rest/test/tools/list endpoints. These endpoints accept a full server configuration including command, args, and env fields used by the stdio transport. When a stdio configuration is provided, the server spawns the supplied command as a subprocess with the proxy process privileges. The endpoints require only a valid proxy API key without role checks, allowing any authenticated user, including those with low-privilege internal-user keys, to execute arbitrary commands on the host. The vulnerability is fixed in version 1.83.7.
Potential Impact
An attacker with any valid proxy API key, including low-privilege keys, can execute arbitrary commands on the proxy host with the privileges of the proxy process. This can lead to full system compromise, data theft, or disruption of service. The CVSS 4.0 score is 8.7 (high severity), reflecting network attack vector, low attack complexity, partial privileges required, no user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
A fix is available in LiteLLM version 1.83.7. Users should upgrade to version 1.83.7 or later to remediate this vulnerability. There is no indication that temporary mitigations or workarounds are provided by the vendor. Review and restrict API key usage to minimize exposure until patching is complete.
Indicators of Compromise
- ip: 185.84.98.85
- ip: 94.26.106.29
- cve: CVE-2026-42271
- cve: CVE-2026-48710
- ip: 185.62.1.8
- cve: CVE-2026-59822
- url: http://185.62.1.8/mon/mon.zip'
- domain: crazyeltonproxy.top
- domain: 1710.rwlp.be
CVE-2026-42271: CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') in BerriAI litellm
Description
In this article AI workloads are becoming high-value control points Case study 1: LiteLLM gateway compromise Case study 2: RAGFlow compromise Case study 3: Kestra compromise Mitigation and protection guidance MITRE ATT&CK techniques observed References Learn more AI is creating a new layer of enterprise infrastructure. Gateways, retrieval platforms, orchestration services, and containerized runtimes now sit between users, applications, data, and models. These systems concentrate credentials, data access, model connectivity, and execution privileges, making them some of the most powerful components in the AI stack. That concentration of trust is also creating new opportunities for attackers. In recent investigations, Microsoft observed activity targeting three distinct AI workloads: a LiteLLM gateway, a RAGFlow deployment, and a Kestra workflow environment. The intrusion paths varied, but the objectives were strikingly similar. Attackers sought to steal credentials, establish persistence, and monetize compromised compute resources. The individual techniques matter, but the broader pattern matters more. Across these cases, attackers treated AI infrastructure as a control plane where credential theft, host compromise, and downstream data access can converge. As organizations continue to deploy AI systems, these platforms are becoming high value targets that deserve the same security scrutiny as other critical enterprise infrastructure. AI workloads are becoming high-value control points The campaign-level signal extends beyond one product. The targeted workloads served different functions, but each exposed assets that could support follow-on abuse, including model-provider keys, proxy-issued virtual keys, database connection strings, tenant configuration, workflow execution, or host compute. Post-compromise behavior varied by workload role. Defenders should inventory exposed AI management surfaces, restrict administrative access, and monitor for gateway-originated execution and secret access. Three observed compromises across AI workloads AI workload Observed activity Attacker objective LiteLLM Observed attacker activity : Python droppers, runtime secret harvesting, PostgreSQL collection, miner deployment, and persistence activity from the LiteLLM gateway context. Microsoft assessment: Initial access likely occurred through exploitation of the exposed LiteLLM gateway surface, consistent with the vulnerability chain involving CVE-2026-42271 and CVE-2026-48710. Credential theft, backend database access, durable host access, and compute monetization. RAGFlow Observed attacker activity : Possible SSRF-style reconnaissance followed several days later by code execution, application-path modification, and placement of a Python hook in the TenantLLM credential-configuration flow. Public research: Describes multiple RAGFlow execution paths; Microsoft does not attribute this intrusion to a specific vulnerability. Intercept newly configured LLM provider credentials and model metadata. Kestra Observed attacker activity : Workflow-origin shell execution, Docker and container-environment discovery, XMRig deployment, and follow-on data collection. Microsoft assessment: Initial access likely involved exploitation of the exposed Kestra orchestration surface, with CVE-2026-49869 providing relevant public vulnerability context. Secret discovery, container-level access, data collection, and rapid compute monetization. Case study 1: LiteLLM gateway compromise Framework role and affected runtime context LiteLLM is commonly deployed as a proxy or gateway between applications and model providers. In that position, the service may hold or retrieve model-provider keys, LiteLLM master keys, virtual-key records, database connection strings, routing configuration, and tenant policy data. Command execution in the gateway runtime therefore exposed a process context close to AI routing and credential material. Figure 1. LiteLLM gateway compromise – attack chain…
CVSS v4.0
Score 8.7high
Affected software
BerriAI
litellm
pkg:github/berriai/litellmRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
LiteLLM is a proxy server for calling LLM APIs. Versions from 1.74.2 to before 1.83.7 contain a command injection vulnerability in the POST /mcp-rest/test/connection and POST /mcp-rest/test/tools/list endpoints. These endpoints accept a full server configuration including command, args, and env fields used by the stdio transport. When a stdio configuration is provided, the server spawns the supplied command as a subprocess with the proxy process privileges. The endpoints require only a valid proxy API key without role checks, allowing any authenticated user, including those with low-privilege internal-user keys, to execute arbitrary commands on the host. The vulnerability is fixed in version 1.83.7.
Potential Impact
An attacker with any valid proxy API key, including low-privilege keys, can execute arbitrary commands on the proxy host with the privileges of the proxy process. This can lead to full system compromise, data theft, or disruption of service. The CVSS 4.0 score is 8.7 (high severity), reflecting network attack vector, low attack complexity, partial privileges required, no user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
A fix is available in LiteLLM version 1.83.7. Users should upgrade to version 1.83.7 or later to remediate this vulnerability. There is no indication that temporary mitigations or workarounds are provided by the vendor. Review and restrict API key usage to minimize exposure until patching is complete.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-26T11:53:27.707Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-42271","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:28960","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30056","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:27784","vendor":"Red Hat"}]
Indicators of Compromise
Ip
| Value | Description | Copy |
|---|---|---|
ip185.84.98.85 | — | |
ip94.26.106.29 | — | |
ip185.62.1.8 | — |
Cve
| Value | Description | Copy |
|---|---|---|
cveCVE-2026-42271 | — | |
cveCVE-2026-48710 | — | |
cveCVE-2026-59822 | — |
Url
| Value | Description | Copy |
|---|---|---|
urlhttp://185.62.1.8/mon/mon.zip' | — |
Domain
| Value | Description | Copy |
|---|---|---|
domaincrazyeltonproxy.top | — | |
domain1710.rwlp.be | — |
Threat ID: 69fd5dbdcbff5d86108b6463
Added to database: 05/08/2026, 03:51:25 UTC
Last enriched: 07/15/2026, 09:15:52 UTC
Last updated: 09/14/2026, 22:32:59 UTC
Views: 195
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.