CVE-2024-5998
published medium CVSS 3.0 · 5.2Deserialization of Untrusted Data in langchain-ai/langchain
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 5.2 / 10
- Severity
- medium
- Provider
- @huntr_ai · cna
- Vector string
- CVSS:3.0/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| langchain-ai | langchain-ai/langchain | unspecified to < 0.2.9 (affected · custom) | @huntr_ai · cna |
| langchain | langchain | 0 to < 0.2.9 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-502 CWE-502 Deserialization of Untrusted Data
References
2Provider assertions
2@huntr_ai · cna
Deserialization of Untrusted Data in langchain-ai/langchain
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- b09c8fce875523f2a9135085ded7dff8145a3859d02befe14ebdaa47f36fa87a
- Ingested
- 23 Sep 2026, 08:33:03 UTC
- Source record
- Official CVE record