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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-59821— LiteLLM: Custom Code Guardrails production endpoints bypass code safety checks

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.0-stable之前版本存在代码注入漏洞,该漏洞源于对自定义代码防护栏的创建和更新路径未应用与测试端点相同的沙箱和验证机制,可能导致权限高的用户提交自定义Python代码并在LiteLLM代理环境中执行,从而暴露进程可访问的机密信息。

AI Predicted 7.2 Difficulty: Easy EPSS 0.90% · P58

Affected Version Matrix 1

VendorProduct Version RangeStatus
BerriAI litellm < 1.82.0-stable affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-59821

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
LiteLLM: Custom Code Guardrails production endpoints bypass code safety checks
Source: CVE Program / CVE List V5
Vulnerability Description
LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. Prior to 1.82.0-stable, LiteLLM's Custom Code Guardrails production create and update paths did not apply the same sandboxing and validation used by the test endpoint, allowing a privileged user with access to create or update guardrails to submit custom Python code that executed in the LiteLLM proxy environment and could expose secrets available to the process. This issue is fixed in version 1.82.0-stable.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
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.0-stable之前版本存在代码注入漏洞,该漏洞源于对自定义代码防护栏的创建和更新路径未应用与测试端点相同的沙箱和验证机制,可能导致权限高的用户提交自定义Python代码并在LiteLLM代理环境中执行,从而暴露进程可访问的机密信息。
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-stable -

II. Public POCs for CVE-2026-59821

# 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-59821

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

Vendor Advisories for CVE-2026-59821 (1)

Vendor Pages for CVE-2026-59821 (1)

Same Patch Batch · BerriAI · 2026-07-08 · 4 CVEs total

CVE-2026-59822 8.8 HIGH LiteLLM: MCP Authentication Bypass via OAuth2 Passthrough Fallback
CVE-2026-59820 LiteLLM: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CVE-2026-59819 LiteLLM: Local file read via request-supplied OIDC file references

IV. Related Vulnerabilities

V. Comments for CVE-2026-59821

No comments yet


Leave a comment