{"cve":"CVE-2024-5998","nvd":{"published":"2024-09-17T12:15:02.977","modified":"2026-06-17T08:17:04.257","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8},"cwes":["CWE-502"],"references":["https://github.com/langchain-ai/langchain/commit/604dfe2d99246b0c09f047c604f0c63eafba31e7","https://huntr.com/bounties/fa3a2753-57c3-4e08-a176-d7a3ffda28fe"],"products":["langchain:langchain"],"source":"nvd","synced_at":"2026-10-19T21:54:38.012257375+00:00"},"epss":{"cve":"CVE-2024-5998","score":0.00361,"percentile":0.29863,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-f2jm-rw3h-6phg","url":"https://osv.dev/vulnerability/GHSA-f2jm-rw3h-6phg","summary":"LangChain pickle deserialization of untrusted data","modified":"2026-07-13T07:26:23.643495355Z","packages":[{"ecosystem":"PyPI","name":"langchain-community","purl":"pkg:pypi/langchain-community","ranges":["<0.2.4"],"fixed":["0.2.4"]}]},{"id":"PYSEC-2024-323","url":"https://osv.dev/vulnerability/PYSEC-2024-323","summary":"","modified":"2026-07-13T07:26:23.643495355Z","packages":[{"ecosystem":"PyPI","name":"langchain","purl":"pkg:pypi/langchain","ranges":["<0.2.9"],"fixed":["0.2.9"]}]},{"id":"PYSEC-2026-1514","url":"https://osv.dev/vulnerability/PYSEC-2026-1514","summary":"LangChain pickle deserialization of untrusted data","modified":"2026-07-13T07:26:23.643495355Z","packages":[{"ecosystem":"PyPI","name":"langchain-community","purl":"pkg:pypi/langchain-community","ranges":["<0.2.4"],"fixed":["0.2.4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}