{"id":"CVE-2024-28088","published":"2024-03-03T00:00:00Z","modified":"2024-08-26T19:44:45Z","title":"LangChain through 0.1.10 allows ../ directory traversal by an actor who is able to control the final part of the path…","vendor":null,"product":null,"tier":"tail","description":{"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.)","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.01726,"percentile":0.78109,"provenance":"source"},"cwes":[{"id":"CWE-31","name":"Path Traversal: 'dir....filename'"}],"references":[{"url":"https://github.com/PinkDraconian/PoC-Langchain-RCE/blob/main/README.md","tags":[]},{"url":"https://github.com/langchain-ai/langchain/blob/f96dd57501131840b713ed7c2e86cbf1ddc2761f/libs/core/langchain_core/utils/loading.py","tags":[]},{"url":"https://github.com/langchain-ai/langchain/pull/18600","tags":[]}],"priority":{"score":26.3,"factors":[{"name":"EPSS percentile","points":15.62},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.67}]},"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-03-07T19:36:26.136405Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"langchain","vulnerableRanges":["<0.0.339","<0.1.11"],"patched":["0.0.339","0.1.11"],"from":["GHSA-h59x-p739-982c","PYSEC-2024-43"],"provenance":"source"},{"ecosystem":"PyPI","package":"langchain-core","vulnerableRanges":["<0.1.30","<0.1.11"],"patched":["0.1.30","0.1.11"],"from":["GHSA-h59x-p739-982c","PYSEC-2024-45"],"provenance":"source"}],"summary":{"text":"LangChain through 0.1.10 contains a directory traversal flaw in the load_chain function, which lets a ../ sequence in the final part of the path parameter bypass the intended restriction to configurations from the hwchase17/langchain-hub GitHub repository. An attacker with low privileges and network access, where the path value is attacker-controlled and no user interaction is required, can disclose a large language model service API key or achieve remote code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:31:56Z"},"euvd":{"id":"EUVD-2024-0085","exploited":false,"provenance":"source"},"exploitRefs":["https://github.com/PinkDraconian/PoC-Langchain-RCE/blob/main/README.md"],"lineage":{"packageHistory":[{"cve":"CVE-2023-32786","published":"2023-10-20","fixed":"0.0.329","kev":false,"link":{"from":"CVE-2023-32786","to":"CVE-2024-28088","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:langchain","fromFixed":"0.0.329","toFixed":"0.0.339","daysApart":135}]}},{"cve":"CVE-2024-3571","published":"2024-04-16","fixed":"0.0.353","kev":false,"link":{"from":"CVE-2024-28088","to":"CVE-2024-3571","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:langchain","fromFixed":"0.0.339","toFixed":"0.0.353","daysApart":44}]}},{"cve":"CVE-2024-0243","published":"2024-02-24","fixed":"0.1.0","kev":false,"link":{"from":"CVE-2024-0243","to":"CVE-2024-28088","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:langchain","fromFixed":"0.1.0","toFixed":"0.1.11","daysApart":8}]}},{"cve":"CVE-2024-28088","published":"2024-03-03","fixed":"0.1.11","kev":false},{"cve":"CVE-2024-8309","published":"2024-10-29","fixed":"0.2.0","kev":false},{"cve":"CVE-2024-2965","published":"2024-06-06","fixed":"0.2.5","kev":false},{"cve":"CVE-2024-5998","published":"2024-09-17","fixed":"0.2.9","kev":false}],"package":"PyPI:langchain"}}