Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-12797— BerriAI litellm Completions banned_keywords.py async_pre_call_hook authorization

Quick assessment

Affected
BerriAI litellm
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

LiteLLM是LiteLLM团队开源的一个应用程序。 LiteLLM 1.82.5及之前版本存在授权问题漏洞,该漏洞源于Completions Interface组件中文件enterprise/enterprise_hooks/banned_keywords.py的async_pre_call_hook函数对参数prompt的操作导致授权不当,可能允许远程攻击。以下版本受到影响:1.82.0版本、1.82.1版本、1.82.2版本、1.82.3版本、1.82.4版本和1.82.5版本。

CVSS 6.3 · Medium EPSS 0.40% · P32

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application

Affected Version Matrix 6

VendorProduct Version RangeStatus
BerriAI litellm 1.82.0 affected
1.82.1 affected
1.82.2 affected
1.82.3 affected
1.82.4 affected
1.82.5 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-12797

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
BerriAI litellm Completions banned_keywords.py async_pre_call_hook authorization
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
授权机制不正确
Source: CVE Program / CVE List V5
Vulnerability Title
LiteLLM 授权问题漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
LiteLLM是LiteLLM团队开源的一个应用程序。 LiteLLM 1.82.5及之前版本存在授权问题漏洞,该漏洞源于Completions Interface组件中文件enterprise/enterprise_hooks/banned_keywords.py的async_pre_call_hook函数对参数prompt的操作导致授权不当,可能允许远程攻击。以下版本受到影响:1.82.0版本、1.82.1版本、1.82.2版本、1.82.3版本、1.82.4版本和1.82.5版本。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
BerriAI litellm 1.82.0 cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:*

II. Public POCs for CVE-2026-12797

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-12797

请登录查看更多情报信息。

Proof of Concept for CVE-2026-12797 (1)

Same Patch Batch · BerriAI · 2026-06-21 · 10 CVEs total

CVE-2026-12773 7.3 HIGH BerriAI litellm MCP Proxy user_api_key_auth_mcp.py UserAPIKeyAuth improper authentication
CVE-2026-12795 7.3 HIGH BerriAI litellm SSO Debug Flow ui_sso.py json.dumps missing authentication
CVE-2026-12798 6.3 MEDIUM BerriAI litellm MCP OpenAPI Spec Loader openapi_to_mcp_generator.py load_openapi_spec_asyn
CVE-2026-12774 6.3 MEDIUM BerriAI litellm MCP Server Connection Testing rest_endpoints.py _execute_with_mcp_client s
CVE-2026-12796 6.3 MEDIUM BerriAI litellm SSO Authentication Flow ui_sso.py get_redirect_response_from_openid sessio
CVE-2026-12772 6.3 MEDIUM BerriAI litellm PROXY_ADMIN database API Key Generator login_utils.py authenticate_user se
CVE-2026-12770 5.4 MEDIUM BerriAI litellm Admin Key key_management_endpoints.py improper authorization
CVE-2026-12771 5.0 MEDIUM BerriAI litellm M2M JWT user_api_key_auth.py improper authorization
CVE-2026-12799 4.3 MEDIUM BerriAI litellm Incomplete Fix CVE-2025-0628 internal_user_endpoints.py ui_view_users impr

IV. Related Vulnerabilities

V. Comments for CVE-2026-12797

No comments yet


Leave a comment