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

Source: https://junglewise.ai/threats/cve-2026-59820-berriai-litellm-path-traversal-in-skills-archive-extraction  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-08. Updated: 2026-07-22  
License: CC BY 4.0 with a link back

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](https://junglewise.ai/threats/technologies/litellm), [litellm (PyPI)](https://junglewise.ai/threats/technologies/pypi-litellm). Vendors: [Berriai](https://junglewise.ai/threats/vendors/berriai), [PyPI](https://junglewise.ai/threats/vendors/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

  ```sh
  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

- [https://github.com/BerriAI/litellm/security/advisories/GHSA-5jmr-gcrj-2c9q](https://github.com/BerriAI/litellm/security/advisories/GHSA-5jmr-gcrj-2c9q)
- [https://github.com/BerriAI/litellm/pull/25475](https://github.com/BerriAI/litellm/pull/25475)
- [https://github.com/BerriAI/litellm/commit/6a15adcd64137d37f73dee76dfe7481f8c2d9196](https://github.com/BerriAI/litellm/commit/6a15adcd64137d37f73dee76dfe7481f8c2d9196)
- [https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable](https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable)
- [https://api.github.com/repos/BerriAI/litellm/security-advisories/GHSA-5jmr-gcrj-2c9q](https://api.github.com/repos/BerriAI/litellm/security-advisories/GHSA-5jmr-gcrj-2c9q)

## Related threats

- [LiteLLM arbitrary local file read via vertex_ai_credentials](https://junglewise.ai/threats/litellm-internal-user-viewer-arbitrary-local-file-read-via-vertex-ai-649a7475)
- [LiteLLM reflected XSS in SSO debug callback endpoint](https://junglewise.ai/threats/litellm-vulnerable-to-reflected-xss-in-sso-debug-callback-38154651)
- [LiteLLM proxy authentication bypass via reused crypto context](https://junglewise.ai/threats/cve-2026-114612-litellm-is-a-proxy-server-ai-gateway-to-call-llm-apis-in-openai)
- [BerriAI LiteLLM improper authorization in secret resolution](https://junglewise.ai/threats/cve-2026-108575-a-vulnerability-has-been-found-in-berriai-litellm-up-to-1-94-0)
- [BerriAI LiteLLM authorization bypass in spend tracking](https://junglewise.ai/threats/cve-2026-108574-a-flaw-has-been-found-in-berriai-litellm-up-to-1-95-0-affected)
