CVE-2026-59820: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in BerriAI litellm
LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. Prior to 1.83.7-stable, LiteLLM Skills archive extraction did not sufficiently validate file paths from uploaded skill ZIP archives, allowing 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 to upload a crafted skill archive containing path traversal entries that could be written outside the intended extraction or staging directory. This issue is fixed in version 1.83.7-stable.
AI Analysis
Technical Summary
LiteLLM, a proxy server for calling LLM APIs, prior to version 1.83.7-stable, did not properly validate file paths during extraction of uploaded skill ZIP archives. Authenticated users with access to LiteLLM LLM API routes or keys permitting /v1/skills, anthropic_routes, or llm_api_routes could exploit this to perform path traversal, causing files to be written outside the designated extraction or staging directories. This vulnerability is identified as CWE-22 and has a CVSS 4.0 score of 6.1 (medium severity). The issue is resolved in version 1.83.7-stable.
Potential Impact
An authenticated user with specific API route permissions can upload a malicious skill archive that writes files outside the intended directories, potentially overwriting or creating files in unauthorized locations. This could lead to unauthorized file modification or code execution depending on the environment and usage context. No known exploits are reported in the wild.
Mitigation Recommendations
Upgrade to LiteLLM version 1.83.7-stable or later, where the path traversal vulnerability is fixed. Since no official remediation level or patch link is provided, rely on the vendor's version update as the fix. Until upgraded, restrict access to API routes /v1/skills, anthropic_routes, and llm_api_routes to trusted users only.
CVE-2026-59820: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in BerriAI litellm
Description
LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. Prior to 1.83.7-stable, LiteLLM Skills archive extraction did not sufficiently validate file paths from uploaded skill ZIP archives, allowing 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 to upload a crafted skill archive containing path traversal entries that could be written outside the intended extraction or staging directory. This issue is fixed in version 1.83.7-stable.
CVSS v4.0
Score 6.1medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
LiteLLM, a proxy server for calling LLM APIs, prior to version 1.83.7-stable, did not properly validate file paths during extraction of uploaded skill ZIP archives. Authenticated users with access to LiteLLM LLM API routes or keys permitting /v1/skills, anthropic_routes, or llm_api_routes could exploit this to perform path traversal, causing files to be written outside the designated extraction or staging directories. This vulnerability is identified as CWE-22 and has a CVSS 4.0 score of 6.1 (medium severity). The issue is resolved in version 1.83.7-stable.
Potential Impact
An authenticated user with specific API route permissions can upload a malicious skill archive that writes files outside the intended directories, potentially overwriting or creating files in unauthorized locations. This could lead to unauthorized file modification or code execution depending on the environment and usage context. No known exploits are reported in the wild.
Mitigation Recommendations
Upgrade to LiteLLM version 1.83.7-stable or later, where the path traversal vulnerability is fixed. Since no official remediation level or patch link is provided, rely on the vendor's version update as the fix. Until upgraded, restrict access to API routes /v1/skills, anthropic_routes, and llm_api_routes to trusted users only.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-07T15:00:50.978Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a4ea889c9d9e3dbe3a5269a
Added to database: 07/08/2026, 19:44:09 UTC
Last enriched: 07/16/2026, 10:06:20 UTC
Last updated: 08/22/2026, 15:27:58 UTC
Views: 77
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.