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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-04-16 · Modified: 2024-08-01
- Aliases: GHSA-rgp8-pm28-3759, PYSEC-2026-1510
- Record: https://cvemate.com/vulnerability/CVE-2024-3571 · JSON: https://cvemate.com/vulnerability/CVE-2024-3571/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.856%, percentile 79.907%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- langchain-ai langchain-ai/langchain: ≥ unspecified, \< 0.0.353
- langchain langchain: 0.0.351
- PyPI langchain (PyPI): \< 0.0.353

## References

- <https://huntr.com/bounties/2df3acdc-ee4f-4257-bbf8-a7de3870a9d8>
- <https://github.com/langchain-ai/langchain/commit/aad3d8bd47d7f5598156ff2bdcc8f736f24a7412>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-3571>
- <https://github.com/langchain-ai/langchain>
- <https://pypi.org/project/langchain>
- <https://github.com/advisories/GHSA-rgp8-pm28-3759>

---

Data as of 2026-12-05T13:26:42.274Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
