LiteLLM has a sandbox escape in custom-code guardrail
Impact
The POST /guardrails/test_custom_code endpoint runs user-supplied Python inside a hand-rolled sandbox. The sandbox can be escaped using bytecode-level techniques, allowing arbitrary code execution in the proxy process — which runs as root in the default Docker image.
Reaching the endpoint requires a proxy-admin credential in default configurations.
Patches
Fixed in 1.83.11. The hand-rolled sandbox has been replaced with RestrictedPython. Upgrade to 1.83.11 or later.
Workarounds
If upgrading is not immediately possible, block POST /guardrails/test_custom_code at your reverse proxy or API gateway.
References
- Patched release:
v1.83.10-stable
Betroffene Software
Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.
| Plattform | Paket | Anfällige Versionen | Behoben in |
|---|---|---|---|
| Python (PyPI) | litellm | >= 1.81.8, < 1.83.10 | 1.83.10 |
Verweise
- https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p
- https://nvd.nist.gov/vuln/detail/CVE-2026-40217
- https://github.com/BerriAI/litellm
- https://github.com/BerriAI/litellm/releases/tag/v1.83.10-stable
- https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm
- https://pypi.org/project/litellm
- https://github.com/advisories/GHSA-wxxx-gvqv-xp7p
- CVSS-Vektor
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H- Schwäche (CWE)
CWE-420, CWE-913- Plattform
- Python (PyPI)
- Paket
litellm- Veröffentlicht
- 11.05.2026
- Aktualisiert
- 11.10.2026 15:17
Quellen und Lizenzen
OSV / GitHub Advisory Database - PYSEC-2026-2601 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-wxxx-gvqv-xp7p - CC BY 4.0
Schwachstellenhistorie: litellm
Alle veröffentlichten Schwachstellen dieses Pakets (Python (PyPI)), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.
- Einträge insgesamt
- 42
- Erste → letzte
- 04.2024 09.2026
- Ohne Fix
- 14
- In Angriffen ausgenutzt
- 3
Verteilung nach Schweregrad
- Kritisch 7
- Hoch 17
- Mittel 8
- Niedrig 9
- Nicht bewertet 1
Veröffentlichungen pro Jahr
- 2024: 8
- 2025: 6
- 2026: 28
-
LiteLLM has a sandbox escape in custom-code guardrail dieser Eintrag
Erkennen Sie Schwachstellen in Ihrer Anwendung
Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.