All reports
High

ONNX Untrusted Model Repository Warnings Suppressed by silent=True in onnx.hub.load() — Silent Supply-Chain Attack

Affected versions

Version ranges need review.

PyPIonnx
Affected versions
<1.21.0rc1 || =0.1 || =0.2 || =0.2.1 || =1.0.0 || =1.0.1 || =1.1.0 || =1.1.1 || =1.1.2 || =1.10.0 || =1.10.1 || =1.10.2 || =1.11.0 || =1.12.0 || =1.13.0 || =1.13.1 || =1.14.0 || =1.14.1 || =1.15.0 || =1.16.0 || =1.16.1 || =1.16.2 || =1.17.0 || =1.18.0 || =1.19.0 || =1.19.1 || =1.19.1rc1 || =1.2.1 || =1.2.2 || =1.2.3 || =1.20.0 || =1.20.0rc1 || =1.20.0rc2 || =1.20.1 || =1.20.1rc1 || =1.3.0 || =1.4.0 || =1.4.1 || =1.5.0 || =1.6.0 || =1.7.0 || =1.8.0 || =1.8.1 || =1.9.0
Fixed version
1.21.0rc1
PyPIonnx
Affected versions
<= 1.20.1
Fixed version
1.21.0rc1
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-28500

Probability of exploitation in the next 30 days: 0.35%

FIRST EPSS · 2026-11-23

Description

What's the issue

Passing silent=True to onnx.hub.load() kills all trust warnings and user prompts. This means a model can be downloaded from any unverified GitHub repo with zero user awareness.

if not _verify_repo_ref(repo) and not silent:
    # completely skipped when silent=True
    print("The model repo... is not trusted")
    if input().lower() != "y":
        return None

On top of that, the SHA256 integrity check is useless here — it validates against a manifest that lives in the same repo the attacker controls, so the hash will always match.

Impact

Any pipeline using hub.load() with silent=True and an external repo string is silently loading whatever the repo owner ships. If that model executes arbitrary code on load, the attacker has access to the machine.

Resolved by removing the feature

References

Links

Credits

  • ZeroXJacks