LiteLLM proxy can be made to read files by authenticated users
What this means
An authenticated user with basic permissions could read any file the LiteLLM process can access, including system files that contain secret keys and passwords. An attacker could use this to steal API keys and administrator credentials, then take over the entire proxy and all connected AI services.
SecurityElites Manager Brief: the decision in one minute
A low-privilege user who can log in to your LiteLLM proxy can read secret files and steal API keys to take over the system. You must upgrade to version 1.95.0 to fix this; settings alone will not help.
| SecurityElites Fix-First Score | 43 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 30 days High severity. This is our suggestion from common practice; your own policy comes first. |
| Who should own the fix | Platform or infrastructure team running LiteLLM. |
| Likely effort | About 15 minutes: download the new version, replace the old one, and restart the service. Reviewing logs for past misuse could add an hour or more. |
Questions to ask your team or supplier
- Do we have logs going back far enough to check whether anyone has made requests to `/utils/transform_request` with `vertex_ai_credentials` in the past few weeks?
- Who has SSO login access to the LiteLLM proxy today, and do they all need that level of access?
- What secrets and API keys are stored in environment variables or config files that the LiteLLM process can read, and have we rotated them recently?
Message you can forward to the owning team
Security notice: LiteLLM proxy can be made to read files by authenticated users (GHSA-g5ff-637f-6q2m)
Severity: High
SecurityElites Fix-First Score: 43 of 100
SecurityElites fix window: Within 30 days
Action: upgrade to litellm 1.95.0 or later.
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-g5ff-637f-6q2m-litellm-proxy-can-be-made-to-read-files-by/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-00986What is at stake in your AI setup
- API keys and credentials for external AI providers (OpenAI, Anthropic, Vertex AI, etc.) stored in files or environment variables could be stolen.
- The master key for LiteLLM proxy administration could be read from `/proc/self/environ`, allowing full takeover.
- Any cached prompts or request history stored in files the process can read could be exposed.
- Configuration files containing model endpoints, provider URLs, and routing rules could be disclosed to attackers.
Who is exposed
- Teams using LiteLLM proxy where SSO login is enabled (many internal setups).
- Deployments where the LiteLLM process runs with broad file access permissions.
- Any environment where API keys or passwords are stored in environment variables or readable config files.
- Services connecting to external AI providers through this proxy are not directly at risk of data theft via this path.
Upgrades you need
| Software | Affected versions | Move to |
|---|---|---|
| litellm PyPI | Every version before 1.95.0 | 1.95.0 or later |
Am I affected?
Enter the version you run. Nothing you type is stored.
SecurityElites Developer Brief: the technical picture
| Where the attacker must be | Anywhere that can reach it over a network, including the internet if it is exposed |
|---|---|
| Account needed | An ordinary user account |
| Does a person have to do something | No. It works without anyone clicking or opening anything |
| How hard it is to do | Easy. It works reliably once the attacker can reach it |
| Risk of: data being read | High |
| Risk of: data or settings being changed | High |
| Risk of: the service being taken down | None |
Read from the official severity rating: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Kind of coding mistake
- CWE-20: input is not checked properly
- CWE-22: file paths can escape the allowed folder
If you cannot upgrade today
- Restrict who can log in to the LiteLLM proxy by disabling SSO or limiting access by IP address if possible.
- Remove or restrict file-read permissions on the system user that runs LiteLLM if your infrastructure allows.
- Upgrade to 1.95.0 as soon as possible; there is no reliable configuration-only fix on older versions.
Signs it may already have been used against you
- Search request logs for POST requests to `/utils/transform_request` from authenticated users.
- Look for requests that include `vertex_ai_credentials` in the request body.
- Check for requests that reference file paths like `/proc/self/environ` or other system files in the request.
- Look for any response that contains environment variable contents or file data returned to the user.
Log searches to start from
Find POST requests to the vulnerable endpoint (adapt field names for your logs)Splunk
index=main (request_path="/utils/transform_request" OR path="/utils/transform_request") method=POST | stats count by user, src_ip, timestampFind requests containing the vulnerable parameter (adapt field names for your logs)Elastic
http.request.path:"/utils/transform_request" AND http.request.method:POST | stats count by user.name, source.ipWritten 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 installedCheck where the litellm Python package is installed. Run `pip show litellm` or `pip list | grep litellm` to see the version number now. Write down the current version.
- Check if you are affectedIf the version shown is before 1.95.0, you are affected. If it is 1.95.0 or later, you are not affected and can stop here.
- Back up the current installationMake a backup copy of your LiteLLM configuration files and any custom code that uses litellm. This lets you roll back if needed.
- Upgrade LiteLLM to version 1.95.0Run `pip install --upgrade litellm==1.95.0` to get the fixed version. This is the exact version that contains the fix.
- Restart the LiteLLM serviceStop and restart the LiteLLM proxy process or service. The way to do this depends on how you run it (systemd, Docker, etc.).
- Check the upgrade workedRun `pip show litellm` again to confirm the version is now 1.95.0 or later. Test a request to the proxy to confirm it works.
- Look for signs of past misuseSearch your logs for requests to `/utils/transform_request` with `vertex_ai_credentials` in the past few weeks. If found, assume files were read and check if any secrets have been used in unexpected ways.
- Rotate API keys and passwords if neededIf you found suspicious requests, rotate all API keys, provider credentials, and administrator passwords that could have been read from files or environment variables.
How to confirm it is fixed: Run `pip show litellm` and confirm the version is 1.95.0 or later, then make a test request to the proxy to confirm it still works.
SecurityElites Quick Fixes: copy and paste
Upgrade litellm with pipupgrade
pip install --upgrade "litellm>=1.95.0"
pip show litellm | grep VersionPin it in requirements.txtupgrade
litellm>=1.95.0Check installed version of litellmfor this issue
pip show litellm | grep VersionKeep file access inside one directory (Python)general hardening
from pathlib import Path
BASE = Path("/srv/app/data").resolve()
def safe_path(name: str) -> Path:
p = (BASE / name).resolve()
if not p.is_relative_to(BASE):
raise ValueError("path outside allowed directory")
return pTest in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.
Let your AI coding assistant do the upgrade
Paste this into the coding assistant you already use, inside the project. It checks first and asks before it changes anything.
Instruction for your coding assistant
You are helping me fix a security vulnerability (GHSA-g5ff-637f-6q2m) in this project.\n\n1. Search the whole repository, including lock files, container files and CI configuration, for these packages and list every place they are pinned or installed:\n - litellm (PyPI): must be 1.95.0 or later
2. Tell me which version we use now and whether it is affected. Stop and ask me before changing anything.
3. After I agree, raise each one to the safe version, update the lock files, and keep every other dependency as it is.
4. Run the tests and tell me what failed.
5. Give me a short summary of the files you changed that I can put in the pull request.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 proxy can be made to read files by authenticated users (GHSA-g5ff-637f-6q2m)
**Severity:** High | **SE Fix-First Score:** 43/100 | **Fix window:** Within 30 days
**Record:** SE-AIV-00986 https://securityelites.com/ai-vulnerabilities/ghsa-g5ff-637f-6q2m-litellm-proxy-can-be-made-to-read-files-by/
### Why this matters
An authenticated user with basic permissions could read any file the LiteLLM process can access, including system files that contain secret keys and passwords. An attacker could use this to steal API keys and administrator credentials, then take over the entire proxy and all connected AI services.
### What to do
1. Find where LiteLLM is installed: Check where the litellm Python package is installed. Run `pip show litellm` or `pip list | grep litellm` to see the version number now. Write down the current version.
2. Check if you are affected: If the version shown is before 1.95.0, you are affected. If it is 1.95.0 or later, you are not affected and can stop here.
3. Back up the current installation: Make a backup copy of your LiteLLM configuration files and any custom code that uses litellm. This lets you roll back if needed.
4. Upgrade LiteLLM to version 1.95.0: Run `pip install --upgrade litellm==1.95.0` to get the fixed version. This is the exact version that contains the fix.
5. Restart the LiteLLM service: Stop and restart the LiteLLM proxy process or service. The way to do this depends on how you run it (systemd, Docker, etc.).
6. Check the upgrade worked: Run `pip show litellm` again to confirm the version is now 1.95.0 or later. Test a request to the proxy to confirm it works.
7. Look for signs of past misuse: Search your logs for requests to `/utils/transform_request` with `vertex_ai_credentials` in the past few weeks. If found, assume files were read and check if any secrets have been used in unexpected ways.
8. Rotate API keys and passwords if needed: If you found suspicious requests, rotate all API keys, provider credentials, and administrator passwords that could have been read from files or environment variables.
### Done when
- [ ] litellm is at 1.95.0 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Run `pip show litellm` and confirm the version is 1.95.0 or later, then make a test request to the proxy to confirm it still works.
- [ ] 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 forced to run commands by an internal user High · CVE-2026-114612
The same kind of mistake in other AI tools
- MLflow can read files outside its data folder via model version prompts High · CVE-2026-116690
- MLflow can write files outside trace directory via crafted trace ID High · CVE-2026-53995
Change history
- 27 Oct 2026: Made public
- 1 Dec 2026: Published
Official record
## SummaryAn authenticated LiteLLM proxy user could read arbitrary local files from the proxy runtime by sending a crafted `vertex_ai_credentials` value to `/utils/transform_request`. The request-body safety blocklist rejected `vertex_credentials` but missed its alias `vertex_ai_credentials`, which let the value reach the Vertex AI credential loader and trigger a file read that is sent to an attacker-controlled URL.## ImpactA low-privilege authenticated user (only `internal_user_viewer`, obtainable through SSO login on many deployments) could read any file readable by the LiteLLM process. Reading files such as `/proc/self/environ` can disclose `LITELLM_MASTER_KEY` and provider API keys, so the impact can escalate to full proxy-admin control.## RemediationUpgrade to `1.95.0` or later. The fix adds the missing alias to the request-body blocklist, so no configuration change is needed once you upgrade. There is no reliable configuration workaround on affected versions.
Weakness type: CWE-20, CWE-22
Use this record in your own tools
Get this record as JSON
curl https://securityelites.com/wp-json/se-aivd/v1/vulns/GHSA-g5ff-637f-6q2mFor 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 27 Oct 2026. Read the vendor advisory before changing a production system.