Skip to main content

ONNX CVE-2026-44512

| EUVDEUVD-2026-42355 MEDIUM
NULL Pointer Dereference (CWE-476)
2026-07-07 https://github.com/onnx/onnx GHSA-hwpq-hmq9-wj77
5.5
CVSS 3.1 · Vendor: https://github.com/onnx/onnx
View

Attack ChainAIDerived

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

  1. Access
    Craft 107-byte ONNX model with zero-input Upsample node
  2. Delivery
    Deliver model file to conversion pipeline
  3. Exploit
    Target calls convert_version(model, 7)
  4. Execution
    Attribute check passes, input count unchecked
  5. Persist
    OOB dereference of empty inputs array
  6. Impact
    SIGSEGV crashes conversion process

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the target calls onnx.version_converter.convert_version() on an attacker-controlled ONNX model. The model must contain an Upsample operator node declared at opset 6 with both width_scale and height_scale attributes present (causing the attribute check to pass) but with zero inputs in the node's input list. The ONNX graph loader graphProtoToGraph() permits this because it only resolves inputs explicitly named in the protobuf, allowing the malformed node to be admitted. No authentication, network access, or elevated privileges are required - the attacker only needs the ability to supply the model file to the conversion function. Exploitation is strictly bounded to denial-of-service via crash; no code execution or data access is possible. Applications that never call convert_version() on externally sourced models are entirely unexposed, even with a vulnerable onnx version installed.

Impact

The NVD CVSS 3.1 score of 5.5 Medium with vector AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H accurately reflects the mechanics: exploitation requires delivering a malicious model file (local attack vector) and having a user or automated process invoke convert_version() on it (UI:R). The impact ceiling is denial-of-service only - no confidentiality or integrity compromise is possible, keeping real-world blast radius contained. EPSS data was not supplied, so exploitation probability cannot be quantified beyond signal-based inference. The vulnerability is absent from CISA KEV, indicating no confirmed mass exploitation at time of analysis. However, the existence of a confirmed 107-byte PoC reproducing the crash on two consecutive release versions trivializes weaponization. For organizations operating automated ML pipelines or model-conversion services that ingest externally-sourced ONNX files, the practical risk is meaningfully higher than the CVSS score alone suggests, since a single crafted file can reliably crash conversion workers. For environments where convert_version() is never called on untrusted input, risk is negligible. No CVSS/description conflict identified - local vector is consistent with file-based model delivery.

Exploit ScenarioDerived

An attacker crafts a 107-byte ONNX model file containing an Upsample node at opset 6 with width_scale and height_scale attributes populated but zero inputs declared, then submits it to a model conversion service or developer tool that calls convert_version(model, 7). The attribute assertions in the adapter pass, then node->inputs()[0] dereferences the empty inputs array, producing an unrecoverable SIGSEGV that crashes the conversion process. A public proof-of-concept implementing exactly this scenario is available and was confirmed against two onnx release versions.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 07, 2026

Null pointer dereference in the ONNX Python library's version converter crashes any application that calls onnx.version_converter.convert_version() on a crafted model containing an Upsample node with zero inputs, producing an unrecoverable SIGSEGV. Affected versions include at minimum onnx 1.21.0 and 1.22.0, confirmed by a 107-byte public proof-of-concept; the vulnerability is part of a systemic pattern spanning eight adapters. No public active exploitation is confirmed in CISA KEV, but the trivially small PoC eliminates any meaningful exploitation barrier for threat actors targeting ML model conversion pipelines.

RemediationAI

Upgrade the onnx Python package to the first release that incorporates PR #7916 (https://github.com/onnx/onnx/pull/7916); check https://github.com/onnx/onnx/releases for the tagged release following that merge, as the exact patched version is not independently confirmed from available data - the v1.22.0 release tag is referenced but that version was confirmed vulnerable, so verify the changelog before treating it as fixed. As a compensating control where immediate upgrade is not feasible, restrict onnx.version_converter.convert_version() to models sourced exclusively from internal, trusted repositories; do not invoke the converter on user-uploaded, network-received, or third-party ONNX files. Running the conversion step in an isolated subprocess with a hard timeout and restart-on-crash logic provides crash containment at the cost of added latency and operational complexity, preventing a single malformed model from taking down a shared conversion service. Note that onnx.check_model() does not currently guard against this specific graph malformation and should not be relied upon as a standalone filter.

Affected VersionsENISA

onnx 1.9.0, < 1.22.0

Affected Packages

pypi onnx fix: 1.22.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

The ONNX Python package (pkg:pip/onnx) ships a C++ version-conversion framework with per-operator adapters that upgrade ONNX models between opset versions. The affected adapter Upsample_6_7::adapt_upsample_6_7() in onnx/version_converter/adapters/upsample_6_7.h handles the opset 6-to-7 transition for the Upsample operator. CWE-476 (Null Pointer Dereference) describes the root cause: the adapter validates the presence of width_scale and height_scale attributes but unconditionally dereferences node->inputs()[0] without first checking that the inputs array is non-empty. In release builds compiled with NDEBUG, LLVM ArrayRef's bounds assertion is elided, so an empty-array access reads a garbage pointer and faults with SIGSEGV; debug builds trigger SIGABRT via assert(Index < Length) at array_ref.h:159. The graph import path graphProtoToGraph() permits nodes with zero inputs because it only resolves input names explicitly listed in the protobuf, allowing the malformed node to pass graph loading and reach the adapter unchecked. The same unguarded indexed-access pattern was independently confirmed in seven additional adapters (cast_9_8, softmax_12_13, softmax_13_12, upsample_9_10, group_normalization_20_21, broadcast_forward_compatibility, upsample_9_8), all remediated together in PR #7813 and the associated fix PR #7916.

Know when Python 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

Vendor (https://github.com/onnx/onnx) PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
vuln.today AI 5.5 MEDIUM

File-based local delivery with required user invocation of convert_version(); crash-only impact means C:N/I:N, PR:N because no credentials are needed to supply a file.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE MEDIUM
Red Hat 6.5 MEDIUM

Primary rating from Vendor (https://github.com/onnx/onnx).

CVSS VectorVendor: https://github.com/onnx/onnx

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

DescriptionCVE.org

Summary

Null pointer dereference (SIGSEGV) in Upsample_6_7::adapt_upsample_6_7() (onnx/version_converter/adapters/upsample_6_7.h:31) when convert_version() processes a model with an Upsample node that has zero inputs. The adapter accesses node->inputs()[0]->sizes() without checking input count. 107-byte PoC crashes on Release build.

This is the same class of bug as the Cast adapter advisory (separate report) but in a different adapter, different file, and different operator.

Details

The Upsample 6→7 adapter validates attributes but not inputs:

cpp
// upsample_6_7.h:20-33
void adapt_upsample_6_7(..., Node* node) const {
    ONNX_ASSERTM(
        node->hasAttribute(width_scale_symbol) && node->hasAttribute(height_scale_symbol),
        "...")  // Attribute check PASSES

    auto width_scale = node->f(width_scale_symbol);
    auto height_scale = node->f(height_scale_symbol);

    auto input_shape = node->inputs()[0]->sizes();
    //                 ^^^^^^^^^^^^^^^^^^^^
    //                 OOB when inputs().size() == 0 → SIGSEGV
}

The PoC has an Upsample node at opset 6 with the required width_scale and height_scale attributes but zero inputs. The attribute assertions pass, then node->inputs()[0] on an empty ArrayRef:

  • Release builds (NDEBUG): bounds-check assertion compiled out → reads garbage pointer → SIGSEGV
  • Debug builds: assert(Index < Length) at array_ref.h:159 → SIGABRT

An Upsample node with zero inputs passes graphProtoToGraph() because the import code only resolves input names present in the protobuf.

PoC

python
import base64
import onnx
from onnx import version_converter

poc_b64 = "CAI6YQo8EgFZIghVcHNhbXBsZSoVCgt3aWR0aF9zY2FsZRUAAABAoAEBKhYKDGhlaWdodF9zY2FsZRUAAABAoAEBEgR0ZXN0YhsKAVkSFgoUCAESEAoCCAEKAggBCgIIBAoCCARCBAoAEAY="

model = onnx.load_from_string(base64.b64decode(poc_b64))
# CRASHES - Upsample_6_7 adapter dereferences empty inputs array
version_converter.convert_version(model, 7)
# SIGSEGV

107-byte PoC. Confirmed SIGSEGV on both onnx 1.21.0 (pip) and 1.22.0 (source build).

Impact

Any application that uses onnx.version_converter.convert_version() on untrusted models is vulnerable. This includes model conversion pipelines and tools that auto-upgrade opset versions for compatibility. The crash is unrecoverable (SIGSEGV).

This vulnerability is part of a systemic pattern across multiple version converter adapters. A full audit of all ~45 adapters was performed as part of the fix; eight adapters were found with the same class of unguarded indexed access (cast_9_8, softmax_12_13, softmax_13_12, upsample_6_7, upsample_9_10, group_normalization_20_21, broadcast_forward_compatibility, upsample_9_8) and all have been fixed in PR #7813.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Medium
widely used in ML/AI model toolchains, not universally deployed
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL GitHub VulDB

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 MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

Vendor StatusVendor

SUSE

Severity: Moderate

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