litellm versions 1.82.7 and 1.82.8 contain malware that steals credentials
What this means
If your team installed litellm 1.82.7 or 1.82.8, malware ran automatically and stole API keys, database passwords, and other secrets from the system. An attacker now has access to any credentials that litellm could see, including keys for AI services, cloud platforms, and databases. You must assume all those credentials are compromised.
SecurityElites Manager Brief: the decision in one minute
Malware was deliberately inserted into litellm versions 1.82.7 and 1.82.8 on PyPI. If installed, it harvested and sent credentials to an attacker. Any company that ran these versions must revoke all credentials immediately.
| SecurityElites Fix-First Score | 51 of 100 Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity. |
|---|---|
| SecurityElites fix window | Within 7 days Critical severity. This is our suggestion from common practice; your own policy comes first. |
| Who should own the fix | Security team and DevOps team together. |
| Likely effort | About 30 minutes to find and remove the affected versions, plus several hours to rotate all credentials and audit access logs. Credential rotation takes longer if many services depend on the same keys. |
Questions to ask your team or supplier
- Did we install litellm 1.82.7 or 1.82.8 in any production, staging, or development environment? For how long did it run before we discovered the issue?
- What credentials and API keys were accessible to systems running the affected versions, and have we rotated all of them?
- Have we checked our cloud provider audit logs, API usage, and billing for signs that stolen credentials were used by an attacker?
Message you can forward to the owning team
Security notice: litellm versions 1.82.7 and 1.82.8 contain malware that steals credentials (GHSA-5mg7-485q-xm76)
Severity: Critical
SecurityElites Fix-First Score: 51 of 100
SecurityElites fix window: Within 7 days
Action: no fixed version is listed yet; apply the risk-reduction steps and watch the vendor advisory.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/ghsa-5mg7-485q-xm76-litellm-versions-1-82-7-and-1-82-8-contain-malware-that-steals/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-00972What is at stake in your AI setup
- API keys for LLM providers (OpenAI, Anthropic, etc.): attackers can use stolen keys to make API calls, consuming your budget and potentially using your credits maliciously.
- Prompts and system instructions: secrets hardcoded in prompts or system instructions could be read and exploited by attackers.
- Chat history and user interactions: any conversation logs or memory accessible to litellm could reveal sensitive information about your users or business.
- Credentials for connected tools and APIs: if litellm has permissions to call other services, databases, or retrieval systems, those credentials are now exposed and can be used to access them.
Who is exposed
- Teams running litellm 1.82.7 or 1.82.8 in production or development.
- Any service using litellm to call AI APIs, LLMs, or other external services.
- Development environments where engineers tested or used these versions.
- CI/CD pipelines or automation that ran these versions.
Upgrades you need
| Software | Affected versions | Move to |
|---|---|---|
| litellm PyPI | 1.82.7 up to and including 1.82.8 | No fixed version recorded. Follow the steps below. |
Am I affected?
Enter the version you run. Nothing you type is stored.
SecurityElites Developer Brief: the technical picture
Kind of coding mistake
- CWE-506
Where it sits in the standards
OWASP Top 10 for LLM Applications 2025: LLM02 Sensitive Information Disclosure
Signs it may already have been used against you
- Check firewall logs and DNS queries from machines that ran 1.82.7 or 1.82.8 for connections to unknown external IP addresses or domains, especially during the time the version was installed.
- Review command-line history and process logs on those machines for unexpected curl, wget, or Python commands that might have been used to exfiltrate data.
- Look in environment variable dumps or system logs for evidence that environment secrets were read or accessed by litellm or child processes.
- Search cloud platform audit logs (AWS CloudTrail, Azure Activity Log, GCP Cloud Audit Logs) for unusual API calls using the credentials available to the affected systems, especially from unexpected locations.
Log searches to start from
Outbound network connections from hosts running affected litellm to unknown destinations (adapt field names to your environment)Splunk
sourcetype=firewall OR sourcetype=network dest_ip!="internal_range" src_host IN (affected_host_list) | stats count by dest_ip, dest_port, src_hostProcess execution involving python, pip, or env variable access on affected hosts (adapt field names to your environment)Elastic
host:affected_host_list AND (process.name:(python OR pip OR env) OR process.args:(environ OR getenv)) | fields @timestamp, host, process.name, process.args, process.parent.nameWritten with AI as a starting point. Review them and change the index and field names to match your own logs before you rely on the result.
SecurityElites Fix Guide: step by step
- Find where litellm is installedSearch your infrastructure, containers, and development machines for litellm. Run pip show litellm on each machine, check requirements.txt and lock files, and look in container images. List every place it is running and what version.
- Identify which systems have versions 1.82.7 or 1.82.8From your list, flag any system where litellm version 1.82.8 or 1.82.7 is installed or was recently installed. These versions contained malware.
- Isolate or shut down affected systems immediatelyIf 1.82.7 or 1.82.8 is running in production, take that service offline or remove litellm now. The malware steals credentials while running, so stopping it prevents ongoing theft.
- Revoke all credentials that could have been exposedAny API key, password, or token that the affected system could access must be revoked or rotated. This includes AI provider keys (OpenAI, Anthropic, etc.), cloud credentials, database passwords, and any personal access tokens. Work with your security team to prioritize which credentials to rotate first.
- Remove the malicious versions and upgradeUninstall litellm 1.82.7 and 1.82.8 from all systems. Do not upgrade to 1.82.9 or later; instead, downgrade to litellm 1.82.6 or earlier, or wait for a patched version confirmed safe by the litellm maintainers.
- Review access logs for signs of theftCheck logs on systems that ran 1.82.7 or 1.82.8 for outbound connections to unknown hosts, unusual API calls using stolen credentials, or file access that looks abnormal. Record any suspicious activity for investigation.
- Audit what credentials were accessibleList all secrets, keys, and tokens that the compromised systems could have accessed: environment variables, files in home directories, .env files, CI/CD secrets, and cloud metadata. Assume all of them were stolen if the malware ran.
- Monitor for misuse of rotated credentialsAfter rotating credentials, watch for login attempts or API calls using the old keys. Set up alerts on your cloud platforms and services to flag any use of revoked credentials, which would indicate an attacker trying to regain access.
How to confirm it is fixed: Confirm that all installations of litellm are version 1.82.6 or earlier by running pip show litellm on each affected machine, and check that no connections to unknown external hosts appear in firewall logs after removing the malicious versions.
SecurityElites Quick Fixes: copy and paste
Check installed litellm version on a Linux or macOS machinefor this issue
pip show litellm | grep VersionSearch for litellm in a Python requirements filefor this issue
grep -i litellm requirements.txt poetry.lock setup.py pyproject.toml 2>/dev/nullRead a key from the environment instead of the code (Python)general hardening
import os
api_key = os.environ["SERVICE_API_KEY"]Test in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.
SecurityElites Incident Drill: could your team handle this?
Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.
Ticket for your backlog
Paste into Jira, GitHub Issues or any tracker that reads Markdown.
Ready-made ticket
## litellm versions 1.82.7 and 1.82.8 contain malware that steals credentials (GHSA-5mg7-485q-xm76)
**Severity:** Critical | **SE Fix-First Score:** 51/100 | **Fix window:** Within 7 days
**Record:** SE-AIV-00972 https://securityelites.com/ai-vulnerabilities/ghsa-5mg7-485q-xm76-litellm-versions-1-82-7-and-1-82-8-contain-malware-that-steals/
### Why this matters
If your team installed litellm 1.82.7 or 1.82.8, malware ran automatically and stole API keys, database passwords, and other secrets from the system. An attacker now has access to any credentials that litellm could see, including keys for AI services, cloud platforms, and databases. You must assume all those credentials are compromised.
### What to do
1. Find where litellm is installed
2. Identify which systems have versions 1.82.7 or 1.82.8
3. Isolate or shut down affected systems immediately
4. Revoke all credentials that could have been exposed
5. Remove the malicious versions and upgrade
6. Review access logs for signs of theft
7. Audit what credentials were accessible
8. Monitor for misuse of rotated credentials
Full steps: https://securityelites.com/ai-vulnerabilities/ghsa-5mg7-485q-xm76-litellm-versions-1-82-7-and-1-82-8-contain-malware-that-steals/
### Done when
- [ ] The risk-reduction steps are applied and the vendor advisory is being watched for a fixed version
- [ ] Lock files, container images and CI configuration are updated
- [ ] Confirm that all installations of litellm are version 1.82.6 or earlier by running pip show litellm on each affected machine, and check that no connections to unknown external hosts appear in firewall logs after removing the malicious versions.
- [ ] Logs were checked for signs of earlier use
SecurityElites Fix Tracker
Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.
Related vulnerabilities
In the same software
- LiteLLM proxy can be made to read files by authenticated users High · GHSA-g5ff-637f-6q2m
- litellm proxy can be forced to run commands by an internal user High · CVE-2026-114612
- litellm: User passwords exposed in API responses, weak hashing lets attackers take over accounts High · GHSA-69x8-hrgq-fjj8
The same kind of mistake in other AI tools
- Langflow OSS can leak secrets and private data through improper input validation High · CVE-2026-115549
- MCP SDK sends OAuth secrets to wrong server if the server says so High · CVE-2026-115563
- NLTK can read files outside a corpus when symlinks are present High · CVE-2026-126304
- MCP servers over HTTP accept unlimited request sizes, causing memory exhaustion High · GHSA-f897-62hf-6gxq
- vLLM API lets any client crash the server with huge image requests High · CVE-2026-114055
Change history
- 25 Mar 2026: Made public
- 2 Dec 2026: Published
Official record
After an API Token exposure from an exploited trivy dependency, two new releases of `litellm` were uploaded to PyPI containing automatically activated malware, harvesting sensitive credentials and files, and exfiltrating to a remote API.Anyone who has installed and run the project should assume any credentials available to litellm environment may have been exposed, and revoke/rotate thema ccordingly.
Weakness type: CWE-506
Use this record in your own tools
Get this record as JSON
curl https://securityelites.com/wp-json/se-aivd/v1/vulns/GHSA-5mg7-485q-xm76For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker
The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 2 Dec 2026. Read the vendor advisory before changing a production system.