Security mailing lists by PureSourceCode

CVE-2024-3571

HIGH 8.8CVSS 3.1

langchain vulnerable to path traversal

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.

Published
16 Apr 2024
Last modified
7 Jul 2026
Assigned by
security@huntr.dev
NVD status
Analyzed
Weakness
CWE-22
Also known as
GHSA-rgp8-pm28-3759PYSEC-2026-1510
Sources
NVDJSONOSV GHSA-rgp8-pm28-3759JSONOSV PYSEC-2026-1510JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD security@huntr.dev (Secondary) CVSS 3.0 MEDIUM 6.5 CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
OSV GitHub CVSS 3.0 MEDIUM 6.5 CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
OSV PyPA CVSS 3.0 MEDIUM 6.5 CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD langchain langchain
cpe:2.3:a:langchain:langchain:0.0.351:*:*:*:*:*:*:*
= 0.0.351
OSV PyPI langchain < 0.0.353 0.0.353

References

History

  • 25 Nov 2026 20:55 UTC · NVD: first stored (published 16 Apr 2024)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 16 Apr 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.