CVE-2024-5998

Deserialization of Untrusted Data in langchain-ai/langchain

HIGH
7.8
CVSS Score
Published: September 17, 2024 at 11:50 AM UTC
Updated: June 17, 2026 at 08:17 AM UTC
2 products affected across 2 vendorsLangchainLangChain

Using langchain-ai/langchain by langchain-ai?

Get instant alerts when new vulnerabilities affect langchain-ai/langchain - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.4%
SSVC
PoC

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 0.2.9
Affected range stops below 0.2.9, so it looks safe — our inference, not a vendor statement
v < 0.2.9
Affected range stops below 0.2.9, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

SSVC — Action Prioritization

SSVCPoCNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-502

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card