You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

PyTorch .pt2 RCE PoC

Security Research โ€” Do Not Use Maliciously

Arbitrary code execution via torch.export.load() on crafted .pt2 files. torch.export.load internally calls torch.load(weights_only=False) for pickle weights.

Files

  • poc_pt2_rce.py โ€” End-to-end PoC
  • malicious.pt2 โ€” Crafted .pt2 that creates /tmp/pt2_rce_proof.txt

Test

pip install torch>=2.10.0
python3 poc_pt2_rce.py
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support