CVE-2024-5998
HIGH 7.8CVSS 3.1LangChain pickle deserialization of untrusted data
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.
- Published
- 17 Sep 2024
- Last modified
- 13 Jul 2026
- Assigned by
- security@huntr.dev
- NVD status
- Analyzed
- Weakness
- CWE-502
- Also known as
- GHSA-f2jm-rw3h-6phgPYSEC-2024-323PYSEC-2026-1514
- Sources
- NVDJSONOSV GHSA-f2jm-rw3h-6phgJSONOSV PYSEC-2024-323JSONOSV PYSEC-2026-1514JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | 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 | PyPA | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.2 | CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L |
| OSV | PyPA | CVSS 3.1 | MEDIUM 5.2 | CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | MEDIUM 5.2 | CVSS:3.0/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | langchain | langchaincpe:2.3:a:langchain:langchain:*:*:*:*:*:*:*:* |
< 0.2.9 | 0.2.9 |
| OSV | PyPI | langchain-community | < 0.2.4 | 0.2.4 |
| OSV | PyPI | langchain | < 0.2.9 | 0.2.9 |
References
- https://github.com/langchain-ai/langchain/commit/604dfe2d99246b0c09f047c604f0c63eafba31e7 · Patch, WEB, FIX
- https://huntr.com/bounties/fa3a2753-57c3-4e08-a176-d7a3ffda28fe · Exploit, Third Party Advisory, WEB, EVIDENCE
- https://nvd.nist.gov/vuln/detail/CVE-2024-5998 · ADVISORY
- https://github.com/langchain-ai/langchain/commit/77209f315efd13442ec51c67719ba37dfaa44511 · WEB
- https://github.com/langchain-ai/langchain · PACKAGE
- https://pypi.org/project/langchain-community · PACKAGE
- https://github.com/advisories/GHSA-f2jm-rw3h-6phg · ADVISORY
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 17 Sep 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 17 Sep 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 17 Sep 2024)