---
schema_version: '1.0'
id: security-20260724-5fecae
url: https://osv.dev/vulnerability/PYSEC-2026-3477
url_hash: 5fecaeeb86d3c81f262d721075cb76eb96ce0777e8952f94d1c4767bee30ac1e
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-3477
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-59820
- PYSEC-2026-3477
- 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-23T11:41:48Z'
fetched_at: '2026-07-24T07:01:54.511744Z'
updated_at: '2026-07-24T07:02:21Z'
status: published
content_hash: 9c215b5cd64257c9b0c2888440561ac14cf1ee2e0cf9b1d95ec171f4f47614ef
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: CVE-2026-44243
  type: data
- 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 / PYSEC-2026-3477 / 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:** PYSEC-2026-3477 (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
- https://pypi.org/project/litellm
- https://github.com/advisories/GHSA-5jmr-gcrj-2c9q

_Data: OSV.dev (upstream: pypa) — https://osv.dev/vulnerability/PYSEC-2026-3477_

## Source
元記事: [CVE-2026-59820: LiteLLM: Arbitrary file write via path traversal in Skills archive extraction](https://osv.dev/vulnerability/PYSEC-2026-3477) — published 2026-07-23T11:41:48Z
