Signed to Unsigned Conversion Error Affecting onnx package, versions [1.4.0,1.22.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.13% (3rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-ONNX-21755377
  • published27 Oct 2026
  • disclosed26 Oct 2026
  • creditMinicoAI

Introduced: 26 Oct 2026

NewCVE-2026-115921  (opens in a new tab)
CWE-195  (opens in a new tab)

How to fix?

Upgrade onnx to version 1.22.0 or higher.

Overview

onnx is an Open Neural Network Exchange

Affected versions of this package are vulnerable to Signed to Unsigned Conversion Error via the shape inference functions in onnx/defs/controlflow/utils.cc, onnx/defs/controlflow/old.cc, and onnx/defs/nn/defs.cc, where ctx.getAttribute() can return a null pointer that is immediately dereferenced without a null check. An attacker can supply an ONNX model that omits required attributes (such as num_scan_inputs for Scan nodes or a mismatched weight rank for ConvTranspose nodes) to trigger a null pointer dereference during shape inference, crashing the process.

CVSS Base Scores

version 4.0
version 3.1