{"id":"CVE-2024-5998","state":"PUBLISHED","title":"Deserialization of Untrusted Data in langchain-ai/langchain","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.","publishedAt":"2024-09-17T11:50:13.813Z","updatedAt":"2024-09-17T13:34:15.648Z","severity":{"score":5.2,"label":"Medium","version":"3.0","vector":"CVSS:3.0/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L","source":"@huntr_ai"},"assigner":"@huntr_ai","products":["langchain-ai langchain-ai/langchain"],"affected":[{"vendor":"langchain-ai","product":"langchain-ai/langchain","versions":[{"version":"unspecified","status":"affected","lessThan":"0.2.9","versionType":"custom"}]}],"references":["https://huntr.com/bounties/fa3a2753-57c3-4e08-a176-d7a3ffda28fe","https://github.com/langchain-ai/langchain/commit/604dfe2d99246b0c09f047c604f0c63eafba31e7"],"weaknesses":["CWE-502"],"ingestedAt":"2026-10-29T20:08:12.933Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/5xxx/CVE-2024-5998.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-5998","state":"PUBLISHED","datePublished":"2024-09-17T11:50:13.813Z","dateUpdated":"2024-09-17T13:34:15.648Z","assignerShortName":"@huntr_ai","assignerOrgId":"c09c270a-b464-47c1-9133-acb35b22c19a","dateReserved":"2024-06-14T13:32:32.118Z"},"containers":{"cna":{"title":"Deserialization of Untrusted Data in langchain-ai/langchain","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"langchain-ai","product":"langchain-ai/langchain","versions":[{"version":"unspecified","status":"affected","lessThan":"0.2.9","versionType":"custom"}]}],"references":[{"url":"https://huntr.com/bounties/fa3a2753-57c3-4e08-a176-d7a3ffda28fe"},{"url":"https://github.com/langchain-ai/langchain/commit/604dfe2d99246b0c09f047c604f0c63eafba31e7"}],"metrics":[{"cvssV3_0":{"version":"3.0","attackComplexity":"LOW","attackVector":"PHYSICAL","availabilityImpact":"LOW","confidentialityImpact":"HIGH","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.0/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L","baseScore":5.2,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-502","type":"CWE","lang":"en","description":"CWE-502 Deserialization of Untrusted Data"}]}],"providerMetadata":{"shortName":"@huntr_ai","orgId":"c09c270a-b464-47c1-9133-acb35b22c19a","dateUpdated":"2024-09-17T11:50:13.813Z"},"source":{"advisory":"fa3a2753-57c3-4e08-a176-d7a3ffda28fe","discovery":"EXTERNAL"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"langchain","product":"langchain","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"0.2.9","versionType":"custom"}],"cpes":["cpe:2.3:a:langchain:langchain:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-09-17T13:28:59.648989Z","id":"CVE-2024-5998","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-17T13:34:15.648Z"}}]}}}