Browse / Unsafe Model Loading and Supply Chain / CVE-2026-28500
ONNX Untrusted Model Repository Warnings Suppressed by silent=True in onnx.hub.load() — Silent Supply-Chain Attack
- Class
- Unsafe Model Loading and Supply Chain (filed by a model that read the advisory)
- Technique
- Code and command execution
- Affected
- onnx (PyPI)
- Gets past
- Approval or confirmation prompt
- CVSS
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
- EPSS
- 0.4% chance of exploitation in 30 days
How it works, in short
Silent mode on the hub loader skips the untrusted-repository prompt, so models from any repo load unnoticed and the checksum comes from the same attacker-controlled repo. (Our summary, written by a model. The source text is below.)
Details
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 - Write-up
References
- https://github.com/onnx/onnx/security/advisories/GHSA-hqmj-h5c6-369m
- https://nvd.nist.gov/vuln/detail/CVE-2026-28500
- https://github.com/ZeroXJacks/CVEs/blob/main/2026/CVE-2026-28500.md
- https://github.com/onnx/onnx
- https://github.com/pypa/advisory-database/tree/main/vulns/onnx/PYSEC-2026-103.yaml
Source: GitHub Advisory Database, used under CC BY 4.0.