All reports
Medium

ONNX: Arbitrary File Read via ExternalData Hardlink Bypass in ONNX load

Affected versions

Version ranges need review.

PyPIonnx
Affected versions
<1.21.0 || =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.21.0rc1 || =1.21.0rc2 || =1.21.0rc3 || =1.21.0rc4 || =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.0
PyPIonnx
Affected versions
<= 1.20.1
Fixed version
1.21.0
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-34446

Probability of exploitation in the next 30 days: 0.19%

FIRST EPSS · 2026-11-23

Description

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.

Links

Credits

  • ZeroXJacks