Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-23001-Hugging-Face-Transformers-Model-Deserialization-Arbitrary-Code-via-Pickle- — Proof-of-concept for CVE-2026-23001: demonstrates RCE through unsafe pickle deserialization in Hugging Face Transformers by crafting a malicious model that executes code when loaded with torch.load(). | Kitploit
Tools/GitHubGitHub/george0papasotiriou/cve-2026-23001-hugging-face-transformers-model-deserialization-arbitrary-code-via-pickle-
Payload GenerationExploitationSupply Chain SecurityAI Security
GitHubgeorge0papasotiriou/cve-2026-23001-hugging-face-transformers-model-deserialization-arbitrary-code-via-pickle-

CVE-2026-23001-Hugging-Face-Transformers-Model-Deserialization-Arbitrary-Code-via-Pickle-

Proof-of-concept for CVE-2026-23001: demonstrates RCE through unsafe pickle deserialization in Hugging Face Transformers by crafting a malicious model that executes code when loaded with torch.load().

View Repository

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
11 month agoNot yet reviewed
Share

CVE-2026-23001 – Hugging Face Transformers Model Deserialization RCE

Severity: Critical

Overview

Hugging Face models saved with torch.save() use Python’s pickle serialization, which is inherently unsafe. If a user downloads a seemingly legitimate model from a repository, loading it can trigger arbitrary code execution, compromising the entire environment.

Vulnerability Details

  • Type: Insecure Deserialization
  • Impact: Remote Code Execution
  • Root Cause: torch.load() does not sandbox the pickle deserialization; attackers can inject a __reduce__ method that executes shell commands.

Exploit Demonstration

  1. Generate a malicious model:
    root@kitploit:~
    pip install torch
    python malicious_model_card.py
    
  2. Simulate the victim loading the model:
    root@kitploit:~
    python exploit_hf_pickle.py
    

The file /tmp/hf_pwned appears, proving code execution.

Download Tool