NetSight
high5.2

CVE-2024-5998

LangChain pickle deserialization of untrusted data

Impact

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 versions prior to 0.2.4.

Affected packages

EcosystemPackageAffectedFixed in
piplangchain-community< 0.2.40.2.4

Affected products

VendorProductAffected versions
LangchainLangchain
before 0.2.9

Weakness classification

References