{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-5998","id":"CVE-2024-5998","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.","descriptionLong":"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","updated":"2026-10-28T02:31:08.676365618Z","reserved":"2024-06-14T13:32:32.118Z","status":"Analyzed","rejected":false,"assigner":"@huntr_ai","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"4.0","score":null,"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":"medium","source":"GitHub"},{"version":"4.0","score":null,"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":"medium","source":"OSV"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":5.2,"vector":"CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L","rating":"medium","source":"GitHub"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":5.2,"vector":"CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L","rating":"medium","source":"OSV"},{"version":"3.0","score":5.2,"vector":"CVSS:3.0/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L","rating":"medium","source":"@huntr_ai"},{"version":"3.0","score":5.2,"vector":"CVSS:3.0/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L","rating":"medium","source":"huntr.dev"},{"version":"3.0","score":5.2,"vector":"CVSS:3.0/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L","rating":"medium","source":"OSV"}],"rating":"high","products":["langchain-ai/langchain"],"affectedProducts":[{"vendor":"langchain-ai","product":"langchain-ai/langchain","defaultStatus":null,"versions":[{"version":"unspecified","lessThan":"0.2.9","status":"affected","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"langchain-community","purl":"pkg:pypi/langchain-community","ranges":["<0.2.4"],"fixed":["0.2.4"],"advisory":"GHSA-f2jm-rw3h-6phg"},{"ecosystem":"PyPI","name":"langchain","purl":"pkg:pypi/langchain","ranges":["<0.2.9"],"fixed":["0.2.9"],"advisory":"PYSEC-2024-323"}],"cwes":["CWE-502"],"aliases":["GHSA-f2jm-rw3h-6phg","PYSEC-2024-323","PYSEC-2026-1514"],"references":[{"url":"https://huntr.com/bounties/fa3a2753-57c3-4e08-a176-d7a3ffda28fe","tags":["Exploit","Third Party Advisory","web","evidence"]},{"url":"https://github.com/langchain-ai/langchain/commit/604dfe2d99246b0c09f047c604f0c63eafba31e7","tags":["Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/5xxx/CVE-2024-5998.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5998","tags":["advisory"]},{"url":"https://github.com/langchain-ai/langchain/commit/77209f315efd13442ec51c67719ba37dfaa44511","tags":["web"]},{"url":"https://github.com/langchain-ai/langchain","tags":["package"]},{"url":"https://pypi.org/project/langchain-community","tags":["package"]},{"url":"https://github.com/advisories/GHSA-f2jm-rw3h-6phg","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00361,"epssPercentile":0.30377,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-5998","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5998","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-5998","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-f2jm-rw3h-6phg","ok":true,"note":"GHSA-f2jm-rw3h-6phg"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-5998","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}