Skip to content
Heist/ feed
Back to feed
High

picklescan - Remote Code Execution via idlelib.pyshell.ModifiedInterpreter.runcode

Type: advisorySources: OSV

picklescan through 0.0.26 fails to detect malicious pickle files that invoke idlelib.pyshell.ModifiedInterpreter.runcode in __reduce__ methods. Attackers can embed undetected code in pickle files that executes arbitrary commands when the file is loaded via pickle.load(), enabling supply chain attacks on PyTorch models and saved Python objects. This is fixed in version 0.0.30.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-71340
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 18:00 UTC · Revision 1

Source evidence

picklescan - Remote Code Execution via idlelib.pyshell.ModifiedInterpreter.runcode

core-osv · Original source

Published 25 Jun 2026, 21:41 UTC

picklescan through 0.0.26 fails to detect malicious pickle files that invoke idlelib.pyshell.ModifiedInterpreter.runcode in __reduce__ methods. Attackers can embed undetected code in pickle files that executes arbitrary commands when the file is loaded via pickle.load(), enabling supply chain attacks on PyTorch models and saved Python objects. This is fixed in version 0.0.30.

osv:CVE-2025-71340
Complete source record
{
  "id": "b42500015d58a02ec5b8bbdc2d0638514ef0bf47894e5ca51a9a459db7ae6687",
  "url": "https://osv.dev/vulnerability/CVE-2025-71340",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "picklescan - Remote Code Execution via idlelib.pyshell.ModifiedInterpreter.runcode",
    "summary": "picklescan through 0.0.26 fails to detect malicious pickle files that invoke idlelib.pyshell.ModifiedInterpreter.runcode in __reduce__ methods. Attackers can embed undetected code in pickle files that executes arbitrary commands when the file is loaded via pickle.load(), enabling supply chain attacks on PyTorch models and saved Python objects. This is fixed in version 0.0.30.",
    "evidence": "osv:CVE-2025-71340",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-71340",
      "aliases": [
        "CVE-2025-71340",
        "GHSA-3gf5-cxq9-w223"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/mmaitre314/picklescan",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1931c2d04eaca8d20597705ff39cab78ba364e4b"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "0.0.26"
                      }
                    ],
                    "source": "DESCRIPTION"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.0.30"
                      }
                    ],
                    "source": "DESCRIPTION"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.0.29",
            "v0.0.28",
            "v0.0.27",
            "v0.0.26",
            "v0.0.25",
            "v0.0.24",
            "v0.0.23",
            "v0.0.22",
            "v0.0.21",
            "v0.0.20",
            "v0.0.19",
            "v0.0.18",
            "v0.0.17",
            "v0.0.15",
            "v0.0.14",
            "v0.0.13",
            "v0.0.12",
            "v0.0.11",
            "v0.0.10",
            "v0.0.9",
            "v0.0.8",
            "v0.0.7",
            "v0.0.6",
            "v0.0.5",
            "v0.0.4",
            "v0.0.3",
            "v0.0.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-71340.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:22.008138640Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/71xxx/CVE-2025-71340.json",
        "https://github.com/mmaitre314/picklescan/security/advisories/GHSA-3gf5-cxq9-w223",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-71340",
        "https://www.vulncheck.com/advisories/picklescan-remote-code-execution-via-idlelib-pyshell-modifiedinterpreter-runcode"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-502"
        ],
        "cna_assigner": "VulnCheck",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/71xxx/CVE-2025-71340.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-71340",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 488043,
  "published_at": "2026-06-25T21:41:08.18+00:00"
}