PT-2024-37303 · Langchain Ai · Langchain

CVE-2024-5998

·

Published

2024-09-17

·

Updated

2026-07-07

CVSS v4.0

8.4

High

VectorAV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions: langchain-ai/langchain versions prior to 0.2.4
Description: A vulnerability in the FAISS.deserialize from bytes function allows for pickle deserialization of untrusted data, which can lead to the execution of arbitrary commands via the os.system function.
Recommendations: For versions prior to 0.2.4, update to version 0.2.4 or later to resolve the issue. As a temporary workaround, consider disabling the FAISS.deserialize from bytes function until a patch is available. Restrict access to untrusted data to minimize the risk of exploitation.

Exploit

Fix

Deserialization of Untrusted Data

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2024-5998
GHSA-F2JM-RW3H-6PHG
PYSEC-2024-323
PYSEC-2026-1514

Affected Products

Langchain