{"id":"CVE-2024-5998","published":"2024-09-17T11:50:13Z","modified":"2024-09-17T13:34:15Z","title":"Deserialization of Untrusted Data in langchain-ai/langchain","vendor":"langchain-ai","product":"langchain-ai/langchain","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.2,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00361,"percentile":0.30621,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://huntr.com/bounties/fa3a2753-57c3-4e08-a176-d7a3ffda28fe","tags":[]},{"url":"https://github.com/langchain-ai/langchain/commit/604dfe2d99246b0c09f047c604f0c63eafba31e7","tags":[]}],"priority":{"score":9.8,"factors":[{"name":"EPSS percentile","points":6.12},{"name":"CVSS severity","points":3.64}]},"vendorSlug":"langchain-ai","affectedVersions":[{"vendor":"langchain-ai","product":"langchain-ai/langchain","versions":[">= unspecified, < 0.2.9"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-17T13:28:59.648989Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"langchain-community","vulnerableRanges":["<0.2.4"],"patched":["0.2.4"],"from":["GHSA-f2jm-rw3h-6phg","PYSEC-2026-1514"],"provenance":"source"},{"ecosystem":"PyPI","package":"langchain","vulnerableRanges":["<0.2.9"],"patched":["0.2.9"],"from":["PYSEC-2024-323"],"provenance":"source"}],"summary":{"text":"The flaw is a deserialization of untrusted data weakness in the FAISS.deserialize_from_bytes function of the langchain-ai/langchain product, which performs pickle deserialization on data that has not been validated. An attacker who can get a crafted serialized payload processed by that function can execute arbitrary operating system commands via os.system, with the attack vector indicating local access, low attack complexity, low privileges, and required user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:07:04Z"},"euvd":{"id":"EUVD-2024-2778","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-28088","published":"2024-03-03","fixed":"0.1.11","kev":false},{"cve":"CVE-2024-8309","published":"2024-10-29","fixed":"0.2.0","kev":false},{"cve":"CVE-2024-2965","published":"2024-06-06","fixed":"0.2.5","kev":false,"link":{"from":"CVE-2024-2965","to":"CVE-2024-5998","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:langchain","fromFixed":"0.2.5","toFixed":"0.2.9","daysApart":103}]}},{"cve":"CVE-2024-5998","published":"2024-09-17","fixed":"0.2.9","kev":false},{"cve":"CVE-2026-45134","published":"2026-05-27","fixed":"0.3.30","kev":false},{"cve":"CVE-2026-55443","published":"2026-06-22","fixed":"1.3.9","kev":false}],"package":"PyPI:langchain"}}