Home › Intelligence › Brief
VULNERABILITY BRIEF 🔴 Critical Vulnerability

Command Injection in BerryAI LiteLLM (CVE‑2026‑42271) Enables Remote Code Execution – Active Exploits Confirmed

A command‑injection vulnerability (CVE‑2026‑42271) in the open‑source LiteLLM AI gateway is being actively exploited, allowing attackers to run arbitrary OS commands on the proxy host. The flaw, confirmed by CISA, can be chained with a Starlette authentication bypass to bypass API‑key checks, threatening credential theft and lateral movement across AI‑dependent environments.

Verisq™ Intelligence · 📅 June 09, 2026 · 📰 helpnetsecurity.com
🔴
Severity
Critical
VU
Type
Vulnerability
🎯
Confidence
High
🏢
Affected
3 sector(s)
✅
Actions
5 recommended
📰
Source
helpnetsecurity.com

Command Injection in BerryAI LiteLLM (CVE‑2026‑42271) Enables Remote Code Execution – Active Exploits Confirmed by CISA

What It Is – An unauthenticated command‑injection flaw (CVE‑2026‑42271) in the open‑source LiteLLM AI gateway allows attackers to spawn arbitrary OS commands on the proxy host. The vulnerability stems from improper sanitisation of command, args, and env fields in two preview endpoints.

Exploitability – CISA has listed the flaw in its Known Exploited Vulnerabilities catalog, confirming active exploitation in the wild. A proof‑of‑concept exists, and a chained bypass (CVE‑2026‑48710, “BadHost”) can remove the need for a valid API key. CVSS ≥ 9.0 (critical).

Affected Products – BerryAI LiteLLM library (versions < 1.83.7) and any deployments using LiteLLM as a standalone AI gateway or SDK integration. The underlying Starlette framework (pre‑v1.0.1) is also implicated.

TPRM Impact –

  • Compromise of a third‑party AI gateway can expose downstream model provider credentials and corporate data.
  • Attackers can pivot from the gateway to other internal services, creating a supply‑chain foothold.
  • Organizations that rely on LiteLLM for cost‑control and vendor‑lock‑in avoidance face heightened risk of service disruption and data leakage.

Recommended Actions –

  1. Immediately upgrade LiteLLM to v1.83.7 or later and Starlette to v1.0.1 or later.
  2. Enforce role‑based access controls; only users with the PROXY_ADMIN role may call the vulnerable endpoints.
  3. Rotate all API keys and secrets stored in the LiteLLM proxy.
  4. Deploy network segmentation and monitoring for anomalous command‑execution activity on AI gateway hosts.
  5. Review contracts with AI‑gateway providers for security‑by‑design clauses and incident‑response obligations.

Source: Help Net Security – LiteLLM vulnerability under active attack, CISA warns (CVE‑2026‑42271)

📰 Original Source
https://www.helpnetsecurity.com/2026/06/09/litellm-vulnerability-under-active-attack-cisa-warns-cve-2026-42271/ ↗

This Verisq Intelligence Brief is an independent analysis. Read the original reporting at the link above.

Vulnerability exposure

Is this CVE in your supply chain?

Verisq matches published vulnerabilities against the software your vendors run, so you know which relationships this touches before the next review.

See vendor exposure →