CVE-2026-59820: BerriAI LiteLLM path traversal in Skills archive extraction

CVE-2026-59820 · Severity: medium · CVSS 4 · Published 2026-07-08

LiteLLM, a tool used to manage and connect various Artificial Intelligence (AI) models, contains a security flaw in how it handles 'skill' uploads. An authorized user could upload a specially crafted file that allows them to write data to restricted areas of the server's file system. This could lead to a complete service outage or allow an attacker to run unauthorized code on the system.

Technologies: Berriai LiteLLM, litellm (PyPI). Vendors: Berriai, PyPI.

Quick answers

Is CVE-2026-59820 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-59820 being exploited in the wild.
How severe is CVE-2026-59820?
Medium severity, with a CVSS score of 4, published 8 July 2026.
Which products and versions are affected?
Berriai LiteLLM < 1.83.7-stable; litellm (PyPI) ECOSYSTEM:introduced=0,fixed=1.83.7.
Is there a fix for CVE-2026-59820?
Yes. litellm (PyPI): upgrade to 1.83.7 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-59820 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-59820?
Check whether you run Berriai LiteLLM or litellm (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • litellm (PyPI): upgrade to 1.83.7 or later
    pip install "litellm>=1.83.7"

Technical details

A path traversal vulnerability (CWE-22) exists in LiteLLM's Skills archive extraction mechanism. The application fails to sufficiently validate file paths within uploaded ZIP archives. An authenticated attacker with access to the `/v1/skills` route (or keys with `llm_api_routes` or `anthropic_routes` permissions) can upload a crafted archive containing '../' sequences. When the server processes the skill for execution, it extracts files outside the intended staging directory. Depending on the environment's permissions, this arbitrary file write can be leveraged to overwrite system files or configuration, potentially leading to remote code execution (RCE). The issue is resolved in version 1.83.7-stable.

Affected products

  • BerriAI LiteLLM < 1.83.7-stable

Identifiers

  • CVE-2026-59820
  • GHSA-5jmr-gcrj-2c9q
  • PYSEC-2026-3477

Timeline

  • 2026-06-30: disclosed: Initial disclosure by jaydns
  • 2026-07-08: advisory: NVD publication
  • 2026-07-22: advisory: GitHub Advisory published

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.