{"id":"CVE-2024-5998","aliases":["CVE-2024-5998","GHSA-f2jm-rw3h-6phg","PYSEC-2024-323","PYSEC-2026-1514"],"related":[],"kind":"vulnerability","state":"published","title":"Deserialization of Untrusted Data in langchain-ai/langchain","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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","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 versions prior to 0.2.4.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2024-09-17T11:50:13.813Z","modified":"2026-07-13T07:26:23.643Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L","score":5.2,"rating":"MEDIUM"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L","score":5.2,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L","score":5.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS: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,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS: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,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L","score":5.2,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-502"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"0.2.9","status":"affected"}],"vendor":"langchain-ai","product":"langchain-ai/langchain","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"0.2.9","status":"affected"}],"vendor":"langchain","product":"langchain","cpe":"cpe:2.3:a:langchain:langchain:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.2.4"}],"ecosystem":"PyPI","package":"langchain-community","purl":"pkg:pypi/langchain-community","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.2.9"}],"vendor":"langchain","product":"langchain","cpe":"cpe:2.3:a:langchain:langchain:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.2.9"}],"ecosystem":"PyPI","package":"langchain","purl":"pkg:pypi/langchain","source":"pysec"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.2.4"}],"ecosystem":"PyPI","package":"langchain-community","purl":"pkg:pypi/langchain-community","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/fa3a2753-57c3-4e08-a176-d7a3ffda28fe","tags":["evidence","exploit","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/langchain-ai/langchain/commit/604dfe2d99246b0c09f047c604f0c63eafba31e7","tags":["fix","patch","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5998","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/langchain-ai/langchain/commit/77209f315efd13442ec51c67719ba37dfaa44511","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/langchain-ai/langchain","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/langchain-community","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-f2jm-rw3h-6phg","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-09-17T13:28:59.648Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-5998","url":"https://www.cve.org/CVERecord?id=CVE-2024-5998","licence":"CVE Terms of Use","modified":"2024-09-17T13:34:15.648Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f2jm-rw3h-6phg","url":"https://github.com/advisories/GHSA-f2jm-rw3h-6phg","licence":"CC-BY-4.0","modified":"2026-07-13T07:26:23.643Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-5998","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5998","licence":"Public domain","modified":"2026-06-17T08:17:04.257Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2024-323","url":"https://osv.dev/vulnerability/PYSEC-2024-323","licence":"CC-BY-4.0","modified":"2026-07-13T07:26:23.643Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1514","url":"https://osv.dev/vulnerability/PYSEC-2026-1514","licence":"CC-BY-4.0","modified":"2026-07-13T07:26:23.643Z"}],"updatedAt":"2026-11-25T22:58:45.500Z","epss":{"score":0.00361,"percentile":0.31874,"date":"2026-12-01T12:00:22.000Z"}}