Null pointer dereference in ONNX Scan shape inference
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-476.
Summary
ONNX from 1.4.0 before 1.22.0 does not validate the required num_scan_inputs attribute in ScanInferenceFunction. A missing attribute is dereferenced as a null pointer (CWE-476), and a negative value is converted to an unsigned size that reaches an oversized allocation path. A local attacker with no privileges and no user interaction can supply an untrusted model that crashes or disrupts shape inference, including a negative-value model that passes onnx.checker.check_model().
Written with Claude Haiku 5.5 from the sources below · 2026-10-31
Description from the CNA
Open Neural Network Exchange (ONNX) is an open standard for machine learning interoperability. From 1.4.0 until 1.22.0, ScanInferenceFunction, ScanInferenceFunction_opset8, and ScanInferenceFunction_opset9 do not safely validate the required num_scan_inputs attribute. A missing attribute is dereferenced as a null pointer, while a negative value is converted to size_t and can reach an exceptional oversized allocation path. An untrusted model can therefore terminate or disrupt shape inference, including a negative-value model that can pass onnx.checker.check_model(). This issue is fixed in version 1.22.0.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| onnx | onnx | 1.4.0 to before 1.22.0 | 1.22.0 | Patch available | CNA |
| — | onnx (PyPI) | 1.4.0 to before 1.22.0 | 1.22.0 | Patch available | GHSA-m4pr-6v3c-6fgr |
- onnx Vendoronnx Affected 1.4.0 to before 1.22.0 Fixed in 1.22.0 Patch available CNA
- onnx (PyPI) Vendor— Affected 1.4.0 to before 1.22.0 Fixed in 1.22.0 Patch available GHSA-m4pr-6v3c-6fgr
Remediation
Upgrade the onnx package to version 1.22.0 or later, which fixes the issue. Red Hat OpenShift AI (RHOAI) is affected, and the sources list no fixed version for it.
Written with Claude Haiku 5.5 from the sources below · 2026-10-31
- Fix · CNA onnx (onnx) Fixed in 1.22.0
- Fix · GHSA-m4pr-6v3c-6fgr onnx (PyPI) Fixed in 1.22.0 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet: Fix deferred |
Timeline
- 2026-10-26 Threatist record created from CVE-2026-115921
- 2026-10-27 Affected versions changed · Red Hat
- 2026-10-27 CVSS score added · Red Hat
- 2026-10-27 Priority changed: MEDIUM → LOW
- 2026-10-28 Alias added: GHSA-m4pr-6v3c-6fgr
- 2026-10-28 Fix available: PyPI/[email protected] · GHSA-m4pr-6v3c-6fgr
- 2026-10-28 CVSS score added · GHSA-m4pr-6v3c-6fgr
- 2026-10-28 Weakness changed · GHSA-m4pr-6v3c-6fgr
- 2026-10-28 6 new references · GHSA-m4pr-6v3c-6fgr
- 2026-10-31 CISA SSVC decision points changed
References
More onnx vulnerabilities
- TI-2026-22763 ONNX Untrusted Model Repository Warnings Suppressed by silent=True in onnx.hub.load() — Silent Supply-Chain Attack CVSS 3.1CRITICAL 9.1
- TI-2026-21896 ONNX: Path Traversal via Symlink CVSS 4.0HIGH 8.7
- TI-2024-07209 Arbitrary File Overwrite in onnx/onnx CVSS 3.1CRITICAL 9.1
- TI-2024-04814 Arbitrary File Overwrite in download_model_with_test_data in onnx/onnx CVSS 3.1HIGH 8.8
- TI-2026-36338 ONNX symlink-following and path-traversal arbitrary file write CVSS 4.0MEDIUM 6.8
- TI-2026-32442 ONNX: Null Pointer Dereference in Upsample Version Converter Adapter (Zero Inputs) CVSS 3.1MEDIUM 5.5
Sources
- CVE-2026-115921 · CVE Program
- CVE-2026-115921 · NVD
- FIRST EPSS
- GHSA-m4pr-6v3c-6fgr · GitHub Advisory Database · CC BY 4.0
- CVE-2026-115921 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences