CVE-2026-12772 BerriAI litellm PROXY_ADMIN database API Key Generator login_utils.py authenticate_user session expiration

Medium 5.3 Published Updated

Attackers can bypass session expiration in LiteLLM's PROXY_ADMIN API Key Generator, maintaining unauthorized access to the admin interface.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-12772?

CVE-2026-12772 is a medium-severity vulnerability in BerriAI litellm, published on 21 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A security flaw has been discovered in BerriAI litellm up to 1.82.2. This impacts the function authenticate_user of the file litellm/proxy/auth/login_utils.py of the component PROXY_ADMIN database API Key Generator. Performing a manipulation results in session expiration. The attack may be initiated remotely. The exploit has been released to the public and may be used for attacks. The vendor was contacted early about this disclosure.

Weakness: CWE-613

Which versions are affected by CVE-2026-12772?

3 open source packages ship an affected version, including litellm. It affects 1 product.

PackageAffectedFixed in
litellm PyPIAll versions to 1.82.2None
litellm PyPIAll versions to 1.82.2None
litellm PyPIAll versions to 1.82.2None

Products include Litellm Litellm.

How do I fix CVE-2026-12772?

Upgrade to a fixed version.

Is CVE-2026-12772 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-12772 exists.

Sources

Also known as GHSA-mf52-j94g-746m, MINI-5jf3-cwfc-r646, MINI-628h-j7cr-rj9v, MINI-h833-gc7f-w3w6, MINI-vchh-ch62-47ff, PYSEC-2026-4073.

Is CVE-2026-12772 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free