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

- Severity: Medium 6.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-10-26T17:28:41.420Z
- Modified: 2026-10-31T02:17:29.657Z
- Also known as: GHSA-m4pr-6v3c-6fgr
- Weaknesses: CWE-195, CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- onnx onnx: >= 1.4.0, < 1.22.0
- onnx (PyPI): from 1.4.0 before 1.22.0

## Every score

- GitHub_M: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/onnx/onnx/security/advisories/GHSA-m4pr-6v3c-6fgr> (web)
- <https://github.com/onnx/onnx/pull/7916> (web)
- <https://github.com/onnx/onnx/commit/dd6bc92ea39fd2274fd671f0734b0b8b558356f5> (web)
- <https://github.com/onnx/onnx/releases/tag/v1.22.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-115921> (advisory)
- <https://github.com/onnx/onnx> (package)

## Sources

- CVE List: [CVE-2026-115921](https://www.cve.org/CVERecord?id=CVE-2026-115921), CVE Terms of Use, modified 2026-10-31
- GitHub Advisory Database: [GHSA-m4pr-6v3c-6fgr](https://github.com/advisories/GHSA-m4pr-6v3c-6fgr), CC-BY-4.0, modified 2026-10-28
- NVD: [CVE-2026-115921](https://nvd.nist.gov/vuln/detail/CVE-2026-115921), Public domain, modified 2026-10-31

---

Page: https://cve.day/CVE-2026-115921 · Whole record: https://cve.day/CVE-2026-115921.json · Rebuilt by cve.day 2026-11-25T22:59:47.175Z
