CVE-2026-42271
BerriAI LiteLLM · BerriAI LiteLLM Command Injection Vulnerability
Actively exploited
What is CVE-2026-42271?
The BerriAI LiteLLM software contains a command injection vulnerability. This security flaw allows an authenticated user, even one with low-level internal access, to execute unauthorized commands directly on the host system. By exploiting this weakness, an attacker can gain control over the underlying server to perform malicious actions. Because this vulnerability is currently being actively exploited in the wild, it poses a significant risk to the integrity and security of the host environment.
Administrators of systems running LiteLLM should prioritize addressing this issue immediately. You must apply the official security update provided by the vendor to resolve the vulnerability. If an update is not immediately available, administrators should restrict access to the application to prevent unauthorized users from reaching the vulnerable components until a patch is installed.
Summary written with AI assistance from the sources listed on this page. Check the original sources for full technical details.
CISA description
BerriAI LiteLLM contains a command injection vulnerability that could allow any authenticated user, including holders of low-privilege internal-user keys, to run arbitrary commands on the host.
CISA added this vulnerability to its Known Exploited Vulnerabilities catalog on 8 June 2026, which means there is reliable evidence that attackers are using it in real attacks.
What to do
Install the security update or apply the mitigations published by BerriAI as soon as possible. If no fix is available, follow the vendor's workaround or stop using the affected product until it can be patched. For internet-facing systems, also check for signs of compromise, because the flaw may have been used before you patched.