7.8

CVE-2024-5998: langchain-ai langchain-ai/langchain Deserialization of Untrusted Data

CVSS: 7.8v3.1HighAnalyzed
AliasesGHSA-f2jm-rw3h-6phgPYSEC-2024-323PYSEC-2026-1514
Published 17-09-2024Last modified 17-09-2024

Vulnerability summary

CVE-2024-5998 is a high (CVSS 7.8) Deserialization of Untrusted Data vulnerability in langchain-ai langchain-ai/langchain. EPSS estimates a 0.36% chance of exploitation in the next 30 days, higher than 28.4% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
41/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.8/10
010
High · v3.1 (NVD)
EPSS score
0.36%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1reference

Timeline

  1. 17-09-2024
    PublishedVulnerability first disclosed.
  2. 17-09-2024
    Last modifiedVulnerability information updated.

Description

A vulnerability in the FAISS.deserialize_from_bytes function of langchain-ai/langchain allows for pickle deserialization of untrusted data. This can lead to the execution of arbitrary commands via the os.system function. The issue affects the latest version of the product.

CVSS metrics

5 scores · 3 sources · 3 versions

EPSS trend

Probability

0.36%

Chance of exploitation in the next 30 days

Percentile

28%

Versus all other CVEs

30-day change

0.00 pp

From 0.36% on 20-09-2026

20-09-202620-10-2026
EPSS score
0.36%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (huntr.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

PyPI2 products
  • langchain< 0.2.9
  • langchain-community< 0.2.4
Langchain1 product
Langchain-ai1 product

3 vendors · 4 products

References

7 links