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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | onnx | No fix yet | — |
| Debian 13 | onnx | No fix yet | — |
| Debian 12 | onnx | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | onnx | No fix yet | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | pytorch | 2.2.2-14 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | onnx | < 1.21.0 | 1.21.0 | GHSA-cmw6-hcpp-c6jp |