Skip to main content

Onnx EUVDEUVD-2026-17985

| CVE-2026-34445 HIGH
Improper Input Validation (CWE-20)
2026-04-01 GitHub_M GHSA-538c-55jv-c5g9
8.6
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious ONNX model file
  2. Delivery
    Upload or distribute model to victim
  3. Exploit
    Load model via ONNX parser
  4. Execution
    setattr() overwrites internal properties
  5. Impact
    Execute arbitrary code or deny service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
Exploitation Conditions

Attacker crafts a malicious ONNX model file and sends it to a victim running ONNX versions prior to 1.21.0. Victim must load/parse the model using ExternalDataInfo class. No authentication required; remote unauthenticated exploitation via malicious .onnx file.

Impact

The CVSS 8.6 score reflects high severity driven by network accessibility (AV:N), low attack complexity (AC:L), and no authentication requirement (PR:N). The attack requires no user interaction (UI:N), making it exploitable through automated model processing pipelines. Real-world risk is elevated because ONNX models are frequently shared via model repositories, research collaborations, and production ML systems that ingest third-party models. The confidentiality and integrity impacts are rated Low (C:L/I:L), but availability impact is High (A:H), suggesting the primary risk is denial-of-service through corruption of object state leading to crashes or infinite loops. While no CISA KEV listing or public exploit exists at time of analysis, the technical barrier to exploitation is minimal-attackers need only modify protobuf metadata fields. Organizations accepting ONNX models from untrusted sources (public repositories, external partners, user uploads) face immediate risk. The Microsoft tag suggests potential impact on Azure ML or related services. SSVC assessment: exploitation status is proof-of-concept (POC construction trivial), automatable (model ingestion often automated), technical impact is partial (DoS primary concern), making this a priority for patching in environments processing external models.

Exploit ScenarioDerived

An attacker publishes a malicious ONNX model to a public repository or sends it to a target organization, advertising it as a pre-trained model for image classification. When a data scientist or automated ML pipeline loads this model using the vulnerable onnx library (versions prior to 1.21.0), the crafted ExternalDataInfo metadata overwrites internal object properties such as file path validation flags or memory allocation limits. This triggers a denial-of-service condition causing the model loader to crash or enter an infinite loop, disrupting production inference services. In more sophisticated attacks, manipulation of object attributes could leak file system paths or internal configuration data through error messages, enabling reconnaissance for follow-on attacks. No user interaction is required beyond the standard model loading operation, and no authentication is necessary if the model is obtained from public sources or processed automatically.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 01, 2026

Arbitrary attribute injection in ONNX Python library (versions prior to 1.21.0) allows unauthenticated remote attackers to manipulate internal object properties by embedding malicious metadata in ONNX model files, resulting in potential information disclosure, data integrity violations, and high availability impact (CVSS 8.6). The vulnerability stems from unchecked use of Python's setattr() with externally-controlled keys during ExternalDataInfo deserialization. No public exploit code or CISA KEV listing identified at time of analysis, but proof-of-concept development is trivial given the straightforward nature of Python attribute manipulation. EPSS data not provided, but the unauthenticated network-accessible attack vector and low complexity suggest material risk for organizations processing untrusted ONNX models.

RemediationAI

Organizations must upgrade the ONNX Python package to version 1.21.0 or later, which implements input validation for ExternalDataInfo attribute keys per the patch commit e30c6935d67cc3eca2fa284e37248e7c0036c46b available at https://github.com/onnx/onnx/commit/e30c6935d67cc3eca2fa284e37248e7c0036c46b. The fix is delivered through pull request 7751 (https://github.com/onnx/onnx/pull/7751) and restricts setattr() usage to a whitelist of legitimate metadata fields. For environments unable to immediately upgrade, implement strict input validation by scanning ONNX model files for unexpected metadata keys before deserialization, restrict model sources to trusted repositories with integrity verification, and deploy sandboxed execution environments with resource limits to contain potential availability impacts. Review the GitHub Security Advisory at https://github.com/onnx/onnx/security/advisories/GHSA-538c-55jv-c5g9 for additional vendor guidance on detection and migration strategies.

Affected VersionsENISA

onnx < 1.21.0

Affected Packages

pypi onnx fix: 1.21.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

ONNX is a widely-adopted open standard for representing machine learning models, enabling interoperability across frameworks like PyTorch, TensorFlow, and scikit-learn. The vulnerability resides in the ExternalDataInfo class, which handles metadata for externally stored tensor data (file paths, offsets, data lengths). The implementation used Python's setattr(object, key, value) to dynamically assign attributes based on key-value pairs parsed directly from the ONNX protobuf model file without validating whether these keys correspond to legitimate metadata fields. This represents a classic CWE-20 (Improper Input Validation) flaw where untrusted data controls object state. An attacker crafting a malicious .onnx file can inject arbitrary attribute names, potentially overwriting critical internal properties like __class__, __dict__, or application-specific control flow variables. The affected CPE (cpe:2.3:a:onnx:onnx) covers the Python onnx package prior to version 1.21.0, used in ML pipelines for model conversion, validation, and inference deployment.

Know when Onnx gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 8.6 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
SUSE HIGH
Red Hat 7.3 MEDIUM

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
High

Lifecycle Timeline

2
Patch released
Apr 02, 2026 - 02:30 nvd
Patch available
CVE Published
Apr 01, 2026 - 17:30 nvd
HIGH 8.6

DescriptionGitHub Advisory

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.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 20 pypi packages depend on onnx (14 direct, 6 indirect)

Ecosystem-wide dependent count for version 1.21.0.

Executive ViewAI

Why It Matters

CVE-2026-34445 affects ONNX Python library versions before 1.21.0, enabling unauthenticated attackers to inject arbitrary attributes into model objects through specially crafted ONNX files, potentially compromising data integrity and system availability for any organization that processes untrusted machine learning models. Organizations using ONNX for model inference or processing should treat this as a material risk given the network-accessible attack vector and absence of authentication requirements.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict ONNX model file ingestion to cryptographically signed, internally-controlled model sources only; (2) Isolate ONNX processing to sandboxed or containerized environments with minimal privilege and network access; (3) Implement strict schema validation and serialization checks before ExternalDataInfo deserialization; (4) Monitor process execution and file system changes during model loading operations for anomalous attribute access patterns.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

43
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +43
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Onnx

View all
CVE-2024-5187 HIGH POC
8.8 Jun 06

A vulnerability in the `download_model_with_test_data` function of the onnx/onnx framework, version 1.16.0, allows for a

CVE-2026-49114 MEDIUM POC
6.8 Aug 21

Symlink-following arbitrary file write in ONNX's save_external_data function (onnx/external_data_helper.py) allows a loc

CVE-2024-27319 CRITICAL
9.1 Feb 23

Versions of the package onnx before and including 1.15.0 are vulnerable to Out-of-bounds Read as the ONNX_ASSERT and ONN

CVE-2024-27318 HIGH
7.5 Feb 23

Versions of the package onnx before and including 1.15.0 are vulnerable to Directory Traversal as the external_data fiel

CVE-2026-115920 MEDIUM
6.2 Oct 26

Out-of-bounds read in ONNX ConvTranspose shape inference (convTransposeShapeInference and convTransposeShapeInference_op

CVE-2026-115919 MEDIUM
6.2 Oct 26

Out-of-bounds read in ONNX's legacy shape-inference path allows an attacker-supplied model to crash a process that calls

CVE-2026-115922 MEDIUM
6.2 Oct 26

Memory exhaustion denial of service in ONNX prior to 1.22.0: the Python tensor-materialization helpers _unpack_2bit() an

CVE-2026-115921 MEDIUM
6.2 Oct 26

Shape inference in the ONNX library (versions 1.4.0 through 1.21.0) mishandles the required Scan attribute num_scan_inpu

CVE-2026-137667 LOW POC
2.1 Nov 26

Cross-site scripting in ONNX ONNXMLTools 1.16.0 and earlier allows attacker-influenced model metadata to execute script

CVE-2026-14647 LOW POC
2.1 Jul 04

Out-of-bounds read in ONNX versions up to 1.21.x exposes limited memory contents to low-privileged remote attackers via

CVE-2026-34447 MEDIUM
5.5 Apr 01

ONNX versions prior to 1.21.0 allow local attackers to read arbitrary files outside the model directory through symlink

CVE-2026-34446 MEDIUM
4.7 Apr 01

ONNX versions prior to 1.21.0 allow local attackers to read arbitrary files by exploiting a hardlink-based path traversa

Vendor StatusVendor

SUSE

Severity: High

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy