NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · LiteLLM

GHSA-69x8-hrgq-fjj8: LiteLLM: Password hash exposure and pass-the-hash authentication bypass

highCVSS 4.0 8.6

LiteLLM before 1.83.0 stores passwords as unsalted SHA-256, returns the hash in several API responses to any logged-in user, and accepts the raw hash as the password at /v2/login. A low-privilege user can take over any other account, including admins, in three HTTP requests. Upgrade the pip package to 1.83.0.

Published Apr 8, 2026 · Analysis Oct 30, 2026

What an attacker can do

Three flaws chain together. First, user passwords are stored as unsalted SHA-256, so identical passwords show identical hashes and rainbow tables work. Second, /user/info, /user/update and /spend/users return the password hash field to any authenticated user, whatever their role. The advisory adds that plaintext passwords could be exposed in certain scenarios. Third, /v2/login accepts the raw SHA-256 hash as the password without hashing it again, which is a pass-the-hash flaw.

In practice, someone with any valid LiteLLM login, such as a team member or a holder of a low-privilege account, calls an endpoint that lists users, copies an admin's hash from the response, and posts it to /v2/login. They now act as the admin. On a LiteLLM proxy that means control of the model API keys, virtual keys, budgets and routing for every team behind it, and access to the provider credentials it holds.

The CVSS 4.0 vector reflects this: network, low privileges, high confidentiality and integrity impact. Even without the login bypass, the exposed hashes can be cracked offline.

Who is affected

The pip package litellm before 1.83.0, when you run the proxy with user passwords (UI or API login). Check the version where the proxy runs.

pip show litellm
docker image ls | grep litellm

The library used only as an SDK, with no proxy user accounts, does not expose these endpoints.

litellm

Ecosystem
PyPI
Affected
< 1.83.0
Fixed in
1.83.0
Check
pip show litellm

How to fix it

Upgrade to 1.83.0.

pip install --upgrade "litellm>=1.83.0"

In 1.83.0, passwords use scrypt with a random 16-byte salt (n=16384, r=8, p=1), and hashes are stripped from all API responses. Existing SHA-256 hashes are migrated when each user next logs in. Until a user logs in, their old hash remains in the database, so ask users to log in, or reset passwords for admin accounts. The advisory names no workaround. Treat hashes returned before the upgrade as leaked and rotate admin passwords and keys.

How to tell if you were hit

Review proxy access logs for calls to /user/info, /user/update or /spend/users by non-admin users that list other users, followed soon by a /v2/login from the same client as a different user. Look for admin logins from unfamiliar addresses and for new virtual keys or changed budgets and model settings that no admin made. Check the database for users that share an identical password hash. Beam is not relevant here unless an agent's calls to the proxy are part of the path.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Impact

Three issues combine into a full authentication bypass chain:

  1. Weak hashing: User passwords are stored as unsalted SHA-256 hashes, making them vulnerable to rainbow table attacks and trivially identifying users with identical passwords.
  2. Hash exposure: Multiple API endpoints (/user/info, /user/update, /spend/users) return the password hash field in responses to any authenticated user regardless of role. Plaintext passwords could also potentially be exposed in certain scenarios.
  3. Pass-the-hash: The /v2/login endpoint accepts the raw SHA-256 hash as a valid password without re-hashing, allowing direct login with a stolen

An already authenticated user can retrieve another user's password hash from the API and use it to log in as that user. This enables full privilege escalation in three HTTP requests.

Patches

Fixed in v1.83.0. Passwords are now hashed with scrypt (random 16-byte salt, n=16384, r=8, p=1). Password hashes are stripped from all API responses. Existing SHA-256 hashes are transparently migrated on next login.

Questions

Which LiteLLM version fixes GHSA-69x8-hrgq-fjj8?

1.83.0. It switches to salted scrypt, strips hashes from API responses and migrates old hashes at next login.

Does the attacker need an account?

Yes, any authenticated user. The hash endpoints return other users' hashes regardless of role.

What is pass-the-hash here?

/v2/login accepted the stored SHA-256 value itself as the password, so a stolen hash works without cracking.

Does this issue have a CVE?

No. The advisory is published as a GHSA only, and no exploitation in the wild is reported.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More LiteLLM vulnerabilities

All LiteLLM entries