Skip to content
OpenAdvisories
High · 8.6 CVE-2026-34445 EUVD-2026-17985GHSA-538c-55jv-c5g9PYSEC-2026-2240

ONNX: Malicious ONNX models can crash servers by exploiting unprotected object settings.

Published Apr 1, 2026 · Updated Apr 1, 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, the ExternalDataInfo class in ONNX was using Python’s setattr() function to load metadata (like file paths or data lengths) directly from an ONNX model file. It didn’t check if the "keys" in the file were valid. Due to this, an attacker could craft a malicious model that overwrites internal object properties. 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-538c-55jv-c5g9

References