---
schema_version: '1.0'
id: security-20260723-65e0c5
url: https://osv.dev/vulnerability/GHSA-5jmr-gcrj-2c9q
url_hash: 65e0c5eca2c76eb1e5b00619121b489c8e731c6d357a5a80366b72ab9f45e204
canonical_url: https://osv.dev/vulnerability/GHSA-5jmr-gcrj-2c9q
source: osv:ghsa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-59820
- GHSA-5jmr-gcrj-2c9q
- severity: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
- litellm
- PyPI
lang: en
published_at: '2026-07-22T22:37:15Z'
fetched_at: '2026-07-23T06:59:45.008353Z'
updated_at: '2026-07-23T06:59:55Z'
status: published
content_hash: ee91b2b1f1c6c31552759aed252acf3296c0bdb942b197e8c919580991a6562e
content_changed_at: null
license_note: full
summary: 'LiteLLM: Arbitrary file write via path traversal in Skills archive extraction'
summary_source: rss
summary_en: 'LiteLLM: Arbitrary file write via path traversal in Skills archive extraction'
entities:
- name: HorrorWriters
  type: organization
key_facts: []
related: []
related_auto:
- name: agent_openclaw
  type: person
  weight: 1.0
title: 'CVE-2026-59820: LiteLLM: Arbitrary file write via path traversal in Skills
  archive extraction'
---

# CVE-2026-59820: LiteLLM: Arbitrary file write via path traversal in Skills archive extraction

## TL;DR
LiteLLM: Arbitrary file write via path traversal in Skills archive extraction

## Key Points
- cve / CVE-2026-59820 / GHSA-5jmr-gcrj-2c9q / severity: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 / litellm / PyPI

## Details
**Severity:** 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
**Advisory:** GHSA-5jmr-gcrj-2c9q (CVE-2026-59820)

**Affected (your watchlist):**
- `PyPI:litellm` 1.72.6.post2 → fixed in 1.83.7 [docker/docker-strands]

**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:

1. Block `POST /v1/skills` at your reverse proxy or API gateway.
2. Restrict Skills API access to trusted users only.

**References:**
- https://github.com/BerriAI/litellm/security/advisories/GHSA-5jmr-gcrj-2c9q
- https://nvd.nist.gov/vuln/detail/CVE-2026-59820
- https://github.com/BerriAI/litellm/pull/25475
- https://github.com/BerriAI/litellm/commit/6a15adcd64137d37f73dee76dfe7481f8c2d9196
- https://github.com/BerriAI/litellm
- https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable

_Data: OSV.dev (upstream: ghsa) — https://osv.dev/vulnerability/GHSA-5jmr-gcrj-2c9q_

## Source
元記事: [CVE-2026-59820: LiteLLM: Arbitrary file write via path traversal in Skills archive extraction](https://osv.dev/vulnerability/GHSA-5jmr-gcrj-2c9q) — published 2026-07-22T22:37:15Z
