INCIDENT MAP

Browse / AI Framework and Platform Flaws / CVE-2026-59820

LiteLLM: Arbitrary file write via path traversal in Skills archive extraction

CVE-2026-59820 ยท 2026-07-22 moderate

Class
AI Framework and Platform Flaws (filed by a model that read the advisory)
Technique
Path traversal and file access
Affected
litellm (PyPI)
CVSS
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
EPSS
0.6% chance of exploitation in 30 days

How it works, in short

Skill ZIP entries containing traversal sequences are written outside the staging directory when the skill is processed. (Our summary, written by a model. The source text is below.)

Details

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:

References

Source: GitHub Advisory Database, used under CC BY 4.0.