The dataset viewer is not available because its heuristics could not detect any supported data files. You can try uploading some data files, or configuring the data files location manually.
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
PyTorch Package (.ptpkg) ModelScan Bypass → RCE
MFV Target: #38 PyTorch Package ($1500)
Vulnerability
torch.package.PackageExporter.save_pickle() serializes Python objects via pickle.dumps().
The corresponding PackageImporter.load_pickle() deserializes via pickle.loads().
A malicious .ptpkg file containing a pickle payload with __reduce__ → os.system()
triggers RCE at load time.
ModelScan Blind Spot
Two-layer bypass:
Extension not supported: ModelScan only scans
.bin,.pt,.pth,.ckptfor PyTorch..ptpkgis not recognized.ZIP skip: The PyTorch scanner (
PyTorchUnsafeOpScan.scan()) calls_is_zipfile() → return Nonefor ZIP files..ptpkgis a ZIP archive internally (created bytorch._C.PyTorchFileWriter).
Impact
- CVSS 9.8 (Critical)
- Remote Code Execution during model loading
- Supply chain attack: malicious model on HuggingFace → download →
PackageImporter.load_pickle()→ instant RCE
PoC Files
exploit.py— createsmalicious.ptpkgand verifies RCEmalicious.ptpkg— pre-built PoC file (650+ bytes)
Usage
# Quick test with pre-built file
python3 -c "import torch.package as tpkg; tpkg.PackageImporter('malicious.ptpkg').load_pickle('model', 'model.pkl')"
# Build custom payload
python3 exploit.py
- Downloads last month
- 42