9.8

CVE-2023-29374: langchain Injection

CVSS: 9.8v3.1CriticalModified
AliasesGHSA-fprp-p869-w6q2PYSEC-2023-18
Published 05-04-2023Last modified 12-02-2025

Vulnerability summary

CVE-2023-29374 is a critical (CVSS 9.8) Injection vulnerability in langchain. EPSS estimates a 39.65% chance of exploitation in the next 30 days, higher than 98.6% of scored vulnerabilities. 2 public exploits are recorded.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.8/10
010
Critical · v3.1 (CVE.org)
EPSS score
39.65%
0%100%
High · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits2github, reference

Timeline

  1. 05-04-2023
    PublishedVulnerability first disclosed.
  2. 12-02-2025
    Last modifiedVulnerability information updated.

Description

In LangChain through 0.0.131, the LLMMathChain chain allows prompt injection attacks that can execute arbitrary code via the Python exec method.

CVSS metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

39.65%

Chance of exploitation in the next 30 days

Percentile

99%

Versus all other CVEs

30-day change

0.00 pp

From 39.65% on 21-09-2026

21-09-202621-10-2026
EPSS score
39.65%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

2 found
  • githubUnverified

    Langchain

    Maturity: poc

  • referenceUnverified

    Exploit Reference (twitter.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Langchain1 product
PyPI1 product
  • langchain≤ 0.0.131 | < 0.0.132

2 vendors · 2 products

References

8 links