CVE-2024-3571

Source
https://cve.org/CVERecord?id=CVE-2024-3571
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-3571.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-3571
Aliases
Published
2024-04-16T00:00:15.193Z
Modified
2026-07-15T01:49:12.952972359Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
Path Traversal in langchain-ai/langchain
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/3xxx/CVE-2024-3571.json",
    "cna_assigner": "@huntr_ai",
    "cwe_ids": [
        "CWE-22"
    ]
}
References

Affected packages

Git / github.com/langchain-ai/langchain

Affected ranges

Type
GIT
Repo
https://github.com/langchain-ai/langchain
Events
Database specific
{
    "cpe": "cpe:2.3:a:langchain:langchain:0.0.351:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "0.0.351"
        },
        {
            "last_affected": "0.0.351"
        }
    ],
    "source": [
        "CPE_STRING",
        "REFERENCES"
    ]
}

Affected versions

0.*
0.0.351
v0.*
v0.0.351
v0.0.352

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-3571.json"