High severity · published Apr 16, 2024
CVE-2024-3571
Path Traversal in langchain-ai/langchain
8.8
CVSS
1.9%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.9% · higher than 79% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
LA
langchain-ai/langchain · langchain-ai
before 0.0.353 · source: vendor
LA
Langchain · Langchain
0.0.351 · source: NVD, CISA
Affected product
LA
langchain-ai/langchain
langchain-ai
More from langchain-ai/langchain
10.0
CVE-2025-2828
SSRF Vulnerability in RequestsToolkit in langchain-ai/langchain
9.8
CVE-2024-8309
SQL Injection in langchain-ai/langchain
8.1
CVE-2024-0243
Server-side Request Forgery In Recursive URL Loader
7.8
CVE-2024-5998
Deserialization of Untrusted Data in langchain-ai/langchain
7.7
CVE-2024-3095
SSRF in Langchain Web Research Retriever in langchain-ai/langchain