Skip to content
HighVulnerability

CVE-2024-3571: langchain-ai/langchain path traversal in LocalFileStore mset and mget methods

Identifier
CVE-2024-3571
Published
Record updated
View JSON
Affected
  • langchain < 0.0.353
Fixed in
0.0.353
  • released December 29, 2023, 109 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.9%

Summary

langchain-ai/langchain is vulnerable to path traversal in its LocalFileStore functionality, tracked as CVE-2024-3571. Because user-supplied input is not adequately sanitized in the mset and mget methods, directory traversal sequences can reach unintended directories. An attacker can read or write files anywhere on the filesystem, which could lead to information disclosure or remote code execution.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.