CVE-2026-115921
Medium · 6.2CVSS
6.2
EPSS
0.1%
Published
Oct 26, 2026
CISA due date
—
Cloudanix analysis
A flaw in the ONNX machine learning library lets specially crafted model files crash or overload the software that loads them, and updating to the newest version prevents this.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Missing or negative num_scan_inputs attribute in ScanInferenceFunction, ScanInferenceFunction_opset8, and ScanInferenceFunction_opset9 leads to null pointer dereference or conversion to an oversized size_t allocation during shape inference on untrusted ONNX models.
Why it matters to the business
Organizations processing machine learning models may experience crashes or resource exhaustion in inference and validation pipelines, disrupting model deployment and serving workloads.
How an attack unfolds
An attacker crafts an ONNX model that omits the num_scan_inputs attribute or supplies a negative value, passes basic validation such as onnx.checker.check_model, and triggers the unsafe dereference or allocation when shape inference runs inside affected library versions.
How to fix it
Upgrade the ONNX library to version 1.22.0 or later; rebuild and redeploy any dependent applications or containers that embed the vulnerable version.
How to confirm the fix worked
Confirm the installed ONNX package reports version 1.22.0 or higher; test shape inference against sample models that omit or set negative num_scan_inputs values and verify absence of crashes or excessive memory use.
Typical attack path
- Obtain or generate an ONNX model file
- Set or omit the num_scan_inputs attribute to trigger the flaw
- Submit the model to any application that calls shape inference or check_model
- Cause null dereference or oversized allocation resulting in termination or resource exhaustion
How to detect it
Review application and system logs for segmentation faults, out-of-memory events, or unhandled exceptions originating from ONNX shape inference functions when processing newly ingested models; correlate with timestamps of model upload or validation activity.
- ScanInferenceFunction
- ScanInferenceFunction_opset8
- ScanInferenceFunction_opset9
- num_scan_inputs
What your security team should do
- Immediately inventory all ONNX installations and dependent ML pipelines
- Prioritize upgrade to 1.22.0 across development, staging, and production environments
- Add automated version checks and model validation gates to CI/CD pipelines
- Monitor for abnormal terminations or memory spikes during model ingestion
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-74221 U-Boot before 2026.10-rc5 contains a buffer overflow in nfs_readlink_reply() function in… CWE-195
- CVE-2026-74220 U-Boot before 2026.10-rc5 contains a buffer overflow in nfs_read_reply() function in… CWE-195
- CVE-2026-77406 RabbitMQ amqp091-go is a Go AMQP 0.9.1 client. CWE-195
- CVE-2026-18444 There is an integer conversion vulnerability resulting in an out-of-bounds read when… CWE-195
- CVE-2026-62959 Coturn is a free open source implementation of TURN and STUN Server. CWE-195
- CVE-2026-55737 Signed to Unsigned Conversion Error and Out-of-bounds Write vulnerability in Erlang OTP… CWE-195
- CVE-2026-55991 In NLnet Labs Unbound 1.22.0 up to and including 1.25.1, a remote unauthenticated client… CWE-195
- CVE-2026-49840 FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from… CWE-195