CVE-2024-5998: LangChain pickle deserialization of untrusted data
Attack on AI2 Disclosed vulnerabilityInfrastructure vulnerabilitySupply chain
A vulnerability in LangChain allows for insecure pickle deserialization of untrusted data via the FAISS.deserialize_from_bytes function. This flaw enables the execution of arbitrary commands on the affected system.
disclosed CVENo confirmed exploitation, so this record is tracked as a disclosed vulnerability and not counted as an incident. It moves into the counts if CISA or the vendor confirms exploitation. Why
Details
- type
- Attack on AIAn AI model, agent or AI-powered product was the thing exploited, abused or leaked.
- categories
- Infrastructure vulnerabilityprimaryCVEs and advisories in AI frameworks, inference servers, MCP servers, AI developer tools and hosting stacks.
- Supply chainMalicious or backdoored models, poisoned packages, unsafe deserialization and other compromised AI dependencies.
- Infrastructure vulnerabilityprimary
- owasp llm top 10
- mitre atlas
- Both rows are derived from the type and categories (OWASP 2025 edition, ATLAS release 2026.09), not classified per record. How
- severity
- 2 · Disclosed vulnerabilityCVE or vendor advisory, patched or patchable, no confirmed exploitation.
- targets
- Framework / tooling
- products
- LangChain
- incident date
- 17 Sep 2024
- first reported
- 17 Sep 2024
- origin
- GitHub Advisory DatabaseVulnerability record from NVD / the GitHub Advisory Database. This product uses the NVD API but is not endorsed or certified by the NVD.
- classifier confidence
- 0.95 · published at or above 0.80; see the methodology
- tags
- CVE-2024-5998 · deserialization · langchain
- record
- created 2026-10-18 07:00Z · updated 2026-10-18 10:04Z · json
Sources · 2
- 2024-09-17CVE-2024-5998: LangChain pickle deserialization of untrusted dataGitHub Advisory Database · github.com/advisories/GHSA-f2jm-rw3h-6phg
- 2024-09-17CVE-2024-5998: A vulnerability in the FAISS.deserialize_from_bytes function of langchain-ai/langchain allows for pickle deserialization of…NVD · nvd.nist.gov/vuln/detail/CVE-2024-5998
Titles and links belong to their publishers. The summary above is written by GCD AI RADAR in its own words; data is CC BY-SA 4.0.
Related incidents
- 2024-10-10CVE-2024-47867: Gradio lacks FRP client integrity checking2 Disclosedon AIInfra vulnSupply chain2 src
- 2024-07-02CVE-2024-4897: RCE vulnerability in lollms-webui via insecure dependency2 Disclosedon AIInfra vulnSupply chain1 src
- 2024-05-13CVE-2024-34359: Llama-cpp-python remote code execution via Jinja2 chat templates2 Disclosedon AIInfra vulnSupply chain2 src
- 2024-04-10Hugging Face Transformers Deserialization Remote Code Execution2 Disclosedon AIInfra vulnSupply chain1 src
- 2025-12-23Hugging Face Transformers Megatron GPT2 Deserialization RCE2 Disclosedon AIInfra vulnSupply chain1 src
- 2025-12-23Hugging Face Transformers Perceiver Model Deserialization RCE2 Disclosedon AIInfra vulnSupply chain1 src