GHSA-cmw6-hcpp-c6jp

Suggest an improvement
Source
https://github.com/advisories/GHSA-cmw6-hcpp-c6jp
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-cmw6-hcpp-c6jp/GHSA-cmw6-hcpp-c6jp.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-cmw6-hcpp-c6jp
Aliases
  • CVE-2026-34446
Related
Published
2026-04-01T21:13:37Z
Modified
2026-04-04T00:14:20.384367331Z
Severity
  • 4.7 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N CVSS Calculator
Summary
ONNX: Arbitrary File Read via ExternalData Hardlink Bypass in ONNX load
Details

Summary

The issue is in onnx.load — the code checks for symlinks to prevent path traversal, but completely misses hardlinks, which is the problem, since a hardlink looks exactly like a regular file on the filesystem.

The Real Problem

The validator in onnx/checker.cc only calls is_symlink() and never checks the inode or st_nlink, so a hardlink walks right through every security check without any issues.

Impact

Especially dangerous in AI supply chain scenarios like HuggingFace — a single malicious model is enough to silently steal secrets from the victim's machine without them noticing anything.

Database specific
{
    "github_reviewed": true,
    "nvd_published_at": "2026-04-01T18:16:30Z",
    "cwe_ids": [
        "CWE-22",
        "CWE-61"
    ],
    "github_reviewed_at": "2026-04-01T21:13:37Z",
    "severity": "MODERATE"
}
References

Affected packages

PyPI / onnx

Package

Affected ranges

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

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
1.21.0rc1
1.21.0rc2
1.21.0rc3
1.21.0rc4

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-cmw6-hcpp-c6jp/GHSA-cmw6-hcpp-c6jp.json"
last_known_affected_version_range
"<= 1.20.1"