CVE-2024-5998

HIGH

Langchain < 0.2.9 - Insecure Deserialization

Title source: rule

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.

Scores

CVSS v3 7.8
EPSS 0.0009
EPSS Percentile 25.5%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Classification

CWE
CWE-502
Status published

Affected Products (2)

langchain/langchain < 0.2.9
pypi/langchain-community < 0.2.4PyPI

Timeline

Published Sep 17, 2024
Tracked Since Feb 18, 2026