Advisory

PYSEC-2026-1514

Also known as: CVE-2024-5998, GHSA-f2jm-rw3h-6phg, PYSEC-2024-323

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

Medium Basis: CVSS v3 score 5.2, vector CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L

Dates

Published
2026-07-07 14:34 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: PyPA Advisory Database · CC BY 4.0

Sources & licences