LiteLLM proxy can be made to read local files by authenticated users
What this means
An authenticated user of the LiteLLM proxy could read any file that the proxy process can access, including files that contain API keys and the master authentication key. This could allow an attacker to take over the entire proxy and access all connected AI services.
SecurityElites Manager Brief: the decision in one minute
A user with basic login access to LiteLLM proxy can read sensitive files from the server, including keys that give full control of the proxy. You need to upgrade immediately.
| 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 proxy. |
| Likely effort | About 15 minutes per proxy instance: download and install version 1.95.0 or later, then restart the service. Identifying all affected proxies may take longer if you run many instances. |
Questions to ask your team or supplier
- Do you know which of your LiteLLM proxy instances are running versions before 1.95.0, and have you prioritized upgrading them?
- Have you reviewed access logs for the `/utils/transform_request` endpoint to see if this vulnerability was exploited before you patch it?
- Do you have a process to rotate API keys and the master key if they were potentially exposed, and have you prepared to execute it?
Message you can forward to the owning team
Security notice: LiteLLM proxy can be made to read local 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-local-files/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-00986What is at stake in your AI setup
- API keys for external AI providers: an attacker could read these from environment variables and use them directly, running up bills or accessing models.
- The LiteLLM master key: exposed in environment variables, this grants full administrative control of the proxy and all connected services.
- Model configuration and routing rules: if stored in readable files, these could be modified to redirect requests or access models without authorization.
Who is exposed
- LiteLLM proxy instances running any version before 1.95.0.
- Deployments that allow SSO login or other methods to create users with `internal_user_viewer` role.
- Proxies with access to environment variables or files containing API keys or the master key.
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
- Until you can upgrade, restrict access to the proxy. Remove or disable SSO login if possible, and limit `internal_user_viewer` role to only trusted users.
- If the proxy must accept authenticated users, monitor logs closely for the patterns described in the detect section and be prepared to rotate credentials if suspicious activity is found.
Signs it may already have been used against you
- In proxy access or application logs, look for requests to `/utils/transform_request` endpoint from authenticated users.
- Search for request bodies containing the string `vertex_ai_credentials` (note: this is different from the blocked `vertex_credentials`).
- Check if any such requests were followed by file-read errors or unusual system calls to read files like `/proc/self/environ` or configuration paths.
- Review authentication logs for new or unexpected logins using the `internal_user_viewer` role, especially via SSO.
Log searches to start from
Requests to transform_request endpoint with vertex_ai_credentials (adapt field names for your logs)Splunk
index=proxy_logs endpoint="/utils/transform_request" request_body="*vertex_ai_credentials*" | stats count by user, src_ipAuthentication logins to internal_user_viewer role and subsequent file access (adapt field names)Elastic
event.action:login AND user.role:internal_user_viewer OR (event.action:file_read AND process:litellm_proxy AND file.path:(/proc/self/* OR /etc/* OR *key* OR *credential*))Written 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 proxy is runningCheck your infrastructure documentation, container registries, or deployment tools to locate each running LiteLLM proxy instance and note its current version.
- Check the current installed versionOn the server running the proxy, run `pip show litellm` or check the proxy logs at startup to see the installed version. Record this for each instance.
- Review access logs for the `/utils/transform_request` endpointLook at proxy access logs for requests to `/utils/transform_request` from authenticated users, especially any that contain `vertex_ai_credentials` in the request body. This may show if the vulnerability was already exploited.
- Check environment variables and sensitive filesIf you found suspicious requests, review whether `LITELLM_MASTER_KEY`, API keys, or other secrets in environment variables or configuration files may have been exposed. If so, rotate those credentials immediately.
- Upgrade to version 1.95.0 or laterInstall the fixed version using your package manager: `pip install --upgrade litellm>=1.95.0`. Then restart the proxy service.
- Verify the upgrade workedAfter restart, check the proxy logs or run `pip show litellm` again to confirm version 1.95.0 or later is now installed.
- Test that the endpoint rejects the attackVerify the proxy is running and responding normally. Do not send any test requests with `vertex_ai_credentials`; instead, confirm in the proxy logs that it is accepting legitimate requests.
How to confirm it is fixed: Confirm the installed LiteLLM version is 1.95.0 or later by running `pip show litellm` or checking the version in proxy startup logs.
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 LiteLLM version on the hostfor 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 local 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-local-files/
### Why this matters
An authenticated user of the LiteLLM proxy could read any file that the proxy process can access, including files that contain API keys and the master authentication key. This could allow an attacker to take over the entire proxy and access all connected AI services.
### What to do
1. Find where LiteLLM proxy is running
2. Check the current installed version
3. Review access logs for the `/utils/transform_request` endpoint
4. Check environment variables and sensitive files
5. Upgrade to version 1.95.0 or later
6. Verify the upgrade worked
7. Test that the endpoint rejects the attack
Full steps: https://securityelites.com/ai-vulnerabilities/ghsa-g5ff-637f-6q2m-litellm-proxy-can-be-made-to-read-local-files/
### Done when
- [ ] litellm is at 1.95.0 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Confirm the installed LiteLLM version is 1.95.0 or later by running `pip show litellm` or checking the version in proxy startup logs.
- [ ] 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 code as an admin user High · CVE-2026-114612
- litellm can be used to log in as another user by stealing their password hash High · GHSA-69x8-hrgq-fjj8
- litellm versions 1.82.7 and 1.82.8 contain malware that steals credentials Critical · GHSA-5mg7-485q-xm76
The same kind of mistake in other AI tools
- Nik Voice Ticketing AI allows upload and run of harmful files without login Critical · CVE-2026-143966
- NLTK can write files outside its data directory through hardlinks during package extraction High · CVE-2026-128135
- MLflow can read files outside its data folder via model version prompts High · CVE-2026-116690
- MLflow can write files outside the trace directory via crafted trace ID High · CVE-2026-53995
- Flowise can run commands and read files outside its sandbox Critical · CVE-2026-119978
Change history
- 27 Oct 2026: Made public
- 1 Dec 2026: Published
- 3 Dec 2026: Guide updated
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 4 Dec 2026. Read the vendor advisory before changing a production system.