CVE-2026-12797
BerriAI litellm Completions banned_keywords.py async_pre_call_hook authorization
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.
INFO
Published Date :
June 21, 2026, 10:16 a.m.
Last Modified :
June 24, 2026, 7:50 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 2.0 | MEDIUM | [email protected] | ||||
| CVSS 3.1 | MEDIUM | [email protected] | ||||
| CVSS 4.0 | LOW | [email protected] |
Solution
- Update litellm to version 1.83.0 or later.
- Review and secure the prompt argument handling.
- Apply vendor-provided security patches immediately.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-12797.
| URL | Resource |
|---|---|
| https://gist.github.com/YLChen-007/078179224f07cc4e39e4f141a18c817a | Exploit Third Party Advisory |
| https://vuldb.com/cve/CVE-2026-12797 | Third Party Advisory VDB Entry |
| https://vuldb.com/submit/811288 | Third Party Advisory Exploit VDB Entry |
| https://vuldb.com/vuln/372559 | Third Party Advisory VDB Entry |
| https://vuldb.com/vuln/372559/cti | Permissions Required VDB Entry |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-12797 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-12797
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-12797 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-12797 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Jun. 24, 2026
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:* versions up to (including) 1.82.5 Added Reference Type VulDB: https://gist.github.com/YLChen-007/078179224f07cc4e39e4f141a18c817a Types: Exploit, Third Party Advisory Added Reference Type VulDB: https://vuldb.com/cve/CVE-2026-12797 Types: Third Party Advisory, VDB Entry Added Reference Type VulDB: https://vuldb.com/submit/811288 Types: Exploit, Third Party Advisory, VDB Entry Added Reference Type VulDB: https://vuldb.com/vuln/372559 Types: Third Party Advisory, VDB Entry Added Reference Type VulDB: https://vuldb.com/vuln/372559/cti Types: Permissions Required, VDB Entry -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 22, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2026-12797', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-06-22T13:35:34.363730Z'} -
New CVE Received by [email protected]
Jun. 21, 2026
Action Type Old Value New Value Added Affected [{'cpes': ['cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:*'], 'vendor': 'BerriAI', 'modules': ['Completions Interface'], 'product': 'litellm', 'versions': [{'status': 'affected', 'version': '1.82.0'}, {'status': 'affected', 'version': '1.82.1'}, {'status': 'affected', 'version': '1.82.2'}, {'status': 'affected', 'version': '1.82.3'}, {'status': 'affected', 'version': '1.82.4'}, {'status': 'affected', 'version': '1.82.5'}]}] Added 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. Added CVSS V4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L Added CVSS V2 (AV:N/AC:L/Au:S/C:P/I:P/A:P) Added CWE CWE-285 Added CWE CWE-863 Added Reference https://gist.github.com/YLChen-007/078179224f07cc4e39e4f141a18c817a Added Reference https://vuldb.com/cve/CVE-2026-12797 Added Reference https://vuldb.com/submit/811288 Added Reference https://vuldb.com/vuln/372559 Added Reference https://vuldb.com/vuln/372559/cti