Deserialization of Untrusted Data in langchain-ai/langchain (langchain-ai langchain-ai/langchain)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.36 % · percentile 30 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- @huntr_ai
- NVD status
- Analyzed
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.
Weaknesses (CWE)
- CWE-502 — Deserialization of Untrusted Data
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| 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 | @huntr_ai |
| 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 | NVD · nvd@nist.gov (Primary) |
| 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 | NVD · security@huntr.dev (Secondary) |
Advisories
- GHSA-f2jm-rw3h-6phg — LangChain pickle deserialization of untrusted data
- PYSEC-2024-323 — 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
- PYSEC-2026-1514 — LangChain pickle deserialization of untrusted data
European references
- ENISA EUVD · EUVD-2024-2778
- GCVE · GCVE-0-2024-5998
CERT-FR advisories
- CERTFR-2025-AVI-0538 — Multiples vulnérabilités dans VMware Tanzu · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:a:langchain:langchain:*:*:*:*:*:*:*:*< 0.2.9
Affected products
| Product | Versions |
|---|---|
| langchain-ai · langchain-ai/langchain | affected unspecified < 0.2.9 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |