7.8

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

Analyzed
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 31.8% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 5.2, physical access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (NVD)
EPSS score
0.36%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware 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

32%

Versus all other CVEs

30-day change

No change 0.00 pp

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

1 found
  • referenceUnverified

    Exploit Reference (huntr.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: physical access, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.

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

3 vendors · 4 products

References

7 links