Exposure of Sensitive System Information via ImagePromptTemplate in langchain-ai/langchain
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 0.3.15, 0.1.53, 0.2.43
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: poc
- Automatable: yes
- Technical impact: partial
Summary
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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: poc · Automatable: yes · Technical impact: partial
- Record last updated
Affected versions
- langchain-ai langchain-ai/langchain
fixed in 0.3.15
- langchain-corePyPI
From 0.1.17 · fixed in 0.1.53; From 0.2.0 · fixed in 0.2.43; From 0.3.0 · fixed in 0.3.15
- langchain-corePyPI
From 0.1.17 · fixed in 0.1.53
- langchain-corePyPI
From 0.2.0 · fixed in 0.2.43
- langchain-corePyPI
From 0.3.0 · fixed in 0.3.15