CVE-2024-5998 json
Deserialization of Untrusted Data in langchain-ai/langchain
published 2024-09-17 2 y ago modified 2026-07-13 3 mo ago also GHSA-f2jm-rw3h-6phg , PYSEC-2024-323 , PYSEC-2026-1514 , EUVD-2024-2778
- cvss
- 5.2
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 30%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi langchain-community 0.2.4
- pypi langchain 0.2.9
- langchain-ai langchain-ai/langchain 0.2.9
- langchain langchain 0.2.9
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.36% chance of exploitation in the next 30 days, higher than 30% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- huntr.com https://huntr.com/bounties/fa3a2753-57c3-4e08-a176-d7a3ffda28fe referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 5.2 | CVSS:3.0/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 5.2 | CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L |
| OSV | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 5.2 | CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | langchain-community | <0.2.4 |
0.2.4 |
| pypi | langchain | <0.2.9 |
0.2.9 |
Affected products
- langchain-ai langchain-ai/langchain
- langchain langchain
Classification
- Weakness
-
- CWE-502 Deserialization of Untrusted Data
References
-
github.com
/langchain-ai/langchain/commit/604dfe2d99246b0c09f047c604f0c63eafba31e7
web, patch
-
github.com
/langchain-ai/langchain/commit/77209f315efd13442ec51c67719ba37dfaa44511
web
-
huntr.com
/bounties/fa3a2753-57c3-4e08-a176-d7a3ffda28fe
web, exploit, third-party-advisory, evidence
-
nvd.nist.gov
/vuln/detail/CVE-2024-5998
advisory
-
github.com
/langchain-ai/langchain
package
-
pypi.org
/project/langchain-community
package
-
github.com
/advisories/GHSA-f2jm-rw3h-6phg
advisory
Sources
- CVE List CVE-2024-5998
- GitHub Advisory GHSA-f2jm-rw3h-6phg
- NVD CVE-2024-5998
- OSV PYSEC-2026-1514
- OSV PYSEC-2024-323
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.