HighGHSA-f2jm-rw3h-6phgCVE-2024-5998PYSEC-2024-323PYSEC-2026-1514
LangChain pickle deserialization of untrusted data
Published 17 Sept 2024 · Updated 13 Jul 2026
Is your project on an affected langchain-community?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <0.2.4
- Fixed in
- 0.2.4
Update to the fixed version for your release line, for example:
pip install 'langchain-community>=0.2.4'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 versions prior to 0.2.4.
Is GHSA-f2jm-rw3h-6phg in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected langchain-community, and gives you the command that fixes it.
More advisories for langchain-community
- HighCVE-2025-6984Langchain Community Vulnerable to XML External Entity (XXE) Attacks · 4 Sept 2025
- HighCVE-2025-2828LangChain Community SSRF vulnerability exists in RequestsToolkit component · 23 Jun 2025
- LowCVE-2024-8309Langchain SQL Injection vulnerability · 29 Oct 2024
- MediumCVE-2024-2965Denial of service in langchain-community · 6 Jun 2024
- MediumCVE-2024-3095Server-Side Request Forgery in langchain-community.retrievers.web_research.WebResearchRetriever · 6 Jun 2024
- LowCVE-2024-2057No summary published · 1 Mar 2024
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2024-5998
- Linkgithub.com/langchain-ai/langchain/commit/604dfe2d99246b0c09f047c604f0c63eafba31e7
- Linkgithub.com/langchain-ai/langchain/commit/77209f315efd13442ec51c67719ba37dfaa44511
- Packagegithub.com/langchain-ai/langchain
- Linkhuntr.com/bounties/fa3a2753-57c3-4e08-a176-d7a3ffda28fe
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.