GHSA-hqmj-h5c6-369m

Suggest an improvement
Source
https://github.com/advisories/GHSA-hqmj-h5c6-369m
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-hqmj-h5c6-369m/GHSA-hqmj-h5c6-369m.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-hqmj-h5c6-369m
Aliases
Downstream
CGA (9)
Published
2026-03-16T16:23:28Z
Modified
2026-09-10T03:50:39Z
Severity
  • 8.6 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N CVSS Calculator
Summary
ONNX Untrusted Model Repository Warnings Suppressed by silent=True in onnx.hub.load() — Silent Supply-Chain Attack
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

Database specific
{
    "cwe_ids":  [
        "CWE-345",
        "CWE-494",
        "CWE-693"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-03-16T16:23:28Z",
    "nvd_published_at":  "2026-03-18T02:16:24Z",
    "severity":  "HIGH"
}
References

Affected packages

PyPI / onnx

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.21.0rc1

Affected versions

0.*
0.1
0.2
0.2.1
1.*
1.0.0
1.0.1
1.1.0
1.1.1
1.1.2
1.2.1
1.2.2
1.2.3
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
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.1rc1
1.19.1
1.20.0rc1
1.20.0rc2
1.20.0
1.20.1rc1
1.20.1

Database specific

last_known_affected_version_range
"<= 1.20.1"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-hqmj-h5c6-369m/GHSA-hqmj-h5c6-369m.json"