{"id":"CVE-2026-59820","aliases":["GHSA-5jmr-gcrj-2c9q","PYSEC-2026-3477"],"url":"https://o3.security/vulnerability/CVE-2026-59820","summary":"LiteLLM: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","details":"### Impact\n\nLiteLLM 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.\n\nWhen 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.\n\n### Patches\n\nThe issue is fixed in `1.83.7-stable`.\n\nLiteLLM recommens upgrading to `1.83.7-stable` or later.\n\n### Workarounds\n\nIf upgrading is not immediately possible:\n\n1. Block `POST /v1/skills` at your reverse proxy or API gateway.\n2. Restrict Skills API access to trusted users only.","published":"2026-07-08T19:32:11.739Z","modified":"2026-10-21T02:31:06.401824752Z","cvss":null,"epss":{"score":0.00587,"percentile":0.46563,"asOf":"2026-09-17"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"litellm","fixedVersion":"1.83.7"}],"fix":{"url":"https://github.com/BerriAI/litellm/commit/6a15adcd64137d37f73dee76dfe7481f8c2d9196","label":"BerriAI/litellm@6a15adc"},"references":[{"type":"WEB","url":"https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable"},{"type":"ADVISORY","url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-5jmr-gcrj-2c9q"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59820.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59820"},{"type":"FIX","url":"https://github.com/BerriAI/litellm/commit/6a15adcd64137d37f73dee76dfe7481f8c2d9196"},{"type":"FIX","url":"https://github.com/BerriAI/litellm/pull/25475"},{"type":"PACKAGE","url":"https://github.com/BerriAI/litellm"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-21T02:31:06.401824752Z"}}