5.3

CVE-2024-10940: langchain-ai langchain-ai/langchain

CVSS: 5.3v3.0MediumDeferred
AliasesGHSA-5chr-fjjv-38qvPYSEC-2026-1517
Published 20-03-2025Last modified 20-03-2025

Vulnerability summary

CVE-2024-10940 is a medium (CVSS 5.3) vulnerability in langchain-ai langchain-ai/langchain. EPSS estimates a 0.40% chance of exploitation in the next 30 days, higher than 32.3% of scored vulnerabilities.

Overall risk
21/100
0100
Low · default modelHow is this calculated?
CVSS score
5.3/10
010
Medium · v3.0 (CVE.org)
EPSS score
0.40%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 20-03-2025
    PublishedVulnerability first disclosed.
  2. 20-03-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.40%

Chance of exploitation in the next 30 days

Percentile

32%

Versus all other CVEs

30-day change

+0.01 pp

From 0.38% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.40%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Langchain-ai1 product
PyPI1 product
  • langchain-core≥ 0.1.17, < 0.1.53 | ≥ 0.2.0, < 0.2.43 | ≥ 0.3.0, < 0.3.15

2 vendors · 2 products

References

8 links