{"id":"CVE-2024-28088","aliases":["CVE-2024-28088","GHSA-h59x-p739-982c","PYSEC-2024-43","PYSEC-2024-45"],"related":[],"kind":"vulnerability","state":"published","title":"LangChain directory traversal vulnerability","summary":"LangChain through 0.1.10 allows ../ directory traversal by an actor who is able to control the final part of the path parameter in a load_chain call. This bypasses the intended behavior of loading configurations only from the hwchase17/langchain-hub GitHub repository. The outcome can be disclosure of an API key for a large language model online service, or remote code execution. (A patch is available as of release 0.1.29 of langchain-core.)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"LangChain through 0.1.10 allows ../ directory traversal by an actor who is able to control the final part of the path parameter in a load_chain call. This bypasses the intended behavior of loading configurations only from the hwchase17/langchain-hub GitHub repository. The outcome can be disclosure of an API key for a large language model online service, or remote code execution. (A patch is available as of release 0.1.29 of langchain-core.)","source":"cvelist"},{"lang":"en","text":"LangChain through 0.1.10 allows ../ directory traversal by an actor who is able to control the final part of the path parameter in a load_chain call. This bypasses the intended behavior of loading configurations only from the hwchase17/langchain-hub GitHub repository. The outcome can be disclosure of an API key for a large language model online service, or remote code execution.","format":"markdown","source":"ghsa"},{"lang":"es","text":"LangChain hasta 0.1.10 permite el Directory Traversal ../ por parte de un actor que puede controlar la parte final del parámetro de ruta en una llamada load_chain. Esto omite el comportamiento previsto de cargar configuraciones solo desde el repositorio GitHub hwchase17/langchain-hub. El resultado puede ser la divulgación de una clave API para un servicio en línea de modelo de lenguaje grande o la ejecución remota de código.","source":"nvd"}],"published":"2024-03-03T00:00:00.000Z","modified":"2026-06-17T07:20:56.497Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"rating","rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"}],"cwes":["CWE-22","CWE-31"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","lastAffected":"0.1.10","status":"affected"}],"vendor":"langchain","product":"langchain","cpe":"cpe:2.3:a:langchain:langchain:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.0.339"}],"ecosystem":"PyPI","package":"langchain","purl":"pkg:pypi/langchain","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.1.30"}],"ecosystem":"PyPI","package":"langchain-core","purl":"pkg:pypi/langchain-core","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.1.12"}],"vendor":"langchain","product":"langchain","cpe":"cpe:2.3:a:langchain:langchain:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.1.11"}],"ecosystem":"PyPI","package":"langchain","purl":"pkg:pypi/langchain","source":"pysec"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.1.11"}],"ecosystem":"PyPI","package":"langchain-core","purl":"pkg:pypi/langchain-core","source":"pysec"}],"references":[{"url":"https://github.com/PinkDraconian/PoC-Langchain-RCE/blob/main/README.md","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/langchain-ai/langchain/blob/f96dd57501131840b713ed7c2e86cbf1ddc2761f/libs/core/langchain_core/utils/loading.py","tags":["product","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/langchain-ai/langchain/pull/18600","tags":["exploit","issue-tracking","patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-28088","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/langchain-ai/langchain/commit/e1924b3e93d513ca950c72f8e80e1c133749fba5","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/langchain-ai/langchain","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/langchain-core/PYSEC-2024-45.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2024-43.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-h59x-p739-982c","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2024-03-07T19:36:26.136Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-28088","url":"https://www.cve.org/CVERecord?id=CVE-2024-28088","licence":"CVE Terms of Use","modified":"2024-08-26T19:44:45.330Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-h59x-p739-982c","url":"https://github.com/advisories/GHSA-h59x-p739-982c","licence":"CC-BY-4.0","modified":"2024-12-03T05:59:19.205Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-28088","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-28088","licence":"Public domain","modified":"2026-06-17T07:20:56.497Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2024-43","url":"https://osv.dev/vulnerability/PYSEC-2024-43","licence":"CC-BY-4.0","modified":"2024-03-13T23:41:33.247Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2024-45","url":"https://osv.dev/vulnerability/PYSEC-2024-45","licence":"CC-BY-4.0","modified":"2026-06-10T17:02:02.424Z"}],"updatedAt":"2026-11-25T22:58:37.239Z","epss":{"score":0.01726,"percentile":0.78227,"date":"2026-12-01T12:00:22.000Z"}}