{"id":"CVE-2026-59820","aliases":["CVE-2026-59820","GHSA-5jmr-gcrj-2c9q","PYSEC-2026-3477"],"related":[],"kind":"vulnerability","state":"published","title":"LiteLLM: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"LiteLLM es un servidor proxy (Pasarela de IA) para llamar a las API de LLM en formato OpenAI (o nativo). Antes de la versión 1.83.7-stable, la extracción de archivos de habilidades de LiteLLM no validaba suficientemente las rutas de archivo de los archivos ZIP de habilidades cargados, permitiendo a un usuario autenticado con acceso a las rutas de la API de LLM de LiteLLM o una clave cuyas allowed_routes incluyen /v1/skills, anthropic_routes, o llm_api_routes cargar un archivo de habilidad manipulado que contenía entradas de salto de ruta que podían escribirse fuera del directorio de extracción o de preparación previsto. Este problema está solucionado en la versión 1.83.7-stable.","source":"nvd"}],"published":"2026-07-08T19:32:11.739Z","modified":"2026-10-25T17:10:00.197Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 1.83.7-stable","status":"affected"}],"vendor":"BerriAI","product":"litellm","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.83.7"}],"ecosystem":"PyPI","package":"litellm","purl":"pkg:pypi/litellm","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.83.7"},{"status":"affected","version":"1.83.7"}],"vendor":"litellm","product":"litellm","cpe":"cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.83.7"}],"ecosystem":"PyPI","package":"litellm","purl":"pkg:pypi/litellm","source":"pysec"}],"references":[{"url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-5jmr-gcrj-2c9q","tags":["mitigation","patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/BerriAI/litellm/pull/25475","tags":["issue-tracking","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/BerriAI/litellm/commit/6a15adcd64137d37f73dee76dfe7481f8c2d9196","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable","tags":["product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59820","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/BerriAI/litellm","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/litellm","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-5jmr-gcrj-2c9q","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-07-09T14:36:59.709Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-59820","url":"https://www.cve.org/CVERecord?id=CVE-2026-59820","licence":"CVE Terms of Use","modified":"2026-07-09T14:37:09.457Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5jmr-gcrj-2c9q","url":"https://github.com/advisories/GHSA-5jmr-gcrj-2c9q","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:10.470Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-59820","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59820","licence":"Public domain","modified":"2026-10-25T17:10:00.197Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-3477","url":"https://osv.dev/vulnerability/PYSEC-2026-3477","licence":"CC-BY-4.0","modified":"2026-07-23T15:00:15.302Z"}],"updatedAt":"2026-11-25T22:59:27.422Z","epss":{"score":0.0041,"percentile":0.3734,"date":"2026-12-01T12:00:22.000Z"}}