Read the docs
TI-2024-05558 Aliases CVE-2024-5998GHSA-f2jm-rw3h-6phg

Deserialization of Untrusted Data in langchain-ai/langchain

Priority HIGH 67CWE-502Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-502.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00361 30th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed langchain-ai/langchain (langchain-ai): 0.2.9langchain-community (PyPI): 0.2.4

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
langchain-ailangchain-ai/langchainbefore 0.2.90.2.9Patch availableCNA
—langchain-community (PyPI)before 0.2.40.2.4Patch availableGHSA-f2jm-rw3h-6phg
  • langchain-ai/langchain Vendorlangchain-ai Affected before 0.2.9 Fixed in 0.2.9 Patch available CNA
  • langchain-community (PyPI) Vendor— Affected before 0.2.4 Fixed in 0.2.4 Patch available GHSA-f2jm-rw3h-6phg

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:langchain:langchain:*:*:*:*:*:*:*:*before 0.2.9Vulnerablelangchain-ai
  • cpe:2.3:a:langchain:langchain:*:*:*:*:*:*:*:* Versions before 0.2.9 Vulnerable ·langchain-ai

Remediation

  • Fix · CNA langchain-ai/langchain (langchain-ai) Fixed in 0.2.9
  • Fix · GHSA-f2jm-rw3h-6phg langchain-community (PyPI) Fixed in 0.2.4 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-5998
  2. 2026-10-03 Alias added: GHSA-f2jm-rw3h-6phg

References

  • TI-2023-20724 An issue in langchain langchain-ai v.0.0.232 and before allows a remote attacker to… CVSS 3.1CRITICAL 9.8
  • TI-2023-20706 An issue in LanChain-ai Langchain v.0.0.245 allows a remote attacker to execute arbitrary… CVSS 3.1CRITICAL 9.8
  • TI-2023-20166 An issue in Harrison Chase langchain v.0.0.194 and before allows a remote attacker to… CVSS 3.1CRITICAL 9.8
  • TI-2023-20136 An issue in LangChain v.0.0.231 allows a remote attacker to execute arbitrary code via the prompt parameter. CVSS 3.1CRITICAL 9.8
  • TI-2023-18185 An issue in langchain v.0.0.171 allows a remote attacker to execute arbitrary code via a… CVSS 3.1CRITICAL 9.8
  • TI-2023-18176 An issue in LangChain before 0.0.236 allows an attacker to execute arbitrary code because… CVSS 3.1CRITICAL 9.8
See all 27 →

Sources