9.8

CVE-2023-36281: langchain Code Injection

CVSS: 9.8v3.1CriticalModified
AliasesGHSA-7gfq-f96f-g85jPYSEC-2023-151
Published 22-08-2023Last modified 15-10-2024

Vulnerability summary

CVE-2023-36281 is a critical (CVSS 9.8) Code Injection vulnerability in langchain. EPSS estimates a 3.44% chance of exploitation in the next 30 days, higher than 88.8% 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
3.44%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits2github, reference

Timeline

  1. 22-08-2023
    PublishedVulnerability first disclosed.
  2. 15-10-2024
    Last modifiedVulnerability information updated.

Description

An issue in langchain v.0.0.171 allows a remote attacker to execute arbitrary code via a JSON file to load_prompt. This is related to __subclasses__ or a template.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

3.44%

Chance of exploitation in the next 30 days

Percentile

89%

Versus all other CVEs

30-day change

0.00 pp

From 3.44% on 19-09-2026

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

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

2 found
  • githubUnverified

    Langchain

    Maturity: poc

  • referenceUnverified

    Exploit Reference (aisec.today)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Langchain1 product
PyPI1 product
  • langchain< 0.0.312 | < 0.0.171

2 vendors · 2 products

References

9 links