CVE-2024-5998
LangChain pickle deserialization of untrusted data
5.2
MEDIUM
CVSS 3.1
EPSS 0.09%
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 versions prior to 0.2.4.
How to fix CVE-2024-5998
To remediate CVE-2024-5998, upgrade the affected package to a fixed version below.
- —upgrade to 0.2.4 or later
Is CVE-2024-5998 being exploited?
Low — EPSS is 0.1%, meaning exploitation activity has not been observed at scale.
Affected packages (1)
- from 0, < 0.2.4
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | MEDIUM5.2 | CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L |