CVE-2024-5998

Deserialization of Untrusted Data in langchain-ai/langchain

Published Sep 17, 2024 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-2778 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 GHSA Github GHSA GHSA-f2jm-rw3h-6phg LangChain pickle deserialization of untrusted data
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Metrics epss

{'score': 0.00191}

epss

{'score': 0.00205}

Type Values Removed Values Added
First Time appeared Langchain
Langchain langchain
CPEs cpe:2.3:a:langchain:langchain:*:*:*:*:*:*:*:*
Vendors & Products Langchain
Langchain langchain
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Deserialization of Untrusted Data in langchain-ai/langchain
Weaknesses CWE-502
References
Metrics cvssV3_0

{'score': 5.2, 'vector': 'CVSS:3.0/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
@huntr_ai
Published
Updated
Sep 17, 2024, 1:34 PM
Reserved
Jun 14, 2024, 1:32 PM
Status
Analyzed
Published
Sep 17, 2024, 12:15 PM
Modified
Jun 17, 2026, 8:17 AM