Skip to content
Heist/ feed
Back to feed
High

MONAI's unsafe use of Pickle deserialization may lead to RCE

Type: advisorySources: OSV

MONAI (Medical Open Network for AI) is an AI toolkit for health care imaging. In versions up to and including 1.5.0, the `pickle_operations` function in `monai/data/utils.py` automatically handles dictionary key-value pairs ending with a specific suffix and deserializes them using `pickle.loads()` . This function also lacks any security measures. The deserialization may lead to code execution. As of time of publication, no known fixed versions are available.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-58757
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 02:40 UTC · Revision 1

Source evidence

MONAI's unsafe use of Pickle deserialization may lead to RCE

core-osv · Original source

Published 8 Sept 2025, 23:42 UTC

MONAI (Medical Open Network for AI) is an AI toolkit for health care imaging. In versions up to and including 1.5.0, the `pickle_operations` function in `monai/data/utils.py` automatically handles dictionary key-value pairs ending with a specific suffix and deserializes them using `pickle.loads()` . This function also lacks any security measures. The deserialization may lead to code execution. As of time of publication, no known fixed versions are available.

osv:CVE-2025-58757
Complete source record
{
  "id": "e05d28fe01dac8d58f3bcc9352e6db424f4bb458973041897e91ac81b73b0bb8",
  "url": "https://osv.dev/vulnerability/CVE-2025-58757",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "MONAI's unsafe use of Pickle deserialization may lead to RCE",
    "summary": "MONAI (Medical Open Network for AI) is an AI toolkit for health care imaging. In versions up to and including 1.5.0, the `pickle_operations` function in `monai/data/utils.py` automatically handles dictionary key-value pairs ending with a specific suffix and deserializes them using `pickle.loads()` . This function also lacks any security measures. The deserialization may lead to code execution. As of time of publication, no known fixed versions are available.",
    "evidence": "osv:CVE-2025-58757",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-58757",
      "aliases": [
        "CVE-2025-58757",
        "GHSA-p8cm-mm2v-gwjm",
        "PYSEC-2025-142"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/project-monai/monai",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "d388d1c6fec8cb3a0eebee5b5a0b9776ca59ca83"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "1.5.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "cpe": "cpe:2.3:a:monai:medical_open_network_for_ai:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "1.5.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.5.0",
            "1.5.0rc1",
            "1.4.1rc1",
            "1.4.0",
            "1.4.0rc12",
            "1.4.0rc11",
            "1.4.0rc10",
            "1.4.0rc9",
            "1.4.0rc8",
            "1.4.0rc7",
            "1.4.0rc6",
            "1.4.0rc5",
            "1.4.0rc4",
            "1.4.0rc3",
            "1.4.0rc2",
            "1.4.0rc1",
            "1.3.3rc1",
            "1.3.1",
            "1.3.1rc8",
            "1.3.1rc7",
            "1.3.1rc6",
            "1.3.1rc5",
            "1.3.1rc4",
            "1.3.1rc3",
            "1.3.1rc2",
            "1.3.1rc1",
            "1.3.0",
            "1.3.0rc5",
            "1.3.0rc4",
            "1.3.0rc3",
            "1.3.0rc2",
            "1.3.0rc1",
            "1.2.0",
            "1.2.0rc7",
            "1.2.0rc6",
            "1.2.0rc5",
            "1.2.0rc4",
            "1.2.0rc2",
            "1.2.0rc1",
            "1.1.0",
            "1.1.0rc2",
            "1.1.0rc1",
            "1.0.0rc3",
            "1.0.0rc2",
            "1.0.0rc1",
            "0.9.1",
            "0.9.1rc5",
            "0.9.1rc4",
            "0.9.1rc3",
            "0.9.1rc2",
            "0.9.1rc1",
            "0.9.0",
            "0.9.0rc3",
            "0.9.0rc2",
            "0.9.0rc1",
            "0.8.1",
            "0.8.1rc5",
            "0.8.1rc4",
            "0.8.1rc3",
            "0.8.1rc2",
            "0.8.1rc1",
            "0.8.0",
            "0.8.0rc3",
            "0.8.0rc2",
            "0.8.0rc1",
            "0.7.0",
            "0.7.0rc5",
            "0.7.0rc4",
            "0.7.0rc3",
            "0.7.0rc2",
            "0.7.0rc1",
            "0.6.0",
            "0.6.0rc2",
            "0.6.0rc1",
            "0.5.2",
            "0.5.1",
            "0.5.0",
            "0.5.0rc5",
            "0.5.0rc4",
            "0.5.0rc3",
            "0.5.0rc2",
            "0.5.0rc1",
            "0.4.0",
            "0.4.0rc2",
            "0.4.0rc1",
            "0.3.0",
            "0.3.0rc4",
            "0.3.0rc3",
            "0.3.0rc2",
            "0.3.0rc1",
            "0.2.0",
            "0.2.0rc3",
            "0.2.0rc2",
            "0.2.0rc1",
            "0.1.0",
            "0.1.0rc2",
            "0.1.0rc1",
            "0.1a1.dev9",
            "0.1a1.dev8",
            "0.1a1.dev7"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-58757.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:49.282467024Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/58xxx/CVE-2025-58757.json",
        "https://github.com/Project-MONAI/MONAI/security/advisories/GHSA-p8cm-mm2v-gwjm",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-58757"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-502"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/58xxx/CVE-2025-58757.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-58757",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 517438,
  "published_at": "2025-09-08T23:42:11.009+00:00"
}