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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-7774— Path Traversal in langchain-ai/langchainjs

Quick assessment

Affected
langchain-ai langchain-ai/langchainjs
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.js是LangChain开源的一个构建上下文感知推理应用程序。 LangChain.js 0.2.5版本存在安全漏洞,该漏洞源于存在路径遍历漏洞,允许攻击者在文件系统的任何位置保存文件、覆盖现有文本文件、读取文件以及删除文件。

AI Predicted 9.8 Difficulty: Easy EPSS 0.55% · P44
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-7774

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/langchainjs
Source: CVE Program / CVE List V5
Vulnerability Description
A path traversal vulnerability exists in the `getFullPath` method of langchain-ai/langchainjs version 0.2.5. This vulnerability allows attackers to save files anywhere in the filesystem, overwrite existing text files, read `.txt` files, and delete files. The vulnerability is exploited through the `setFileContent`, `getParsedFile`, and `mdelete` methods, which do not properly sanitize user input.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
路径遍历:’..filename’
Source: CVE Program / CVE List V5
Vulnerability Title
LangChain.js 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
LangChain.js是LangChain开源的一个构建上下文感知推理应用程序。 LangChain.js 0.2.5版本存在安全漏洞,该漏洞源于存在路径遍历漏洞,允许攻击者在文件系统的任何位置保存文件、覆盖现有文本文件、读取文件以及删除文件。
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/langchainjs unspecified ~ 0.2.19 -

II. Public POCs for CVE-2024-7774

# 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-7774

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

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

Vendor Advisories for CVE-2024-7774 (1)

Same Patch Batch · langchain-ai · 2024-10-29 · 3 CVEs total

CVE-2024-7042 Prompt Injection in langchain-ai/langchainjs Leading to SQL Injection
CVE-2024-8309 SQL Injection in langchain-ai/langchain

IV. Related Vulnerabilities

V. Comments for CVE-2024-7774

No comments yet


Leave a comment