Views
No views yet
.tensors file for a responsibly-disclosed
vulnerability in coreweave/tensorizer (tested at
commit 652d3c016c84836bba97153e108821c11428ac40, version 2.12.1), reported via huntr's
Model File Vulnerability program.malicious.tensors is a syntactically valid Tensorizer file whose header/metadata index declares
one tensor (poc_tensor, 200,000 bytes of float32 data), but whose data section has been
truncated to only 50,000 real bytes. The declared data_length for the tensor is left unchanged.1from tensorizer import TensorDeserializer
2
3d = TensorDeserializer("malicious.tensors", verify_hash=False, lazy_load=False)
4t = d["poc_tensor"] # succeeds -- no exception is raisedTensorDeserializer allocates the tensor's backing buffer with torch.empty(...) (uninitialized
memory) sized to the declared data_length, reads however many bytes are actually available
from the stream via readinto(), and never checks that the number of bytes read matches what was
requested. The 150,000 bytes that were never physically present in the file are left as whatever
was already sitting in that memory region of the host process — not zeroed, not an error.tensorizer maintainers / huntr triage team. It is not intended for any other
use.