# CVE-2026-59820: LiteLLM: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

- Severity: Medium 6.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Published: 2026-07-08T19:32:11.739Z
- Modified: 2026-10-25T17:10:00.197Z
- Also known as: GHSA-5jmr-gcrj-2c9q, PYSEC-2026-3477
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- BerriAI litellm: < 1.83.7-stable
- litellm (PyPI): before 1.83.7
- litellm litellm: before 1.83.7; 1.83.7

## Every score

- GitHub_M: CVSS:4.0 6.1 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/BerriAI/litellm/security/advisories/GHSA-5jmr-gcrj-2c9q> (mitigation, patch, vendor-advisory, web)
- <https://github.com/BerriAI/litellm/pull/25475> (issue-tracking, patch, web)
- <https://github.com/BerriAI/litellm/commit/6a15adcd64137d37f73dee76dfe7481f8c2d9196> (patch, web)
- <https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59820> (advisory)
- <https://github.com/BerriAI/litellm> (package)
- <https://pypi.org/project/litellm> (package)
- <https://github.com/advisories/GHSA-5jmr-gcrj-2c9q> (advisory)

## Sources

- CVE List: [CVE-2026-59820](https://www.cve.org/CVERecord?id=CVE-2026-59820), CVE Terms of Use, modified 2026-07-09
- GitHub Advisory Database: [GHSA-5jmr-gcrj-2c9q](https://github.com/advisories/GHSA-5jmr-gcrj-2c9q), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-59820](https://nvd.nist.gov/vuln/detail/CVE-2026-59820), Public domain, modified 2026-10-25
- PyPA Advisory Database: [PYSEC-2026-3477](https://osv.dev/vulnerability/PYSEC-2026-3477), CC-BY-4.0, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-59820 · Whole record: https://cve.day/CVE-2026-59820.json · Rebuilt by cve.day 2026-11-25T22:59:27.422Z
