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.
Metrics
Affected Vendors & Products
References
History
No history.
MITRE
Status: PUBLISHED
Assigner: @huntr_ai
Published: 2024-04-16T00:00:15.193Z
Updated: 2024-08-01T20:12:07.801Z
Reserved: 2024-04-10T09:53:41.729Z
Link: CVE-2024-3571
Vulnrichment
Updated: 2024-08-01T20:12:07.801Z
NVD
Status : Awaiting Analysis
Published: 2024-04-16T00:15:12.203
Modified: 2024-04-16T13:24:07.103
Link: CVE-2024-3571
Redhat
No data.