Downloads · 30 days
0
0xiviel/poc-pytorch-jit-numel
poc-pytorch-jit-numel is a machine learning model from 0xiviel. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Vulnerability: torch/csrc/jit/serialization/unpickler.cpp:583 — numel dtype.itemsize() integer overflow causes undersized storage allocation, leading to heap OOB read/write when loading a crafted TorchScript model.
Downloads · 30 days
0
Access
Public
Updated Feb 13, 2026
Repo size
2.4 KB
Likes
0
Public
Click a slice to open those files.
.py13.8 KB · 75%
From the Hugging Face model README
Vulnerability: torch/csrc/jit/serialization/unpickler.cpp:583 — numel * dtype.itemsize() integer overflow causes undersized storage allocation, leading to heap OOB read/write when loading a crafted TorchScript model.
poc_jit_numel_overflow.py — Full PoC (creates crafted model, demonstrates OOB read + write crash)overflow_model.pt — Pre-built crafted TorchScript modelpip install torch
python poc_jit_numel_overflow.py
w.fill_(0) crashes with SIGSEGV (heap corruption)