Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious ONNX model file
-
DeliveryUpload or distribute model to victim
-
ExploitLoad model via ONNX parser
-
Executionsetattr() overwrites internal properties
-
ImpactExecute 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub 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.
Executive ViewAI
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
A vulnerability in the `download_model_with_test_data` function of the onnx/onnx framework, version 1.16.0, allows for a
Symlink-following arbitrary file write in ONNX's save_external_data function (onnx/external_data_helper.py) allows a loc
Versions of the package onnx before and including 1.15.0 are vulnerable to Out-of-bounds Read as the ONNX_ASSERT and ONN
Versions of the package onnx before and including 1.15.0 are vulnerable to Directory Traversal as the external_data fiel
Out-of-bounds read in ONNX ConvTranspose shape inference (convTransposeShapeInference and convTransposeShapeInference_op
Out-of-bounds read in ONNX's legacy shape-inference path allows an attacker-supplied model to crash a process that calls
Memory exhaustion denial of service in ONNX prior to 1.22.0: the Python tensor-materialization helpers _unpack_2bit() an
Shape inference in the ONNX library (versions 1.4.0 through 1.21.0) mishandles the required Scan attribute num_scan_inpu
Cross-site scripting in ONNX ONNXMLTools 1.16.0 and earlier allows attacker-influenced model metadata to execute script
Out-of-bounds read in ONNX versions up to 1.21.x exposes limited memory contents to low-privileged remote attackers via
ONNX versions prior to 1.21.0 allow local attackers to read arbitrary files outside the model directory through symlink
ONNX versions prior to 1.21.0 allow local attackers to read arbitrary files by exploiting a hardlink-based path traversa
EUVD-2026-17985
GHSA-538c-55jv-c5g9
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB