threatdeck
Live 14:45 UTC ·

AI Stack Alert Medium CVE-2026-115921 For AI Eng, AppSec, SOC / IR AI-assisted

ONNX <=1.21.0: Null pointer and unchecked narrowing in Scan shape inference (CVE-2026-115921)

ONNX versions 1.4.0 through 1.21.0 contain a flaw in Scan shape inference where the required num_scan_inputs attribute is not validated. A missing attribute causes a null pointer dereference, and a negative value causes a std::length_error during vector allocation. Both can terminate the process; the fix is in ONNX 1.22.0.

Why it matters

Any application that runs ONNX shape inference on untrusted model files can be crashed or denied service. The negative-value trigger passes onnx.checker.check_model(), so model validation alone does not catch it.

Do this

  1. Upgrade ONNX to 1.22.0 or later in all environments that load or process models.
  2. Inventory services that call onnx shape inference or model loading on untrusted or user-supplied models, and prioritize them for upgrade.
  3. Until patched, reject or sandbox untrusted ONNX models before shape inference, and run inference in an isolated worker process so a crash does not take down the main service.
  4. If the application exposes ONNX model processing over a network, score the issue with Modified Attack Vector set to Network, as the advisory recommends.

Exploit Clock

Exploitation unlikely (for now)

  • EPSS 0.13%

Signals

  • NoCISA KEV
  • 6.2CVSS
  • 0.13%EPSS
  • 28/100Priority
  • 90%Confidence

Evidence

“If the attribute was missing, `ctx.getAttribute("num_scan_inputs")` returned null and was dereferenced.”

GitHub Security Advisories (AI packages)

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

GitHub Security Advisories (AI packages)

“Upgrade to ONNX 1.22.0 or later.”

GitHub Security Advisories (AI packages)

Sources

Affected / related

onnx, Scan operator shape inference

Published 2026-10-28 21:16 UTC · updated 2026-11-08 02:33 UTC · AI-assisted summary, checked against quoted sources · How we score

Following

Follow the vendors, products, AI tools, techniques and actors you care about. Matching stories, CVEs and exploited bugs are marked, a Following tab appears in the feed, and returning visits show what changed. Saved only in this browser.

Presets

Get updates

A personal RSS feed of new stories on everything you follow. Paste it into any feed reader, Slack or Teams RSS app.