{"cve":"CVE-2024-28088","nvd":{"published":"2024-03-04T00:15:47.017","modified":"2026-06-17T07:20:56.497","status":"Analyzed","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.)","cvss_v4":null,"cvss_v3":{"version":"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},"cwes":["CWE-22","CWE-31"],"references":["https://github.com/PinkDraconian/PoC-Langchain-RCE/blob/main/README.md","https://github.com/langchain-ai/langchain/blob/f96dd57501131840b713ed7c2e86cbf1ddc2761f/libs/core/langchain_core/utils/loading.py","https://github.com/langchain-ai/langchain/pull/18600","https://github.com/PinkDraconian/PoC-Langchain-RCE/blob/main/README.md","https://github.com/langchain-ai/langchain/blob/f96dd57501131840b713ed7c2e86cbf1ddc2761f/libs/core/langchain_core/utils/loading.py"],"products":["langchain:langchain"],"source":"nvd","synced_at":"2026-10-19T21:46:54.846886191+00:00"},"epss":{"cve":"CVE-2024-28088","score":0.0174,"percentile":0.77741,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-h59x-p739-982c","url":"https://osv.dev/vulnerability/GHSA-h59x-p739-982c","summary":"LangChain directory traversal vulnerability","modified":"2024-12-03T05:59:19.205896Z","packages":[{"ecosystem":"PyPI","name":"langchain","purl":"pkg:pypi/langchain","ranges":["<0.0.339"],"fixed":["0.0.339"]},{"ecosystem":"PyPI","name":"langchain-core","purl":"pkg:pypi/langchain-core","ranges":["<0.1.30"],"fixed":["0.1.30"]}]},{"id":"PYSEC-2024-43","url":"https://osv.dev/vulnerability/PYSEC-2024-43","summary":"","modified":"2024-03-13T23:41:33.247986Z","packages":[{"ecosystem":"PyPI","name":"langchain","purl":"pkg:pypi/langchain","ranges":["<0.1.11"],"fixed":["0.1.11"]}]},{"id":"PYSEC-2024-45","url":"https://osv.dev/vulnerability/PYSEC-2024-45","summary":"","modified":"2026-06-10T17:02:02.424980982Z","packages":[{"ecosystem":"PyPI","name":"langchain-core","purl":"pkg:pypi/langchain-core","ranges":["<0.1.11"],"fixed":["0.1.11"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}