Skip to content

CVE-2024-10940 Exposure of Sensitive System Information via ImagePromptTemplate in langchain-ai/langchain

MediumCVSS 5.3 EPSS 0.57%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
langchain-ai/langchain < 0.3.15 0.3.15 Fixed
pypi langchain-core(PyPI) = 0.1.17; = 0.1.18; = 0.1.19; = 0.1.20 +97 more 0.1.53, 0.2.43, 0.3.15 Fixed

Affected products

ProductAffected versionsFixed in
pypi langchain-core(PyPI) >= 0.1.17, < 0.1.53 0.1.53
pypi langchain-core(PyPI) = 0.1.17 No fix listed
pypi langchain-core(PyPI) = 0.1.18 No fix listed
pypi langchain-core(PyPI) = 0.1.19 No fix listed
pypi langchain-core(PyPI) = 0.1.20 No fix listed
pypi langchain-core(PyPI) = 0.1.21 No fix listed
pypi langchain-core(PyPI) = 0.1.22 No fix listed
pypi langchain-core(PyPI) = 0.1.23 No fix listed
pypi langchain-core(PyPI) = 0.1.24 No fix listed
pypi langchain-core(PyPI) = 0.1.25 No fix listed
pypi langchain-core(PyPI) = 0.1.26 No fix listed
pypi langchain-core(PyPI) = 0.1.27 No fix listed
pypi langchain-core(PyPI) = 0.1.28 No fix listed
pypi langchain-core(PyPI) = 0.1.29 No fix listed
pypi langchain-core(PyPI) = 0.1.30 No fix listed
pypi langchain-core(PyPI) = 0.1.31 No fix listed
pypi langchain-core(PyPI) = 0.1.32 No fix listed
pypi langchain-core(PyPI) = 0.1.33 No fix listed
pypi langchain-core(PyPI) = 0.1.33rc1 No fix listed
pypi langchain-core(PyPI) = 0.1.34 No fix listed
pypi langchain-core(PyPI) = 0.1.35 No fix listed
pypi langchain-core(PyPI) = 0.1.36 No fix listed
pypi langchain-core(PyPI) = 0.1.37 No fix listed
pypi langchain-core(PyPI) = 0.1.38 No fix listed
pypi langchain-core(PyPI) = 0.1.39 No fix listed
Show 77 more
ProductAffected versionsFixed in
pypi langchain-core(PyPI) = 0.1.40 No fix listed
pypi langchain-core(PyPI) = 0.1.41 No fix listed
pypi langchain-core(PyPI) = 0.1.42 No fix listed
pypi langchain-core(PyPI) = 0.1.42rc1 No fix listed
pypi langchain-core(PyPI) = 0.1.43 No fix listed
pypi langchain-core(PyPI) = 0.1.44 No fix listed
pypi langchain-core(PyPI) = 0.1.45 No fix listed
pypi langchain-core(PyPI) = 0.1.46 No fix listed
pypi langchain-core(PyPI) = 0.1.47 No fix listed
pypi langchain-core(PyPI) = 0.1.47rc1 No fix listed
pypi langchain-core(PyPI) = 0.1.48 No fix listed
pypi langchain-core(PyPI) = 0.1.49 No fix listed
pypi langchain-core(PyPI) = 0.1.50 No fix listed
pypi langchain-core(PyPI) = 0.1.51 No fix listed
pypi langchain-core(PyPI) = 0.1.52 No fix listed
pypi langchain-core(PyPI) >= 0.2.0, < 0.2.43 0.2.43
pypi langchain-core(PyPI) = 0.2.0 No fix listed
pypi langchain-core(PyPI) = 0.2.1 No fix listed
pypi langchain-core(PyPI) = 0.2.10 No fix listed
pypi langchain-core(PyPI) = 0.2.11 No fix listed
pypi langchain-core(PyPI) = 0.2.12 No fix listed
pypi langchain-core(PyPI) = 0.2.13 No fix listed
pypi langchain-core(PyPI) = 0.2.15 No fix listed
pypi langchain-core(PyPI) = 0.2.16 No fix listed
pypi langchain-core(PyPI) = 0.2.17 No fix listed
pypi langchain-core(PyPI) = 0.2.18 No fix listed
pypi langchain-core(PyPI) = 0.2.19 No fix listed
pypi langchain-core(PyPI) = 0.2.2 No fix listed
pypi langchain-core(PyPI) = 0.2.20 No fix listed
pypi langchain-core(PyPI) = 0.2.21 No fix listed
pypi langchain-core(PyPI) = 0.2.22 No fix listed
pypi langchain-core(PyPI) = 0.2.23 No fix listed
pypi langchain-core(PyPI) = 0.2.24 No fix listed
pypi langchain-core(PyPI) = 0.2.25 No fix listed
pypi langchain-core(PyPI) = 0.2.26 No fix listed
pypi langchain-core(PyPI) = 0.2.27 No fix listed
pypi langchain-core(PyPI) = 0.2.28 No fix listed
pypi langchain-core(PyPI) = 0.2.29 No fix listed
pypi langchain-core(PyPI) = 0.2.29rc1 No fix listed
pypi langchain-core(PyPI) = 0.2.2rc1 No fix listed
pypi langchain-core(PyPI) = 0.2.3 No fix listed
pypi langchain-core(PyPI) = 0.2.30 No fix listed
pypi langchain-core(PyPI) = 0.2.31 No fix listed
pypi langchain-core(PyPI) = 0.2.32 No fix listed
pypi langchain-core(PyPI) = 0.2.33 No fix listed
pypi langchain-core(PyPI) = 0.2.34 No fix listed
pypi langchain-core(PyPI) = 0.2.35 No fix listed
pypi langchain-core(PyPI) = 0.2.36 No fix listed
pypi langchain-core(PyPI) = 0.2.37 No fix listed
pypi langchain-core(PyPI) = 0.2.38 No fix listed
pypi langchain-core(PyPI) = 0.2.39 No fix listed
pypi langchain-core(PyPI) = 0.2.4 No fix listed
pypi langchain-core(PyPI) = 0.2.40 No fix listed
pypi langchain-core(PyPI) = 0.2.41 No fix listed
pypi langchain-core(PyPI) = 0.2.42 No fix listed
pypi langchain-core(PyPI) = 0.2.5 No fix listed
pypi langchain-core(PyPI) = 0.2.6 No fix listed
pypi langchain-core(PyPI) = 0.2.7 No fix listed
pypi langchain-core(PyPI) = 0.2.8 No fix listed
pypi langchain-core(PyPI) = 0.2.9 No fix listed
pypi langchain-core(PyPI) >= 0.3.0, < 0.3.15 0.3.15
pypi langchain-core(PyPI) = 0.3.0 No fix listed
pypi langchain-core(PyPI) = 0.3.1 No fix listed
pypi langchain-core(PyPI) = 0.3.10 No fix listed
pypi langchain-core(PyPI) = 0.3.11 No fix listed
pypi langchain-core(PyPI) = 0.3.12 No fix listed
pypi langchain-core(PyPI) = 0.3.13 No fix listed
pypi langchain-core(PyPI) = 0.3.14 No fix listed
pypi langchain-core(PyPI) = 0.3.2 No fix listed
pypi langchain-core(PyPI) = 0.3.3 No fix listed
pypi langchain-core(PyPI) = 0.3.4 No fix listed
pypi langchain-core(PyPI) = 0.3.5 No fix listed
pypi langchain-core(PyPI) = 0.3.6 No fix listed
pypi langchain-core(PyPI) = 0.3.7 No fix listed
pypi langchain-core(PyPI) = 0.3.8 No fix listed
pypi langchain-core(PyPI) = 0.3.9 No fix listed
langchain-ai/langchain < 0.3.15 0.3.15

References