9.8

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

Modified
AliasesGHSA-f73w-4m7g-ch9xPYSEC-2023-162PYSEC-2023-163
Published 01-09-2023Last modified 01-10-2024

Vulnerability summary

CVE-2023-39631 is a critical (CVSS 9.8) Improper Control of Generation of Code vulnerability in langchain. EPSS estimates a 1.60% chance of exploitation in the next 30 days, higher than 76.6% 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 (NVD)
EPSS score
1.60%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits2github

Timeline

  1. 01-09-2023
    PublishedVulnerability first disclosed.
  2. 01-10-2024
    Last modifiedVulnerability information updated.

Description

An issue in LanChain-ai Langchain v.0.0.245 allows a remote attacker to execute arbitrary code via the evaluate function in the numexpr library.

CVSS metrics

2 scores · 2 sources · 1 version

EPSS trend

Probability

1.60%

Chance of exploitation in the next 30 days

Percentile

77%

Versus all other CVEs

30-day change

No change 0.00 pp

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

  • githubUnverified

    Numexpr

    Maturity: poc

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.

PyPI2 products
  • langchain< 0.0.308
  • numexpr< 2.8.5
Langchain1 product

2 vendors · 3 products

References

10 links