CVE-2026-12797 BerriAI litellm Completions banned_keywords.py async_pre_call_hook authorization
Remote attackers can bypass keyword restrictions in LiteLLM completions due to incorrect authorization checks in the async pre-call hook.
- 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-12797?
CVE-2026-12797 is a medium-severity missing authorization 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.5. Affected is the function async_pre_call_hook of the file enterprise/enterprise_hooks/banned_keywords.py of the component Completions Interface. The manipulation of the argument prompt results in incorrect authorization. The attack may be performed from remote. The exploit has been released to the public and may be used for attacks. The vendor was contacted early about this disclosure.
Which versions are affected by CVE-2026-12797?
3 open source packages ship an affected version, including litellm. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
litellm PyPI | All versions to 1.82.5 | None |
litellm PyPI | All versions to 1.82.5 | None |
litellm PyPI | All versions to 1.82.5 | None |
Products include Litellm Litellm.
How do I fix CVE-2026-12797?
Upgrade to a fixed version.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2026-12797 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-12797 exists.
Other vulnerabilities in BerriAI litellm
Sources
Also known as CLEANSTART-2026-ET22185, GHSA-p897-vf7j-f5h8, MINI-3v6q-jffc-vwj2, MINI-ggqf-qvwm-797q, MINI-phmx-j84r-f65j, MINI-v33v-384c-vpxc and 2 more.