5.3

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

Deferred
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 35.9% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.3/10
010
Medium · v3.0 (CVE.org)
EPSS score
0.40%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware 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

36%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.40% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

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