Advisory

PYSEC-2024-323

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

Summary

The record has no summary.

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 the latest version of the product.

Severity

High Basis: CVSS v3 score 7.8, vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Dates

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

Affected packages and fixes

langchain

PyPI · All systems

Affected

  • introduced 0, fixed 0.2.9 (ecosystem)

Fixed versions

0.2.9

Fix

  • Fixed version 0.2.9
    pip install --upgrade langchain==0.2.9

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