{
 "id": "AIR-2024-0167",
 "slug": "cve-2024-5998-langchain-pickle-deserialization-of-untrusted",
 "title": "CVE-2024-5998: LangChain pickle deserialization of untrusted data",
 "summary": "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.",
 "type": "attack_on_ai",
 "categories": [
  "infra_vuln",
  "supply_chain"
 ],
 "severity": 2,
 "targets": [
  "framework_or_tooling"
 ],
 "products": [
  "LangChain"
 ],
 "incident_date": "2024-09-17",
 "incident_date_precision": "day",
 "first_reported": "2024-09-17",
 "sources": [
  {
   "url": "https://github.com/advisories/GHSA-f2jm-rw3h-6phg",
   "publisher": "GitHub Advisory Database",
   "title": "CVE-2024-5998: LangChain pickle deserialization of untrusted data",
   "published_at": "2024-09-17"
  },
  {
   "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-5998",
   "publisher": "NVD",
   "title": "CVE-2024-5998: A vulnerability in the FAISS.deserialize_from_bytes function of langchain-ai/langchain allows for pickle deserialization of…",
   "published_at": "2024-09-17"
  }
 ],
 "source_count": 2,
 "confidence": 0.95,
 "status": "published",
 "origin": "seed_ghsa",
 "tags": [
  "CVE-2024-5998",
  "deserialization",
  "langchain"
 ],
 "created_at": "2026-10-18T07:00:14.101Z",
 "updated_at": "2026-10-18T10:04:21.885Z"
}
