Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. onnx
  4. ›
  5. CVE-2026-115921

CVE-2026-115921: ONNX: Null Pointer Dereference in ScanInferenceFunction Due to Missing Required Attribute

October 28, 2026

ONNX shape inference did not safely validate the required Scan num_scan_inputs attribute. Two malformed values could terminate or disrupt the process:

  1. If the attribute was missing, ctx.getAttribute("num_scan_inputs") returned null and was dereferenced.
  2. If the attribute was negative, conversion to size_t produced a very large value that reached a vector allocation and raised std::length_error.

The negative-value variant passed onnx.checker.check_model() before reaching shape inference.

References

  • github.com/advisories/GHSA-m4pr-6v3c-6fgr
  • github.com/onnx/onnx/commit/dd6bc92ea39fd2274fd671f0734b0b8b558356f5
  • github.com/onnx/onnx/pull/7916
  • github.com/onnx/onnx/releases/tag/v1.22.0
  • github.com/onnx/onnx/security/advisories/GHSA-m4pr-6v3c-6fgr
  • nvd.nist.gov/vuln/detail/CVE-2026-115921

Code Behaviors & Features

Detect and mitigate CVE-2026-115921 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 1.4.0 before 1.22.0

Fixed versions

  • 1.22.0

Solution

Upgrade to version 1.22.0 or above.

Impact 6.2 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-195: Signed to Unsigned Conversion Error
  • CWE-476: NULL Pointer Dereference

Source file

pypi/onnx/CVE-2026-115921.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:42 +0000.