Skip to content
OpenAdvisories
Medium · 5.2 CVE-2024-5998 EUVD-2024-2778GHSA-f2jm-rw3h-6phgPYSEC-2024-323PYSEC-2026-1514

Deserialization of Untrusted Data in langchain-ai/langchain

Published Sep 17, 2024 · Updated Sep 17, 2024 · Assigned by @huntr_ai

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.

Affected products

VendorProductAffectedFixed
langchain-ai langchain-ai/langchain unspecified – < 0.2.9 0.2.9

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI langchain < 0.2.9 0.2.9 PYSEC-2024-323
PyPI langchain-community < 0.2.4 0.2.4 GHSA-f2jm-rw3h-6phg

References