Skip to content
OpenAdvisories
Medium · 4.7 CVE-2026-34446 EUVD-2026-17987GHSA-cmw6-hcpp-c6jpPYSEC-2026-2241

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

Published Apr 1, 2026 · Updated Apr 2, 2026 · Assigned by GitHub_M

Description

Open Neural Network Exchange (ONNX) is an open standard for machine learning interoperability. Prior to version 1.21.0, there is an issue in onnx.load, the code checks for symlinks to prevent path traversal, but completely misses hardlinks because a hardlink looks exactly like a regular file on the filesystem. This issue has been patched in version 1.21.0.

Affected products

VendorProductAffectedFixed
onnx onnx < 1.21.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 onnx No fix yet —
Debian 13 onnx No fix yet —
Debian 12 onnx No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 onnx No fix yet —
Ubuntu 26.04 LTS onnx No fix yet —
Ubuntu 25.10 onnx No fix yet —
Ubuntu 22.04 LTS onnx No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS onnx No fix yet —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 pytorch 2.2.2-14 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI onnx < 1.21.0 1.21.0 GHSA-cmw6-hcpp-c6jp

References