AI and data stack advisories

Severe, 6 weeks1496Projects326

1496 severe, 6 weeks · 326 projects

ONNXGHSA-cmw6-hcpp-c6jp

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

ONNX

CVE-2026-34446 · Published Apr 1, 2026 · updated Sep 10, 2026

Medium4.7
Fix: upgrade to 1.21.0 or later
GitHub advisory

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.

Affected versions

PackageAffectedFixed in
onnx
PyPI
< 1.21.01.21.0
Details and references
CVSS 3.1
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
Severity from
GitHub (reviewed advisory)
Weakness
CWE-22, CWE-61
Also known as
CVE-2026-34446, PYSEC-2026-2241

More ONNX advisories

All ONNX