AI and data stack advisories

Severe, 6 weeks1498Projects326

1498 severe, 6 weeks · 326 projects

LangChainGHSA-f2jm-rw3h-6phg

LangChain pickle deserialization of untrusted data

LangChain

CVE-2024-5998 · Published Sep 17, 2024 · updated Jul 13, 2026

High5.2
Fix: upgrade to 0.2.4 or later
GitHub advisory

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.

Affected versions

PackageAffectedFixed in
langchain-community
PyPI
< 0.2.40.2.4
Details and references

More LangChain advisories

All LangChain