Search

Find a vulnerability

Search criteria

    Related vulnerabilities

    PYSEC-2026-4016

    Vulnerability from pysec - Published: 2026-09-27 02:17 - Updated: 2026-09-30 17:50
    VLAI
    Details

    In MONAI 1.6.0, PersistentDataset (monai/data/dataset.py) explicitly rejects the combination track_meta=True with weights_only=True, forcing users who cache MetaTensors (the default tensor type in MONAI >= 1.0) to run torch.load(hashfile, weights_only=False). Related cache helpers in monai/data/utils.py also call pickle.loads on cached content and derive cache keys with hashlib.md5. As a result, a local user with write access to a shared or world-writable cache_dir (e.g. /tmp/monai_cache, HPC scratch, ~/.cache/monai) can place a malicious pickle file that is deserialized the next time another user's MONAI pipeline reads the cache, resulting in arbitrary code execution in that user's context. All released versions of the monai pip package are affected; no patched version is available as of the advisory.

    Impacted products
    Name purl
    monai pkg:pypi/monai

    {
      "affected": [
        {
          "ecosystem_specific": {},
          "package": {
            "ecosystem": "PyPI",
            "name": "monai",
            "purl": "pkg:pypi/monai"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "1.6.0-NA"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "aliases": [
        "CVE-2026-100841",
        "GHSA-636w-j999-g7x5"
      ],
      "details": "In MONAI 1.6.0, PersistentDataset (monai/data/dataset.py) explicitly rejects the combination track_meta=True with weights_only=True, forcing users who cache MetaTensors (the default tensor type in MONAI \u003e= 1.0) to run torch.load(hashfile, weights_only=False). Related cache helpers in monai/data/utils.py also call pickle.loads on cached content and derive cache keys with hashlib.md5. As a result, a local user with write access to a shared or world-writable cache_dir (e.g. /tmp/monai_cache, HPC scratch, ~/.cache/monai) can place a malicious pickle file that is deserialized the next time another user\u0027s MONAI pipeline reads the cache, resulting in arbitrary code execution in that user\u0027s context. All released versions of the monai pip package are affected; no patched version is available as of the advisory.",
      "id": "PYSEC-2026-4016",
      "modified": "2026-09-30T17:50:08.300Z",
      "published": "2026-09-27T02:17:22.543Z",
      "references": [
        {
          "type": "ADVISORY",
          "url": "https://github.com/Project-MONAI/MONAI/security/advisories/GHSA-636w-j999-g7x5"
        },
        {
          "type": "ADVISORY",
          "url": "https://www.vulncheck.com/advisories/monai-1.6.0-persistentdataset-remote-code-execution-via-pickle-cache"
        }
      ],
      "severity": [
        {
          "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
          "type": "CVSS_V4"
        }
      ]
    }