8.8

CVE-2024-3571: langchain-ai langchain-ai/langchain Path Traversal

CVSS: 8.8v3.1HighAnalyzed
AliasesGHSA-rgp8-pm28-3759PYSEC-2026-1510
Published 16-04-2024Last modified 01-08-2024

Vulnerability summary

CVE-2024-3571 is a high (CVSS 8.8) Path Traversal vulnerability in langchain-ai langchain-ai/langchain. EPSS estimates a 1.87% chance of exploitation in the next 30 days, higher than 79% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
46/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.8/10
010
High · v3.1 (NVD)
EPSS score
1.87%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1reference

Timeline

  1. 16-04-2024
    PublishedVulnerability first disclosed.
  2. 01-08-2024
    Last modifiedVulnerability information updated.

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 metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

1.87%

Chance of exploitation in the next 30 days

Percentile

79%

Versus all other CVEs

30-day change

0.00 pp

From 1.87% on 19-09-2026

19-09-202619-10-2026
EPSS score
1.87%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (huntr.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Langchain1 product
Langchain-ai1 product
PyPI1 product
  • langchain< 0.0.353

3 vendors · 3 products

References

6 links