CVE-2026-59820
JSON

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 packageVersionsReported by
BerriAI litellm< 1.83.7-stableCVE List
litellm (PyPI)before 1.83.7GitHub Advisory Database, PyPA Advisory Database
litellm litellmbefore 1.83.7, 1.83.7NVD

All scores

GitHub_M6.1medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
PyPA Advisory DatabaseNot scored CVSS:4.0CVSS: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

CWE-22

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:

  1. Block POST /v1/skills at your reverse proxy or API gateway.
  2. 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

Sources

SourceRecordLicence
CVE ListCVE-2026-59820 changed 2026-07-09CVE Terms of Use
GitHub Advisory DatabaseGHSA-5jmr-gcrj-2c9q changed 2026-09-10CC-BY-4.0
NVDCVE-2026-59820 changed 2026-10-25Public domain
PyPA Advisory DatabasePYSEC-2026-3477 changed 2026-07-23CC-BY-4.0