Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Lifecycle Timeline
4Blast Radius
ecosystem impact- 2 pypi packages depend on litellm (2 direct, 0 indirect)
Ecosystem-wide dependent count for version 1.81.8.
DescriptionCVE.org
LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
AnalysisAI
Remote code execution in BerriAI LiteLLM (all versions through 2026-04-08) enables authenticated attackers to execute arbitrary code by exploiting bytecode rewriting functionality at the /guardrails/test_custom_code endpoint. The vulnerability requires low-privilege authentication (PR:L) but permits complete system compromise with high impact to confidentiality, integrity, and availability. No public exploit identified at time of analysis.
Technical ContextAI
Root cause stems from CWE-420 (Unprotected Alternate Channel) where the /guardrails/test_custom_code URI accepts user-controlled bytecode for rewriting without adequate sandboxing or validation. Authenticated users can submit malicious bytecode payloads that execute with application privileges, bypassing intended security boundaries in the guardrails testing interface.
RemediationAI
Upstream fix available (PR/commit); released patched version not independently confirmed. Immediate action required: Restrict network access to /guardrails/test_custom_code endpoint through web application firewall rules or reverse proxy configuration, limiting exposure to trusted administrative IP ranges only. If custom guardrails testing is not operationally required, disable the endpoint entirely via application configuration. Implement strict input validation and bytecode execution sandboxing if the feature must remain accessible. Monitor application logs for unauthorized access attempts to /guardrails/ paths. Consult vendor security advisory for official remediation guidance: https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/
SQL injection in LiteLLM proxy server versions 1.81.16 through 1.83.6 allows unauthenticated remote attackers to read an
Remote command execution in LiteLLM proxy server versions 1.74.2 through 1.83.6 allows any authenticated user to execute
BerriAI/litellm is vulnerable to Server-Side Template Injection (SSTI) via the `/completions` endpoint. Rated critical s
BerriAI's litellm, in its latest version, is vulnerable to arbitrary file deletion due to improper input validation on t
In berriai/litellm version v1.52.1, an issue in proxy_server.py causes the leakage of Langfuse API keys when an error oc
In berriai/litellm before version 1.44.12, the `litellm/litellm_core_utils/litellm_logging.py` file contains a vulnerabi
A Server-Side Request Forgery (SSRF) vulnerability exists in berriai/litellm version 1.38.10. Rated high severity (CVSS
An SQL Injection vulnerability exists in the berriai/litellm repository, specifically within the `/global/spend/logs` en
A code injection vulnerability exists in the berriai/litellm application, version 1.34.6, due to the use of unvalidated
berriai/litellm version 1.34.34 is vulnerable to improper access control in its team management functionality. Rated med
BerriAI/litellm version v1.35.8 contains a vulnerability where an attacker can achieve remote code execution. Rated crit
Missing authentication in LiteLLM's SSO Debug Flow exposes the `json.dumps` output of the `ui_sso.py` management endpoin
Same weakness CWE-420 – Unprotected Alternate Channel
View allVendor StatusVendor
Share
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-21376
GHSA-3926-2jvf-fg29