CVE-2024-10940
published medium CVSS 3.0 · 5.3Exposure of Sensitive System Information via ImagePromptTemplate in langchain-ai/langchain
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| langchain-ai | — | langchain-ai/langchainunspecified to < 0.3.15 | Affected | Not stated | @huntr_ai |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- @huntr_ai · cna
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| langchain-ai | langchain-ai/langchain | unspecified to < 0.3.15 (affected · custom) | @huntr_ai · cna |
Weaknesses
1- CWE-497 CWE-497 Exposure of Sensitive System Information to an Unauthorized Control Sphere
References
2Provider assertions
2@huntr_ai · cna
Exposure of Sensitive System Information via ImagePromptTemplate in langchain-ai/langchain
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 2a93a239589f6f0f01a144507654cd8a3b6184d874185301a435ee04dca17afa
- Ingested
- 23 Sep 2026, 08:16:56 UTC
- Source record
- Official CVE record