The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →LiteLLM has suffered several serious security flaws, and two PyPI releases—litellm==1.82.7 and litellm==1.82.8—were malicious for about 40 minutes on March 24, 2026. Those packages were designed to search for environment variables, SSH keys, cloud credentials, Kubernetes tokens and database passwords before exfiltrating data. Anyone who installed or ran either release during that window should treat provider keys and other secrets as potentially exposed.
The incident does not prove that every LiteLLM user was compromised. BlackSwan Cybersecurity’s estimate of more than 95 million monthly PyPI downloads measures package-download volume, not affected people. CloudSEK, as reported by ITPro, said more than 2,500 organizations were exposed; exposure is not the same as confirmed compromise.
As an Amazon Associate I earn from qualifying purchases.
Why LiteLLM is a high-impact target
LiteLLM is an open-source Python library and proxy that presents a common interface to many model providers. The proxy can route requests, expose an administrative API and hold credentials for services such as OpenAI-compatible providers, AWS, Google Cloud and Azure. A compromised library or proxy can therefore expose secrets and connected infrastructure, not merely the process running the gateway.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Scan for outdated or missing drivers - takes under a minute3Repair Windows errors before they cause bigger problemsThe March incident was a software-supply-chain compromise of PyPI packages. BerriAI’s incident report states: “The compromised PyPI packages were litellm==1.82.7 and litellm==1.82.8.” It also states that “Customers running the official LiteLLM Proxy Docker image were not impacted.” That statement applies to the incident described, not to every vulnerability in every LiteLLM deployment.
#1 Best Overall
What happened on March 24, 2026
Malicious PyPI releases
Versions 1.82.7 and 1.82.8 were available for roughly 40 minutes before quarantine. The malicious code searched for:
- Environment variables, including application and provider secrets
- SSH private keys
- AWS, Google Cloud and Azure credentials
- Kubernetes tokens
- Database passwords
The report says the payload could encrypt and exfiltrate data. An installation does not need to be publicly reachable to be at risk: a developer laptop, CI runner or build container that imported the package could have exposed credentials.
How large was the potential blast radius?
BlackSwan Cybersecurity reported more than 95 million monthly PyPI downloads for LiteLLM in 2026. That is a download-scale statistic; repeated downloads, mirrors and automated builds mean it cannot be converted into a user or compromise count. CloudSEK’s figure of more than 2,500 exposed organizations likewise indicates potential reach, not verified intrusion.
LiteLLM vulnerability timeline
| Issue | Mechanism and impact | Patched version stated by the advisory |
|---|---|---|
| CVE-2024-4264 | Unsafe use of eval in litellm.get_secret() could enable remote code execution. |
Use the fixed release specified by the advisory; the supplied record does not state a minimum version. |
| CVE-2024-8984 | An unauthenticated denial-of-service flaw affected LiteLLM v1.44.5. | Use the fixed release specified by the advisory; the supplied record does not state a minimum version. |
| March 24, 2026 supply-chain incident | PyPI 1.82.7 and 1.82.8 contained credential-stealing and data-exfiltration code for about 40 minutes. | Install a clean, trusted release and investigate any use of those versions. |
| CVE-2026-42208 | A crafted Authorization header could reach SQL-injection-prone API-key verification through an error path, potentially exposing or modifying proxy database data. |
1.83.7 and later. The advisory says caller input is passed as a separate database parameter. |
| CVE-2026-59823 | An authenticated caller could place api_base in user_config, causing requests to an arbitrary host (SSRF). |
1.83.9 and later. |
| Arbitrary local file read | An authenticated internal_user_viewer could abuse vertex_ai_credentials to read files available to the process. The advisory specifically warns that /proc/self/environ can reveal LITELLM_MASTER_KEY and provider keys. |
1.95.0 and later. |
| September 2026 privilege escalation advisory | An authenticated internal user could exploit salt-key reuse to become proxy_admin, with command execution through the MCP stdio endpoint. |
The supplied advisory summary does not state a minimum fixed version; follow its current patch guidance. |
How to determine whether your installation was exposed
- Inventory every installation. Check production hosts, virtual environments, containers, CI/CD runners, developer machines and transitive dependencies. On each Python environment run
python -m pip show litellmandpython -m pip freeze; inspect container build files and lockfiles as well. - Look specifically for 1.82.7 and 1.82.8. Search package-manager logs, CI logs, Docker build output, artifact caches and deployment records for those exact versions and for March 24, 2026. A package that was downloaded but never imported is different from one executed in a process, but both should be investigated.
- Preserve evidence before rebuilding. Copy relevant proxy, operating-system, package-manager, CI/CD and egress logs; record image digests, virtual-environment paths and process start times. Rebuilding first can destroy the evidence needed to determine what was read or sent.
- Assume secrets may be exposed when the package ran. Prioritize environments containing cloud credentials, provider API keys, SSH keys, database passwords, Kubernetes tokens or the LiteLLM master key.
What to do if an affected version was installed
- Contain the host or workload. Restrict outbound traffic and administrative access while preserving logs. Do not treat a clean package reinstall as proof that no data left the environment.
- Rotate credentials from a separate, trusted system. Replace provider API keys (including OpenAI-compatible keys), AWS/GCP/Azure credentials, SSH keys, Kubernetes tokens, database passwords and the LiteLLM master key when the affected package or a vulnerable file-read path could access them. Revoke old credentials rather than merely changing a local copy.
- Install a clean release. For the cited flaws, meet at least 1.83.7 for SQL injection, 1.83.9 for SSRF and 1.95.0 for arbitrary file read. Because the September 2026 privilege-escalation advisory has no minimum version in the supplied summary, use the latest trusted release that addresses that advisory, not just one of the older minimums.
- Rebuild from a verified source. Remove compromised virtual environments and caches, pin dependencies, verify published hashes or signatures where available, and rebuild images in an isolated job. Do not copy an old environment directory into the replacement.
- Hunt for follow-on activity. Review unusual API-key use, cloud role assumptions, SSH logins, Kubernetes actions, database queries, outbound connections and changes to proxy users or MCP configuration. Rotate again if monitoring reveals use after the initial reset.
Choosing a safer LiteLLM deployment path
The March incident illustrates why installation provenance matters. No deployment method removes the need to patch the gateway and protect its management plane, but the following differences affect containment and verification.
Rank #3
| Deployment | Provenance and dependency control | Verification and update considerations | Credential and response considerations |
|---|---|---|---|
| Pinned official Docker image | Image tag or digest can be pinned; BerriAI said customers running the official LiteLLM Proxy Docker image were not impacted by the March PyPI incident. | Update when a fixed image is published; verify the digest or signature when available. | Keep the management API off the public internet, inject secrets at runtime and retain container, registry and egress logs. |
| PyPI installation | Flexible, but an unpinned install can resolve a malicious or vulnerable release; 1.82.7 and 1.82.8 were the incident path. | Use a lockfile and hash checking, review dependency changes and control which index and cache are trusted. | Limit environment-variable exposure, isolate the process and monitor package-manager and host activity. |
| Source build | You can review a specific commit and lock transitive dependencies, but the build pipeline becomes part of the trust boundary. | Record commit IDs, dependency hashes and SBOMs; isolate builders and protect build artifacts. | Use a dedicated secret manager, minimize proxy privileges and preserve build and runtime logs for incident response. |
Ongoing controls after the incident
- Pin LiteLLM and transitive dependencies instead of accepting floating versions.
- Generate and retain a software bill of materials for each image and release.
- Subscribe to security advisories and continuously scan lockfiles, images and deployed environments.
- Separate the proxy management plane from public model traffic; require authentication and network restrictions.
- Grant the proxy only the cloud, database and filesystem permissions it actually needs.
- Test credential-revocation procedures so a future supply-chain event does not leave stale keys active.
LiteLLM is not established as a platform where every user was compromised. It is established as a gateway with a history of remote-code-execution, denial-of-service, SQL-injection, SSRF, arbitrary-file-read and privilege-escalation issues, plus a confirmed malicious-package incident. Operators should therefore verify their exact installation history, rotate any reachable secrets and run a clean, patched build rather than relying on download volume or the absence of an obvious outage.
Quick Recap
Best Value
Rank #4
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

