Deserialization in Langchain
CVE-2024-5998
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.
Vulnerability class: Insecure Deserialization
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.004, 30.3th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Langchain
- Langchain-Ai Langchain-Ai/langchain — versions unspecified
Weakness classification (CWE)
References
- huntr.com/bounties/fa3a2753-57c3-4e08-a176-d7a3ffda28fe (Exploit, Third Party Advisory)
- github.com/langchain-ai/langchain/commit/604dfe2d99246b0c09f047c604f0c63eafba31… (Patch)