High severity · published Sep 17, 2024
CVE-2024-5998
Deserialization of Untrusted Data in langchain-ai/langchain
7.8
CVSS
0.4%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 30% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
LA
langchain-ai/langchain · langchain-ai
before 0.2.9 · source: vendor
LA
Langchain · Langchain
before 0.2.9 · source: NVD, CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-5998
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-5998
Patch
https://github.com/langchain-ai/langchain/commit/604dfe2d99246b0c09f047c604f0c63eafba31e7
Exploit
https://huntr.com/bounties/fa3a2753-57c3-4e08-a176-d7a3ffda28fe
More from langchain-ai/langchain
10.0
CVE-2025-2828
SSRF Vulnerability in RequestsToolkit in langchain-ai/langchain
9.8
CVE-2024-8309
SQL Injection in langchain-ai/langchain
8.8
CVE-2024-3571
Path Traversal in langchain-ai/langchain
7.7
CVE-2024-3095
SSRF in Langchain Web Research Retriever in langchain-ai/langchain
7.5
CVE-2025-6985
XXE Vulnerability in langchain-ai/langchain
