MONAI through 1.6.0 PersistentDataset Remote Code Execution via Pickle Cache
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-100841
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 05:58 UTC · Revision 1
Source evidence
MONAI through 1.6.0 PersistentDataset Remote Code Execution via Pickle Cache
core-osv · Original sourcePublished 27 Sept 2026, 01:28 UTC
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.
osv:CVE-2026-100841
Complete source record
{
"id": "cc2b52ead29c5bba730e653e86cbb1fa8f1ce143d170526475ac1e2af0fa538c",
"url": "https://osv.dev/vulnerability/CVE-2026-100841",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "MONAI through 1.6.0 PersistentDataset Remote Code Execution via Pickle Cache",
"summary": "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.",
"evidence": "osv:CVE-2026-100841",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-100841",
"aliases": [
"CVE-2026-100841",
"GHSA-636w-j999-g7x5",
"PYSEC-2026-4016"
],
"metrics": [
{
"type": "CVSS_V4",
"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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/project-monai/monai",
"type": "GIT",
"events": [
{
"introduced": "eccefc57550b111ed781d82249dfe77872a0e918"
},
{
"last_affected": "eccefc57550b111ed781d82249dfe77872a0e918"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "1.6.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"cpe": "cpe:2.3:a:project-monai:monai:1.6.0:-:*:*:*:*:*:*",
"range": [
{
"introduced": "1.6.0-NA"
},
{
"last_affected": "1.6.0-NA"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"1.6.0-NA",
"1.6.0rc1",
"1.6.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-100841.json"
}
}
],
"modified": "2026-10-28T02:30:26.479642226Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100841.json",
"https://github.com/Project-MONAI/MONAI/security/advisories/GHSA-636w-j999-g7x5",
"https://nvd.nist.gov/vuln/detail/CVE-2026-100841",
"https://www.vulncheck.com/advisories/monai-1.6.0-persistentdataset-remote-code-execution-via-pickle-cache"
],
"provider_metadata": {
"cwe_ids": [
"CWE-502"
],
"cna_assigner": "VulnCheck",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100841.json"
}
},
"related_cves": [
{
"value": "CVE-2026-100841",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 492895,
"published_at": "2026-09-27T01:28:37.499+00:00"
}