You need to agree to share your contact 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.

Tensorizer .tensors dtype-validation PoC (huntr responsible disclosure)

This repository contains a proof-of-concept model file for a responsible security disclosure submitted to huntr regarding coreweave/tensorizer.

Access is gated with manual review so the crafted file is not freely downloadable. It is shared with protectai-bot for huntr triage.

What this is

malicious_tensor.tensors (222 bytes) is a minimal, hand-constructed Tensorizer file whose tensor header declares dtype="O" (numpy object dtype). Every other byte is produced by Tensorizer's own serialization classes, so the file is structurally legitimate.

Loading it causes Tensorizer to construct a numpy object-dtype array over raw file bytes, meaning attacker-controlled bytes are treated as PyObject* pointers. numpy.frombuffer refuses this exact operation by design; Tensorizer reaches around that guard via the low-level numpy.ndarray.__new__ path.

Scope of the claim

This is reported as a latent memory-safety / defense-in-depth defect, not a working RCE. All public deserialization paths currently funnel through to_tensor() โ†’ torch.from_numpy(), which rejects object dtype before the array reaches a caller. That containment is incidental (it lives in PyTorch, not Tensorizer) rather than a designed validation step.

The constructed array is nonetheless genuinely unsafe: accessing an element of it segfaults (SIGSEGV), demonstrated in verify_gc_claim.py.

Files

File Purpose
malicious_tensor.tensors The 222-byte PoC file
build_tensorizer_poc.py Builds the PoC from scratch; --load runs it in a resource-bounded subprocess
verify_gc_claim.py Three-stage isolated-subprocess probe (metadata / GC / element access) that produced the SIGSEGV evidence

Safety

The payload is a repeating 0x41 pattern โ€” a non-canonical, unmapped address, chosen so that a genuine dereference faults rather than corrupting anything real. The file performs no I/O, spawns nothing, and contains no executable payload. It is a crash-reproduction artifact.

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