litellm proxy can be forced to run commands by an internal user

HighSE Fix-First Score 43/100CVE-2026-114612SE-AIV-00979Remote code executionModel serving and inferencePublished 27 Oct 2026

Download as PDF

What this means

An employee or contractor with basic access to litellm can gain admin power and run any code on the server. This means data theft, service shutdown, or lateral movement into other systems. The attacker needs only a valid internal account, not a break-in from outside.

SecurityElites Manager Brief: the decision in one minute

An internal user can trick litellm into giving them admin rights and then run commands on your server. This is a serious risk if you have contractors or employees with basic access. You need to upgrade litellm right away, or turn off a feature until you can.

SecurityElites Fix-First Score43 of 100
Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity.
SecurityElites fix windowWithin 30 days
High severity. This is our suggestion from common practice; your own policy comes first.
Who should own the fixPlatform engineering or DevOps team managing litellm deployments.
Likely effortAbout 30 minutes per deployment: check which version you have, upgrade to the fixed version, restart the service, and verify it works. It could take longer if you run litellm in multiple places or if your deployment process is slow.

Questions to ask your team or supplier

  • Do we have a list of all internal users who have access to litellm right now? Have any of them requested API keys in the past month?
  • Is litellm running in production with EXPERIMENTAL_UI_LOGIN enabled or in its default state? If we are on version 1.87–1.90, was it ever set to true?
  • Do we have audit or access logs going back to when our litellm deployment started? Can we query them for the signs of exploitation listed in the detect section?

Message you can forward to the owning team

Security notice: litellm proxy can be forced to run commands by an internal user (CVE-2026-114612)

Severity: High
SecurityElites Fix-First Score: 43 of 100
SecurityElites fix window: Within 30 days
Action: upgrade to litellm 1.104.0rc2 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/cve-2026-114612-litellm-proxy-can-be-forced-to-run-commands-by/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-00979

What is at stake in your AI setup

  • API keys and secrets stored in litellm: an attacker with admin access can read, modify, or extract keys for downstream LLM services.
  • Chat history and prompts: admin access to the proxy gives full visibility into conversations and system prompts used by all teams.
  • Keys for AI provider accounts: the attacker can use credentials to send requests to OpenAI, Anthropic, or other providers on your bill.
  • MCP tools and integrations: an attacker can execute arbitrary MCP stdio commands, which may include read/write to file systems or network calls to internal systems.

Map where your company uses AI

Who is exposed

  • Teams running litellm 1.91.0 to 1.104.0rc1 with default settings, where internal users can request API keys
  • Teams where contractors or junior staff have access to litellm's API or CLI
  • Multi-tenant setups where litellm serves different internal departments
  • Teams running version 1.87.0 to 1.90.x with EXPERIMENTAL_UI_LOGIN=true
  • Teams running version 1.100.3 or earlier are not at risk (older versions do not have this code path)

Upgrades you need

SoftwareAffected versionsMove to
litellm
PyPI
1.91.0 up to, but not including, 1.100.4; 1.101.0 up to, but not including, 1.101.3; 1.102.0 up to, but not including, 1.102.2; 1.103.0 up to, but not including, 1.103.1; 1.104.0rc1 up to, but not including, 1.104.0rc21.104.0rc2 or later

Each maintained branch has its own fixed version. Stay on your branch if you cannot jump to the newest: litellm 1.100.4, 1.101.3, 1.102.2, 1.103.1, 1.104.0rc2.

Am I affected?

Enter the version you run. Nothing you type is stored.

SecurityElites Developer Brief: the technical picture

Is it being attackedNo known attacks and no public attack code when CISA last reviewed it
Where the attacker must beAnywhere that can reach it over a network, including the internet if it is exposed
Account neededAn ordinary user account
Does a person have to do somethingNo. It works without anyone clicking or opening anything
How hard it is to doEasy. It works reliably once the attacker can reach it
Risk of: data being readHigh
Risk of: data or settings being changedHigh
Risk of: the service being taken downHigh
Can attackers automate it at scaleNo, according to CISA. Each target needs manual work
How much control an attacker gainsTotal control of the affected software, according to CISA

Read from the official severity rating: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Kind of coding mistake

  • CWE-269: privileges are handled incorrectly
  • CWE-345
  • CWE-441

If you cannot upgrade today

  • Set `EXPERIMENTAL_UI_LOGIN=false` in your environment variables or configuration file. This disables the vulnerable authentication path.
  • Restart litellm after changing the setting.
  • Be aware that this workaround breaks CLI SSO and Claude Code gateway login; plan to upgrade within days, not weeks.

Signs it may already have been used against you

  • In litellm audit or access logs, look for internal_user accounts requesting new API keys multiple times in a short period, especially with unusual or large metadata fields.
  • In litellm audit logs, look for sessions that change role from internal_user to proxy_admin without an explicit admin grant or login from an admin account.
  • In system command execution logs (e.g., process creation, shell logs), look for commands running under the litellm process or proxy user that did not come from your normal deployment or admin tools.
  • Check for proxy_admin API tokens that were issued to internal_user accounts or created during credential API calls.

Log searches to start from

Find internal users requesting API keys (adapt field names to your log format)Splunk

source=litellm_audit user_role=internal_user action="create_api_key" | stats count by user, metadata_size, timestamp

Find role escalations from internal_user to proxy_admin (adapt field names)Elastic

litellm.audit AND user.role.before:"internal_user" AND user.role.after:"proxy_admin" | sort @timestamp desc

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

  1. Find where litellm is installed and what version runsList all servers or containers running litellm. For each one, run a command to check the installed version (see snippets below). Note the exact version number.
  2. Check if your version is affectedCompare your version to the list: 1.91.0–1.100.3, 1.101.0–1.101.2, 1.102.0–1.102.1, 1.103.0, or 1.104.0rc1. If your version is not in this list, you are not affected; skip to step 8. If it is, continue.
  3. Decide if you can upgrade now or need a temporary fixIf you can restart litellm in the next few hours, plan the upgrade. If not, apply the workaround in the workaround section to disable the vulnerable feature for now.
  4. Back up your litellm configuration and dataExport or copy your current configuration, any API keys, and settings. This is a safety step in case the upgrade needs to be rolled back.
  5. Upgrade to the fixed versionUse your package manager or deployment tool to upgrade litellm to 1.100.4, 1.101.3, 1.102.2, 1.103.1, or 1.104.0rc2 or later, depending on which release line you are on. Follow your normal deployment process.
  6. Restart litellm and verify it starts cleanlyRestart the litellm service and check that it comes up without errors. Confirm that you can reach the proxy endpoint and that it responds to requests.
  7. Test that the fix is in placeTry to request a new API key with a crafted metadata field (this is a test; do not use it for real work). The request should either fail or the token should not grant admin access. See the verify section for more detail.
  8. Look for signs of past exploitationCheck logs and audit records for the signs listed in the detect section. If you find any, follow the incident response plan in that section. If you find nothing, document that you completed this check and move on.

How to confirm it is fixed: After upgrading, confirm litellm starts without errors, then check the audit log to verify that no new proxy_admin roles were created in the last few minutes and that an internal_user account cannot execute MCP commands or request admin credentials.

SecurityElites Quick Fixes: copy and paste

Upgrade litellm with pipupgrade

pip install --upgrade "litellm>=1.104.0rc2"
pip show litellm | grep Version

Pin it in requirements.txtupgrade

litellm>=1.104.0rc2

Check litellm version (Python pip)for this issue

pip show litellm | grep Version

Check litellm version (Python import)for this issue

import litellm; print(litellm.__version__)

Verify EXPERIMENTAL_UI_LOGIN setting in environmentfor this issue

echo $EXPERIMENTAL_UI_LOGIN

Run the service in a locked-down containergeneral hardening

docker run --read-only --cap-drop ALL \
  --security-opt no-new-privileges --user 1000:1000 \
  -p 127.0.0.1:8080:8080 YOUR_IMAGE

Test 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 (CVE-2026-114612) 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.104.0rc2 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.

An internal user with read-only access to our litellm config portal submits a support ticket saying they cannot log in. What should we check before helping them?A good answer: Check the audit logs to see if they recently requested an API key or if their role changed to admin without authorization; if so, treat it as a potential exploitation attempt.
Our litellm version is 1.102.1. Is it affected by this vulnerability?A good answer: Yes, 1.102.1 is in the affected range (1.102.0 to 1.102.1); upgrade to 1.102.2 or later immediately.
We set EXPERIMENTAL_UI_LOGIN=false and restarted litellm. What do we lose?A good answer: CLI SSO and Claude Code gateway login will stop working; you need to upgrade to a fixed version within days to restore those features safely.
After upgrading to 1.103.1, how do we confirm the vulnerability is closed?A good answer: Confirm that the service started without errors, then check that an internal_user account cannot escalate to proxy_admin or execute MCP commands, and verify no old admin tokens were created in the past few hours.

Run a full timed drill with your team

Ticket for your backlog

Paste into Jira, GitHub Issues or any tracker that reads Markdown.

Ready-made ticket

## litellm proxy can be forced to run commands by an internal user (CVE-2026-114612)

**Severity:** High  |  **SE Fix-First Score:** 43/100  |  **Fix window:** Within 30 days
**Record:** SE-AIV-00979 https://securityelites.com/ai-vulnerabilities/cve-2026-114612-litellm-proxy-can-be-forced-to-run-commands-by/

### Why this matters
An employee or contractor with basic access to litellm can gain admin power and run any code on the server. This means data theft, service shutdown, or lateral movement into other systems. The attacker needs only a valid internal account, not a break-in from outside.

### What to do
1. Find where litellm is installed and what version runs: List all servers or containers running litellm. For each one, run a command to check the installed version (see snippets below). Note the exact version number.
2. Check if your version is affected: Compare your version to the list: 1.91.0–1.100.3, 1.101.0–1.101.2, 1.102.0–1.102.1, 1.103.0, or 1.104.0rc1. If your version is not in this list, you are not affected; skip to step 8. If it is, continue.
3. Decide if you can upgrade now or need a temporary fix: If you can restart litellm in the next few hours, plan the upgrade. If not, apply the workaround in the workaround section to disable the vulnerable feature for now.
4. Back up your litellm configuration and data: Export or copy your current configuration, any API keys, and settings. This is a safety step in case the upgrade needs to be rolled back.
5. Upgrade to the fixed version: Use your package manager or deployment tool to upgrade litellm to 1.100.4, 1.101.3, 1.102.2, 1.103.1, or 1.104.0rc2 or later, depending on which release line you are on. Follow your normal deployment process.
6. Restart litellm and verify it starts cleanly: Restart the litellm service and check that it comes up without errors. Confirm that you can reach the proxy endpoint and that it responds to requests.
7. Test that the fix is in place: Try to request a new API key with a crafted metadata field (this is a test; do not use it for real work). The request should either fail or the token should not grant admin access. See the verify section for more detail.
8. Look for signs of past exploitation: Check logs and audit records for the signs listed in the detect section. If you find any, follow the incident response plan in that section. If you find nothing, document that you completed this check and move on.

### Done when
- [ ] litellm is at 1.104.0rc2 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] After upgrading, confirm litellm starts without errors, then check the audit log to verify that no new proxy_admin roles were created in the last few minutes and that an internal_user account cannot execute MCP commands or request admin credentials.
- [ ] 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.

Sign in to track this fix

Related vulnerabilities

In the same software

The same kind of mistake in other AI tools

Change history

  • 27 Oct 2026: Made public
  • 1 Dec 2026: Published

Official record

### SummaryAn authenticated user with `internal_user` privileges can escalate to `proxy_admin` and achieve remote code execution. The proxy uses one encryption key for two purposes: sealing secrets at rest and minting session tokens. An attacker exploits this by requesting a new API key with a crafted metadata field containing a forged admin credential as the "secret" value. The proxy encrypts and returns this payload. When this value is then presented as a bearer token, the proxy decrypts it, trusts the forged admin identity, and grants full administrative access, including the ability to execute arbitrary commands via the MCP stdio endpoint.### Affected versionsVersions later than 1.91.0 are exploitable in the default configuration. Versions 1.87.0 through 1.90.x are exploitable only if `EXPERIMENTAL_UI_LOGIN=true` was explicitly set.### MitigationUpgrade to a patched version as soon as possible.If you cannot upgrade immediately, set `EXPERIMENTAL_UI_LOGIN=false`. This disables the vulnerable authentication path but also breaks CLI SSO and Claude Code gateway login.### ImpactAn internal user can escalate to proxy admin and execute arbitrary commands on the host.**Discovery Credit:** Hoa X. Nguyen (OPSWAT Unit 515)

Weakness type: CWE-269, CWE-345, CWE-441

Use this record in your own tools

Get this record as JSON

curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-114612

For 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.