Advisory

GHSA-f2jm-rw3h-6phg

Also known as: CVE-2024-5998, PYSEC-2024-323, PYSEC-2026-1514

Summary

LangChain pickle deserialization of untrusted data

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-09-17 12:30 UTC
Modified
2026-07-13 07:26 UTC

Affected packages and fixes

langchain-community

PyPI · All systems

Affected

  • introduced 0, fixed 0.2.4 (ecosystem)

Fixed versions

0.2.4

Fix

  • Fixed version 0.2.4
    pip install --upgrade langchain-community==0.2.4

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences