ADVISORIES

PyPA Advisory Database

PYSEC-2024-323

Details

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 packages

EcosystemPackageAffected versions
PyPIlangchain
All versions before 0.2.9 (fixed in 0.2.9)

References