Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain local low-privilege access to onnx-mlir host
-
DeliveryCraft ONNX graph with same-shape, different-dtype placeholder nodes
-
ExploitSubmit model for compilation via torch_onnxmlir backend
-
Executiongenerate_hash_key produces collision for distinct placeholder nodes
-
PersistCompiler reuses incorrect cached compilation result
-
ImpactCompiled model exhibits integrity deviation or availability failure
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Irreversible hash functions
|
| Exploitation Conditions | Exploitation requires local system access (AV:L) and low-privilege credentials (PR:L per CVSS vector). The specific triggering condition is use of the torch_onnxmlir Python backend to compile ONNX graphs containing multiple placeholder nodes that share the same tensor shape but have different data types (dtypes) - a scenario that causes generate_hash_key to produce identical cache keys for distinct nodes. The vulnerability does not manifest in standard single-dtype model compilation. Exploitation is further limited by high attack complexity (AC:H), meaning the attacker must precisely control model structure and compilation flow. This is not remotely exploitable and does not affect default configurations of systems that do not use the torch_onnxmlir backend. |
| Impact | CVSS 3.6 (Low) with vector AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L accurately reflects a narrow, locally-exploitable issue with limited blast radius. The high attack complexity (AC:H) and local-only vector (AV:L) substantially constrain real-world exploitation likelihood. The CVSS Remediation Level is RL:O (official fix available) and Report Confidence is RC:C (confirmed). No EPSS score was provided in the available intelligence, and the vulnerability is not listed in the CISA KEV catalog. No public exploit code exists. The practical risk profile is low: this is fundamentally a correctness and integrity issue in a developer/ML toolchain rather than a server-side or network-exposed attack surface. Security teams serving ML platform environments should treat this as a maintenance-priority patch rather than an emergency response item. |
| Exploit ScenarioDerived | A local user with low-privilege access on a machine running onnx-mlir crafts an ONNX model containing placeholder nodes with identical tensor shapes but differing data types (e.g., a float32 and an int64 input of shape [1, 128]). When this model is compiled via the torch_onnxmlir backend, both placeholders resolve to the same cache key, causing the compiler to reuse an incorrect cached result and producing a compiled model with subtly wrong behavior or a compilation failure. No public exploit code exists; successful exploitation requires deep knowledge of the onnx-mlir compilation pipeline and is described as difficult. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 05, 2026
Weak cache key construction in onnx-mlir's torch backend (versions up to 0.5.0.0) omits tensor data type (dtype) from placeholder node hash keys, enabling cache collisions between semantically distinct nodes. A locally authenticated attacker with high-complexity manipulation can cause the compiler to incorrectly reuse cached compilation results across mismatched dtypes, yielding low-integrity and low-availability impacts. No public exploit is identified at time of analysis; the upstream fix is confirmed via commit 72c5187 and PR #3427.
RemediationAI
Apply the upstream fix by incorporating commit 72c5187ff6d13c2c2b3d3789b8f5faf99f08a5b4, available via PR #3427 at https://github.com/onnx/onnx-mlir/pull/3427. The patch modifies generate_hash_key to append the tensor dtype to the placeholder cache key, eliminating collisions between same-shape, different-dtype nodes. An exact released tagged version incorporating this fix has not been independently confirmed from available intelligence - users should verify that their target release includes this specific commit before considering remediation complete. As a compensating control pending patch deployment, ML engineers compiling models with the torch_onnxmlir backend should avoid or disable placeholder node caching in workflows that involve multiple dtypes sharing identical tensor shapes; note this may degrade compilation performance. The official fix is the only fully effective remediation.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
onnx-mlir is a compiler toolchain that lowers ONNX model graphs to native machine code. The affected component is the torch_onnxmlir Python backend (src/Runtime/python/torch_onnxmlir/src/torch_onnxmlir/backend.py), where the generate_hash_key function constructs a cache key for placeholder nodes as f'om_placeholder_{placeholder_counter}_[{shape_str}]' - encoding only tensor shape, not dtype. CWE-328 (Use of Weak Hash) applies because this key omits a critical distinguishing attribute: two placeholder nodes with identical shapes but different data types (e.g., float32 vs. int64) hash to the same value. The fix in PR #3427 appends _{dtype} to produce f'om_placeholder_{placeholder_counter}_[{shape_str}]_{dtype}', making the key collision-resistant for differing dtypes. CPE cpe:2.3:a:onnx:onnx-mlir:*:*:*:*:*:*:*:* covers all versions through 0.5.0.0.
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
CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
1DescriptionCVE.org
A vulnerability has been found in onnx onnx-mlir up to 0.5.0.0. Affected by this issue is the function generate_hash_key of the file src/Runtime/python/torch_onnxmlir/src/torch_onnxmlir/backend.py of the component Placeholder Node Cache Handler. Such manipulation leads to use of weak hash. An attack has to be approached locally. A high complexity level is associated with this attack. The exploitation is known to be difficult. The name of the patch is 72c5187ff6d13c2c2b3d3789b8f5faf99f08a5b4. Applying a patch is advised to resolve this issue.
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
Arbitrary attribute injection in ONNX Python library (versions prior to 1.21.0) allows unauthenticated remote attackers
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
EUVD-2026-34826
GHSA-h7gg-9w38-vh5g
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB