5.2medium
Deserialization of Untrusted Data in langchain-ai/langchain
- Severity
- 5.2medium CVSS:3.0 by @huntr_ai
- Exploit likelihood
- 0.36% (higher than 31% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- @huntr_ai
- Also known as
- GHSA-f2jm-rw3h-6phgPYSEC-2024-323PYSEC-2026-1514
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| langchain-ai langchain-ai/langchain | from unspecified before 0.2.9 | CVE List |
| langchain langchain | before 0.2.9 | CVE List, NVD |
| langchain-community (PyPI) | before 0.2.4 | GitHub Advisory Database, PyPA Advisory Database |
| langchain (PyPI) | before 0.2.9 | PyPA Advisory Database |
All scores
| @huntr_ai | 5.2medium CVSS:3.0 | CVSS:3.0/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L |
| GitHub | 5.2high CVSS:3.1 | CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L |
| GitHub | high 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 | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| PyPA Advisory Database | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| PyPA Advisory Database | 5.2medium CVSS:3.1 | CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L |
| PyPA Advisory Database | Not scored 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 |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
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.
NVD (es)
Una vulnerabilidad en la función FAISS.deserialize_from_bytes de langchain-ai/langchain permite la deserialización de datos no confiables mediante pickle. Esto puede provocar la ejecución de comandos arbitrarios a través de la función os.system. El problema afecta a la última versión del producto.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-5998 changed 2024-09-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-f2jm-rw3h-6phg changed 2026-07-13 | CC-BY-4.0 |
| NVD | CVE-2024-5998 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2024-323 changed 2026-07-13 | CC-BY-4.0 |
| PyPA Advisory Database | PYSEC-2026-1514 changed 2026-07-13 | CC-BY-4.0 |