Live threats

All CVEs / Langchain

CVE-2024-5998Langchain

High 7.8

Priority
47
CVSS 3.1
7.8
EPSS
0.5%
probability of exploitation in 30 days · percentile 39
Auth required
Yes
Published
Sep 17, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-502
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Langchain.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI langchain < 0.2.9 0.2.9 pip install "langchain>=0.2.9"
PyPI langchain-community < 0.2.4 0.2.4 pip install "langchain-community>=0.2.4"
PyPI langchain-community < 0.2.4 0.2.4 pip install "langchain-community>=0.2.4"

Per OSV / GitHub Advisories (PYSEC-2024-323, GHSA-f2jm-rw3h-6phg, PYSEC-2026-1514). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
langchainlangchain< 0.2.9

Official sources

References

Links published by the sources. Open them with care.