CVE-2024-3571

Path Traversal in langchain-ai/langchain

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.

Category

6.5
CVSS
Severity: Medium
CVSS 3.0 •
EPSS 0.63%
Affected: langchain-ai langchain-ai/langchain
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-3571?
CVE-2024-3571 has been scored as a medium severity vulnerability.
How to fix CVE-2024-3571?
To fix CVE-2024-3571, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2024-3571 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2024-3571 is being actively exploited. According to its EPSS score, there is a ~1% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-3571?
CVE-2024-3571 affects langchain-ai langchain-ai/langchain.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.