Downloads · 30 days
0
dushyant9911/onnx-dos-poc
onnx-dos-poc is a machine learning model from dushyant9911. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
⚠️ SECURITY RESEARCH - DO NOT LOAD THIS MODEL OUTSIDE A SANDBOX
Downloads · 30 days
0
Access
Public
Updated Jul 26, 2026
Repo size
34.2 KB
Likes
0
Public
Click a slice to open those files.
.onnx34.2 KB · 93%
From the Hugging Face model README
⚠️ SECURITY RESEARCH - DO NOT LOAD THIS MODEL OUTSIDE A SANDBOX
Title: Unbounded Recursion in shape_inference::TraverseGraphsToAddExistingSymbols leads to Stack Overflow (DoS)
Affected Library: ONNX (onnx/shape_inference/implementation.cc)
Severity: High (Denial of Service)
The function TraverseGraphsToAddExistingSymbols recursively traverses subgraphs without any depth limit. An attacker can create a malicious ONNX model with deeply nested If nodes and call onnx.shape_inference.infer_shapes(). This causes the C++ stack to overflow, resulting in a Segmentation Fault and crashing the inference server.
crash_model.onnx using onnx.load().onnx.shape_inference.infer_shapes(model).Denial of Service (DoS). An attacker can crash any service that performs shape inference on untrusted ONNX models.
crash_model.onnx - Malicious ONNX model with nested If nodes