CVE-2024-10940
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.
- Affected products
- Langchain-Core
- Fix
- Available
- CVSS 3.0
- 5.3 MEDIUM
- EPSS
- 0.4% (29th percentile)
- Weakness
- CWE-497
- NVD status
- Deferred
- Published
- 2025-03-20
No indexed exploits for CVE-2024-10940 yet
Our index is partial: it proves presence, never absence
No exploit for CVE-2024-10940 has been indexed yet. Our index is built from live traffic and upstream syncs, so this page can only say what it knows — not that no exploit exists.