All reports
High

LangChain pickle deserialization of untrusted data

Affected versions

Version ranges need review.

Affected versions
< 0.2.4
Fixed version
0.2.4
Affected versions
<0.2.4
Fixed version
0.2.4
Affected versions
<0.2.9
Fixed version
0.2.9

Exploitation

CVE-2024-5998

Probability of exploitation in the next 30 days: 0.36%

FIRST EPSS · 2026-11-20

Description

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.

Links

Credits

  • BarrensZeppelin