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

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

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及之前版本存在SQL注入漏洞,该漏洞源于允许即时注入,从而导致SQL注入,攻击者可以在未经适当授权的情况下创建、更新或删除节点和关系、提取敏感数据、破坏服务、跨不同租户访问数据并破坏数据库的完整性。

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

I. Basic Information for CVE-2024-7042

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
Prompt Injection in langchain-ai/langchainjs Leading to SQL Injection
Source: CVE Program / CVE List V5
Vulnerability Description
A vulnerability in the GraphCypherQAChain class of langchain-ai/langchainjs versions 0.2.5 and all versions with this class allows for prompt injection, leading to SQL injection. This vulnerability permits unauthorized data manipulation, data exfiltration, denial of service (DoS) by deleting all data, breaches in multi-tenant security environments, and data integrity issues. Attackers can create, update, or delete nodes and relationships without proper authorization, extract sensitive data, disrupt services, access data across different tenants, and compromise the integrity of the database.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
SQL命令中使用的特殊元素转义处理不恰当(SQL注入)
Source: CVE Program / CVE List V5
Vulnerability Title
LangChain.js SQL注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
LangChain.js是LangChain开源的一个构建上下文感知推理应用程序。 LangChain.js 0.2.5及之前版本存在SQL注入漏洞,该漏洞源于允许即时注入,从而导致SQL注入,攻击者可以在未经适当授权的情况下创建、更新或删除节点和关系、提取敏感数据、破坏服务、跨不同租户访问数据并破坏数据库的完整性。
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.3.1 -

II. Public POCs for CVE-2024-7042

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

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

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

Vendor Advisories for CVE-2024-7042 (1)

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

CVE-2024-7774 Path Traversal in langchain-ai/langchainjs
CVE-2024-8309 SQL Injection in langchain-ai/langchain

IV. Related Vulnerabilities

V. Comments for CVE-2024-7042

No comments yet


Leave a comment