CVE-2024-5998
JSON

5.2medium

Deserialization of Untrusted Data in langchain-ai/langchain

Severity
5.2medium CVSS:3.0 by @huntr_ai
Exploit likelihood
0.36% (higher than 31% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
@huntr_ai
Also known as
GHSA-f2jm-rw3h-6phgPYSEC-2024-323PYSEC-2026-1514

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

Affected

Product or packageVersionsReported by
langchain-ai langchain-ai/langchainfrom unspecified before 0.2.9CVE List
langchain langchainbefore 0.2.9CVE List, NVD
langchain-community (PyPI)before 0.2.4GitHub Advisory Database, PyPA Advisory Database
langchain (PyPI)before 0.2.9PyPA Advisory Database

All scores

@huntr_ai5.2medium CVSS:3.0CVSS:3.0/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L
GitHub5.2high CVSS:3.1CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
PyPA Advisory Database7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
PyPA Advisory Database5.2medium CVSS:3.1CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L
PyPA Advisory DatabaseNot scored CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N

Classification

CWE-502

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

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.

NVD (es)

Una vulnerabilidad en la función FAISS.deserialize_from_bytes de langchain-ai/langchain permite la deserialización de datos no confiables mediante pickle. Esto puede provocar la ejecución de comandos arbitrarios a través de la función os.system. El problema afecta a la última versión del producto.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-5998 changed 2024-09-17CVE Terms of Use
GitHub Advisory DatabaseGHSA-f2jm-rw3h-6phg changed 2026-07-13CC-BY-4.0
NVDCVE-2024-5998 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2024-323 changed 2026-07-13CC-BY-4.0
PyPA Advisory DatabasePYSEC-2026-1514 changed 2026-07-13CC-BY-4.0