{"id":"CVE-2024-5998","aliases":["GHSA-f2jm-rw3h-6phg","PYSEC-2024-323","PYSEC-2026-1514"],"url":"https://o3.security/vulnerability/CVE-2024-5998","summary":"Deserialization of Untrusted Data in langchain-ai/langchain","details":"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.","published":"2024-09-17T11:50:13.813Z","modified":"2026-08-08T03:48:08.745906660Z","cvss":{"score":5.2,"severity":"MEDIUM","vector":"CVSS:3.0/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"langchain-community","fixedVersion":"0.2.4"}],"fix":{"url":"https://github.com/langchain-ai/langchain/commit/604dfe2d99246b0c09f047c604f0c63eafba31e7","label":"langchain-ai/langchain@604dfe2"},"references":[{"type":"WEB","url":"https://huntr.com/bounties/fa3a2753-57c3-4e08-a176-d7a3ffda28fe"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/5xxx/CVE-2024-5998.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5998"},{"type":"FIX","url":"https://github.com/langchain-ai/langchain/commit/604dfe2d99246b0c09f047c604f0c63eafba31e7"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-08T03:48:08.745906660Z"}}