{"schemaVersion":3,"id":"CVE-2024-28088","aliases":["GHSA-h59x-p739-982c","PYSEC-2024-43","PYSEC-2024-45"],"status":"published","duplicateOf":null,"title":null,"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 available as of release 0.1.29 of langchain-core.)","dates":{"published":"2024-03-03T00:00:00.000Z","modified":"2024-08-26T19:44:45.330Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.1,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0174,"percentile":0.77393,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.0174},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0174,"percentile":0.77393}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0174,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0174,"percentile":0.77393}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_PINKDRACONIAN_POC-LANGCHAIN-RCE","name":"Poc Langchain Rce","source":"github","url":"https://github.com/PinkDraconian/PoC-Langchain-RCE/blob/main/README.md","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"GITHUB_LANGCHAIN-AI_LANGCHAIN","name":"Langchain","source":"github","url":"https://github.com/langchain-ai/langchain/issues/5872","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":2,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"},{"id":"CWE-31","name":"Path Traversal: 'dir\\..\\..\\filename'","description":"The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize 'dir\\..\\..\\filename' (multiple internal backslash dot dot) sequences that can resolve to a location that is outside of that directory.","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/31.html"}],"affected":[{"vendor":"langchain","product":"langchain","name":"langchain","label":"langchain","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.1.12","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.1.12","eol":null,"hubHref":"/vendor/langchain/langchain"},{"vendor":"PyPI","product":"langchain","name":"langchain","label":"langchain","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/langchain","purlType":"pypi","versions":[{"text":"< 0.0.339","noFixRecorded":false,"fixedIn":null},{"text":"< 0.1.11","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.0.339 | < 0.1.11","eol":null,"hubHref":null},{"vendor":"PyPI","product":"langchain-core","name":"langchain-core","label":"langchain-core","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/langchain-core","purlType":"pypi","versions":[{"text":"< 0.1.30","noFixRecorded":false,"fixedIn":null},{"text":"< 0.1.11","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.1.30 | < 0.1.11","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/PinkDraconian/PoC-Langchain-RCE/blob/main/README.md","label":"github.com/PinkDraconian/PoC-Langchain-RCE/blob/main/README.md","hostname":"github.com","tags":["WEB","Exploit","Third Party Advisory"]},{"url":"https://github.com/langchain-ai/langchain/blob/f96dd57501131840b713ed7c2e86cbf1ddc2761f/libs/core/langchain_core/utils/loading.py","label":"github.com/langchain-ai/…","hostname":"github.com","tags":["WEB","Product","Third Party Advisory"]},{"url":"https://github.com/langchain-ai/langchain/pull/18600","label":"github.com/langchain-ai/langchain/pull/18600","hostname":"github.com","tags":["WEB","Exploit","Issue Tracking","Patch"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-28088","label":"nvd.nist.gov/vuln/detail/CVE-2024-28088","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/langchain-ai/langchain/commit/e1924b3e93d513ca950c72f8e80e1c133749fba5","label":"github.com/langchain-ai/langchain/commit/e1924b3e93d513ca950c72f8e80e1c133749fba5","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/langchain-ai/langchain","label":"github.com/langchain-ai/langchain","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/langchain-core/PYSEC-2024-45.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/langchain-core/PYSEC-2024-45.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2024-43.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2024-43.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-h59x-p739-982c","label":"github.com/advisories/GHSA-h59x-p739-982c","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2024-03-03T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-26T19:44:45.330Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":43,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T10:33:18.646Z","stale":false,"partial":false}}