cve.bz

CVE-2024-10940

5.3 mediumEPSS 0.4%

Medium (5.3). EPSS 0.4% chance of exploitation in the next 30 days. Fixed in langchain-core 0.1.53, 0.2.43, 0.3.15.

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.

Severity

CVSS 3.0

5.3 medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
EPSS
0.4% chance of exploitation in the next 30 days; higher than 33% of CVEs (scores of 2026-10-31)
CWE
CWE-497
Published
Modified
Record from
the NVD, synced

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5chr-fjjv-38qvPyPIlangchain-core>=0.1.17 <0.1.530.1.53
GHSA-5chr-fjjv-38qvPyPIlangchain-core>=0.2.0 <0.2.430.2.43
GHSA-5chr-fjjv-38qvPyPIlangchain-core>=0.3.0 <0.3.150.3.15
PYSEC-2026-1517PyPIlangchain-core>=0.1.17 <0.1.53
>=0.2.0 <0.2.43
>=0.3.0 <0.3.15
0.1.53, 0.2.43, 0.3.15

References

Check your stackJSON