{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-28088","id":"CVE-2024-28088","title":"LangChain directory traversal vulnerability","description":"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 availa","descriptionLong":"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.)","published":"2024-03-03T00:00:00.000Z","updated":"2026-10-28T02:31:12.213818550Z","reserved":"2024-03-03T00:00:00.000Z","status":"Analyzed","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"NVD"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"CISA-ADP"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"OSV"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"langchain","purl":"pkg:pypi/langchain","ranges":["<0.0.339","<0.1.11"],"fixed":["0.0.339","0.1.11"],"advisory":"GHSA-h59x-p739-982c"},{"ecosystem":"PyPI","name":"langchain-core","purl":"pkg:pypi/langchain-core","ranges":["<0.1.30","<0.1.11"],"fixed":["0.1.30","0.1.11"],"advisory":"GHSA-h59x-p739-982c"}],"cwes":["CWE-31","CWE-22"],"aliases":["GHSA-h59x-p739-982c","PYSEC-2024-43","PYSEC-2024-45"],"references":[{"url":"https://github.com/PinkDraconian/PoC-Langchain-RCE/blob/main/README.md","tags":["x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://github.com/langchain-ai/langchain/blob/f96dd57501131840b713ed7c2e86cbf1ddc2761f/libs/core/langchain_core/utils/loading.py","tags":["x_transferred","Product","Third Party Advisory","web"]},{"url":"https://github.com/langchain-ai/langchain/pull/18600","tags":["x_transferred","Exploit","Issue Tracking","Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/28xxx/CVE-2024-28088.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-28088","tags":["advisory"]},{"url":"https://github.com/langchain-ai/langchain/commit/e1924b3e93d513ca950c72f8e80e1c133749fba5","tags":["web"]},{"url":"https://github.com/langchain-ai/langchain","tags":["package"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/langchain-core/PYSEC-2024-45.yaml","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2024-43.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-h59x-p739-982c","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.01726,"epssPercentile":0.78037,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-28088","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-28088","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-28088","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-h59x-p739-982c","ok":true,"note":"GHSA-h59x-p739-982c"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-28088","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}