Vulnerability · Published Jun 21, 2026 · Assigned by VulDB
CVE-2026-12797BerriAI litellm Completions banned_keywords.py async_pre_call_hook authorization
Medium 6.3
In plain English
A medium-severity incorrect authorization in litellm from BerriAI. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 34% of all known vulnerabilities).
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | litellm | no fix listed | GHSA-p897-vf7j-f5h8 |
| PyPI | litellm | no fix listed | PYSEC-2026-4074 |
Affected products (as reported)
Weakness: CWE-863, CWE-285 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R
References
- VDB-372559 | BerriAI litellm Completions banned_keywords.py async_pre_call_hook authorization vdb-entry, technical-description
- VDB-372559 | CTI Indicators (IOB, IOC, IOA) signature, permissions-required
- CVE-2026-12797 | CVE Analysis and Report third-party-advisory
- Submit #811288 | litellm <= 1.82.5 Incorrect Authorization (CWE-863) third-party-advisory
- https://gist.github.com/YLChen-007/078179224f07cc4e39e4f141a18c817a exploit