Vulnerabilities · 2024 · Langchain
CVE-2024-5998
Langchain vulnerability
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
Langchain. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Langchain runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/langchain-ai/langchain/commit/604dfe2d99246b0c09f047c604f0c63eafba31e7 · Patch
- huntr.com/bounties/fa3a2753-57c3-4e08-a176-d7a3ffda28fe · Exploit
- nvd.nist.gov/vuln/detail/CVE-2024-5998
- github.com/langchain-ai/langchain/commit/77209f315efd13442ec51c67719ba37dfaa44511
- github.com/advisories/GHSA-f2jm-rw3h-6phg
- nvd.nist.gov/vuln/detail/CVE-2024-5998
- cve.org/CVERecord?id=CVE-2024-5998
More vulnerabilities in Langchain products
CVE-2025-68665CVE-2025-68664CVE-2025-2828CVE-2024-58340CVE-2024-46946CVE-2024-38459CVE-2024-28088CVE-2024-27444All 34
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.