{"cve":"CVE-2024-3571","nvd":{"published":"2024-04-16T00:15:12.203","modified":"2026-06-17T07:44:32.370","status":"Analyzed","description":"langchain-ai/langchain is vulnerable to path traversal due to improper limitation of a pathname to a restricted directory ('Path Traversal') in its LocalFileStore functionality. An attacker can leverage this vulnerability to read or write files anywhere on the filesystem, potentially leading to information disclosure or remote code execution. The issue lies in the handling of file paths in the mset and mget methods, where user-supplied input is not adequately sanitized, allowing directory traversal sequences to reach unintended directories.","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:H","score":8.8},"cwes":["CWE-22"],"references":["https://github.com/langchain-ai/langchain/commit/aad3d8bd47d7f5598156ff2bdcc8f736f24a7412","https://huntr.com/bounties/2df3acdc-ee4f-4257-bbf8-a7de3870a9d8","https://github.com/langchain-ai/langchain/commit/aad3d8bd47d7f5598156ff2bdcc8f736f24a7412","https://huntr.com/bounties/2df3acdc-ee4f-4257-bbf8-a7de3870a9d8"],"products":["langchain:langchain"],"source":"nvd","synced_at":"2026-10-19T21:48:32.179249784+00:00"},"epss":{"cve":"CVE-2024-3571","score":0.01871,"percentile":0.79362,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-rgp8-pm28-3759","url":"https://osv.dev/vulnerability/GHSA-rgp8-pm28-3759","summary":"langchain vulnerable to path traversal","modified":"2026-07-07T17:56:42.554873452Z","packages":[{"ecosystem":"PyPI","name":"langchain","purl":"pkg:pypi/langchain","ranges":["<0.0.353"],"fixed":["0.0.353"]}]},{"id":"PYSEC-2026-1510","url":"https://osv.dev/vulnerability/PYSEC-2026-1510","summary":"langchain vulnerable to path traversal","modified":"2026-07-07T17:46:48.058667165Z","packages":[{"ecosystem":"PyPI","name":"langchain","purl":"pkg:pypi/langchain","ranges":["<0.0.353"],"fixed":["0.0.353"]}]}],"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."]}