CVE-2024-5998Langchain
High 7.8
Follow: this CVE · Langchain · Langchain We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 7.8
- EPSS
- 0.5% probability of exploitation in 30 days · percentile 39
- Auth required
- Yes
- Published
- Sep 17, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-502
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Langchain.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | langchain |
< 0.2.9 |
0.2.9 |
pip install "langchain>=0.2.9" |
| PyPI | langchain-community |
< 0.2.4 |
0.2.4 |
pip install "langchain-community>=0.2.4" |
| PyPI | langchain-community |
< 0.2.4 |
0.2.4 |
pip install "langchain-community>=0.2.4" |
Per OSV / GitHub Advisories (PYSEC-2024-323, GHSA-f2jm-rw3h-6phg, PYSEC-2026-1514). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| langchain | langchain | < 0.2.9 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- huntr.com Exploit Third Party Advisory