CVE-2026-40217
BerriAI LiteLLM Unprotected Alternate Channel Vulnerability
BerriAI · LiteLLM
列入日期: 2026-11-18美國聯邦機關修補期限: 2026-12-02
解析與對策(積穗 HMMA)
說明:「解析與對策」由積穗地端 AI(HMMA)依 CISA 公開原文自動生成,未加入 CISA 以外的資訊;受影響版本與修補方式請以廠商公告為準。
這個漏洞是什麼
BerriAI LiteLLM 的 /guardrails/test_custom_code API 端點存在安全漏洞,攻擊者可透過惡意編寫的 Python 位元組碼(bytecode)逃脫沙盒環境,在執行該程式碼的系統上執行任意指令。此漏洞的根本原因在於 LiteLLM 使用自行實作的沙盒機制,而非成熟的限制性執行環境,導致無法有效隔離使用者輸入的程式碼。攻擊者需具備管理員許可權方可觸發此漏洞。
下列條件全部成立才會中
- 系統執行版本為 1.81.8 至 1.83.10 之間
- 攻擊者已取得 LiteLLM 的管理員憑證(proxy-admin credential)
- 系統的 /guardrails/test_custom_code 端點可從網路存取
修補版本
1.83.11
對企業的風險
此漏洞被評為中等嚴重性(CVSS 5.9),主要風險為遠端程式碼執行(RCE),可能導致系統完整性與可用性受損。若攻擊者成功逃脫沙盒,可取得執行該服務的系統許可權,進而竊取敏感資料或癱瘓服務。目前已知被勒索軟體利用的資訊為「未知」,但因其具備執行任意程式碼的能力,屬於高風險漏洞,建議企業立即評估。
怎麼確認自己有沒有中
- 檢查 LiteLLM 版本是否為 1.81.8 至 1.83.10 之間
- 確認 /guardrails/test_custom_code API 端點的存取控制狀態
誰需要處理
IT 部門、資安團隊及負責 AI 基礎設施運維的系統管理員應立即主導修補作業,並協同業務單位評估業務中斷風險。
建議對策
- 立即升級 LiteLLM 至 1.83.11 或更高版本,廠商已將沙盒機制更換為 RestrictedPython 以修補此漏洞。
- 若無法立即升級,應在反向代理(Reverse Proxy)或 API Gateway 層級封鎖 POST /guardrails/test_custom_code 的存取。
- 針對雲端部署環境,應依據 CISA BOD 26-04 指引評估雲端服務的修補優先順序,並確保雲端環境的網路邊界存取控制。
- 監控系統日誌,特別關注執行自定義程式碼(custom code)功能的異常執行紀錄,以及來自未授權 IP 的管理員許可權嘗試。
- 定期盤點所有執行 LiteLLM 的容器或主機,確認其版本符合安全基準,並建立異常程式碼執行的偵測告警。
解析依據
解析時間: 2026-11-19 17:31 UTC · winners-zh-summary
CISA 官方原文
- 廠商
- BerriAI
- 產品
- LiteLLM
- 漏洞名稱
- BerriAI LiteLLM Unprotected Alternate Channel Vulnerability
- CISA 描述
- BerriAI LiteLLM contains an unprotected alternate channel vulnerability that could allow remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
- CISA 要求措施
- Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.
- CWE
- CWE-420
- 需鑑識分流
- No
官方參考連結
- CISA KEV Catalog
- NVD 漏洞資料
- https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p
- https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk
- https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk
