8.8

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

Analyzed
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) vulnerability in langchain-ai langchain-ai/langchain. EPSS estimates a 1.86% chance of exploitation in the next 30 days, higher than 79.9% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
8.8/10
010
High · v3.1 (NVD)
EPSS score
1.86%
0%100%
Low · -0.02 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware 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.86%

Chance of exploitation in the next 30 days

Percentile

80%

Versus all other CVEs

30-day change

Decrease -0.02 pp

From 1.87% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (huntr.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

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

3 vendors · 3 products

References

6 links