Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
langchain-ai langchain-ai/langchain
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

LangChain是通过可组合性使用 LLM 构建应用程序。 LangChain 存在路径遍历漏洞,该漏洞源于容易受到路径遍历的攻击,攻击者可以利用此漏洞在文件系统上的任何位置读取或写入文件,可能导致信息泄露或远程代码执行。

AI Predicted 8.6 Difficulty: Easy EPSS 1.87% · P79

Possible ATT&CK Techniques 1 AI

T1083 · File and Directory Discovery
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-3571

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Path Traversal in langchain-ai/langchain
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5
Vulnerability Title
LangChain 路径遍历漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
LangChain是通过可组合性使用 LLM 构建应用程序。 LangChain 存在路径遍历漏洞,该漏洞源于容易受到路径遍历的攻击,攻击者可以利用此漏洞在文件系统上的任何位置读取或写入文件,可能导致信息泄露或远程代码执行。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
langchain-ai langchain-ai/langchain unspecified ~ 0.0.353 -

II. Public POCs for CVE-2024-3571

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-3571

请登录查看更多情报信息。

Patches & Fixes for CVE-2024-3571 (1)

Vendor Advisories for CVE-2024-3571 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2024-3571

No comments yet


Leave a comment