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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-10940— Exposure of Sensitive System Information via ImagePromptTemplate 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是LangChain开源的一个用于开发由大型语言模型 (LLM) 提供支持的应用程序的框架。 LangChain 0.1.17至0.1.53版本、0.2.0至0.2.43版本和0.3.0至0.3.15版本存在安全漏洞,该漏洞源于未授权用户可以从主机文件系统读取任意文件。

AI Predicted 7.5 Difficulty: Easy EPSS 0.39% · P31

Possible ATT&CK Techniques 1 AI

T1005 · Data from Local System
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-10940

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
Exposure of Sensitive System Information via ImagePromptTemplate in langchain-ai/langchain
Source: CVE Program / CVE List V5
Vulnerability Description
A vulnerability in langchain-core versions >=0.1.17,<0.1.53, >=0.2.0,<0.2.43, and >=0.3.0,<0.3.15 allows unauthorized users to read arbitrary files from the host file system. The issue arises from the ability to create langchain_core.prompts.ImagePromptTemplate's (and by extension langchain_core.prompts.ChatPromptTemplate's) with input variables that can read any user-specified path from the server file system. If the outputs of these prompt templates are exposed to the user, either directly or through downstream model outputs, it can lead to the exposure of sensitive information.
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是LangChain开源的一个用于开发由大型语言模型 (LLM) 提供支持的应用程序的框架。 LangChain 0.1.17至0.1.53版本、0.2.0至0.2.43版本和0.3.0至0.3.15版本存在安全漏洞,该漏洞源于未授权用户可以从主机文件系统读取任意文件。
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.3.15 -

II. Public POCs for CVE-2024-10940

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

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

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

Vendor Advisories for CVE-2024-10940 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2024-10940

No comments yet


Leave a comment