6.1medium
LiteLLM: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- Severity
- 6.1medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.41% (higher than 37% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-5jmr-gcrj-2c9qPYSEC-2026-3477
Description
LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. Prior to 1.83.7-stable, LiteLLM Skills archive extraction did not sufficiently validate file paths from uploaded skill ZIP archives, allowing an authenticated user with access to LiteLLM LLM API routes or a key whose allowed_routes includes /v1/skills, anthropic_routes, or llm_api_routes to upload a crafted skill archive containing path traversal entries that could be written outside the intended extraction or staging directory. This issue is fixed in version 1.83.7-stable.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| BerriAI litellm | < 1.83.7-stable | CVE List |
| litellm (PyPI) | before 1.83.7 | GitHub Advisory Database, PyPA Advisory Database |
| litellm litellm | before 1.83.7, 1.83.7 | NVD |
All scores
| GitHub_M | 6.1medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
| PyPA Advisory Database | Not scored CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. Prior to 1.83.7-stable, LiteLLM Skills archive extraction did not sufficiently validate file paths from uploaded skill ZIP archives, allowing an authenticated user with access to LiteLLM LLM API routes or a key whose allowed_routes includes /v1/skills, anthropic_routes, or llm_api_routes to upload a crafted skill archive containing path traversal entries that could be written outside the intended extraction or staging directory. This issue is fixed in version 1.83.7-stable.
GitHub Advisory Database
Impact
LiteLLM Skills archive extraction did not sufficiently validate file paths from uploaded skill ZIP archives. An authenticated user with access to LiteLLM LLM API routes, or a key whose allowed_routes includes /v1/skills, anthropic_routes, or llm_api_routes, could upload a crafted skill archive containing path traversal entries.
When the skill was processed for execution, those entries could be written outside the intended extraction/staging directory. This could allow arbitrary file write and may lead to code execution depending on deployment configuration and writable paths.
Patches
The issue is fixed in 1.83.7-stable.
LiteLLM recommens upgrading to 1.83.7-stable or later.
Workarounds
If upgrading is not immediately possible:
- Block
POST /v1/skillsat your reverse proxy or API gateway. - Restrict Skills API access to trusted users only.
NVD (es)
LiteLLM es un servidor proxy (Pasarela de IA) para llamar a las API de LLM en formato OpenAI (o nativo). Antes de la versión 1.83.7-stable, la extracción de archivos de habilidades de LiteLLM no validaba suficientemente las rutas de archivo de los archivos ZIP de habilidades cargados, permitiendo a un usuario autenticado con acceso a las rutas de la API de LLM de LiteLLM o una clave cuyas allowed_routes incluyen /v1/skills, anthropic_routes, o llm_api_routes cargar un archivo de habilidad manipulado que contenía entradas de salto de ruta que podían escribirse fuera del directorio de extracción o de preparación previsto. Este problema está solucionado en la versión 1.83.7-stable.
References
| https://github.com/BerriAI/litellm/security/advisories/GHSA-5jmr-gcrj-2c9q | mitigation, patch, vendor-advisory, web | |
| https://github.com/BerriAI/litellm/pull/25475 | issue-tracking, patch, web | |
| https://github.com/BerriAI/litellm/commit/6a15adcd64137d37f73dee76dfe7481f8c2d9196 | patch, web | |
| https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable | product, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-59820 | advisory | |
| https://github.com/BerriAI/litellm | package | |
| https://pypi.org/project/litellm | package | |
| https://github.com/advisories/GHSA-5jmr-gcrj-2c9q | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-59820 changed 2026-07-09 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-5jmr-gcrj-2c9q changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-59820 changed 2026-10-25 | Public domain |
| PyPA Advisory Database | PYSEC-2026-3477 changed 2026-07-23 | CC-BY-4.0 |