9.8

CVE-2023-36281: langchain Improper Control of Generation of Code

Modified
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) Improper Control of Generation of Code vulnerability in langchain. EPSS estimates a 3.41% chance of exploitation in the next 30 days, higher than 89.2% of scored vulnerabilities. 2 public exploits are recorded.

Priority
Prioritisepublic exploit

Public exploit (GitHub, Date unknown)

Source freshness unavailable

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

Chance of exploitation in the next 30 days

Percentile

89%

Versus all other CVEs

30-day change

Decrease -0.03 pp

From 3.44% 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

2 found
  • githubUnverified

    Langchain

    Maturity: poc

  • referenceUnverified

    Exploit Reference (aisec.today)

    Maturity: unknown

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.

Langchain1 product
PyPI1 product
  • langchain< 0.0.312 | < 0.0.171

2 vendors · 2 products

References

9 links