PyPI
CVE-2026-115922
ONNX: Denial of service via unchecked expansion of packed sub-byte tensors in ONNX Python APIs
- Severity
- Medium 6.2
- Published
- 28 Oct 2026
- Last changed
- 28 Oct 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 1.22.0
- Exploit chance
- 0.1% in the next 30 daysHigher than 2% of CVEs. EPSS by FIRST, 24 Nov 2026
- Weakness
- CWE-789
- Attack
- Needs local access · No login needed · No user action needed
- Attacker can
- Take it down
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Also known as
- GHSA-q69g-f4f5-v8m7
- Sources
- OSV.dev and GitHub
Description
ONNX's Python tensor-materialization helpers could allocate memory according to attacker-controlled tensor dimensions without verifying that a packed sub-byte payload contained the declared number of elements.
A very small model could therefore cause a disproportionately large allocation when an application called onnx.numpy_helper.to_array() or constructed onnx.reference.ReferenceEvaluator with the model. The issue affected UINT2, INT2, UINT4, INT4, and FLOAT4E2M1 tensors stored in either raw_data or packed int32_data.
The vulnerable _unpack_2bit() and _unpack_4bit() paths first allocated a small array based on the available packed bytes, then resized it to the shape declared in TensorProto.dims. They did not first confirm that the payload encoded enough logical elements for that shape.
For example, the reporter demonstrated a 66-byte model containing one packed byte and a declared dimension of 700,000,000.
Affected software
| Software | Affected versions |
|---|---|
onnxPyPI · osv:PyPI:onnx |
|
About onnx
- Weekly downloads (PyPI)
- 4,009,268PyPI Stats, 23 Nov 2026
Vulnerabilities in onnx
- In our list
- 4
- Published in the last 12 months
- 4
- Critical, last 12 months
- 0
- High, last 12 months
- 0
- Known exploited
- 0
- CVE-2026-115920ONNX: Out-of-bounds read in ConvTranspose shape inference via undersized weight rankMedium 6.2 28 Oct 2026
- CVE-2026-115921ONNX: Null Pointer Dereference in ScanInferenceFunction Due to Missing Required AttributeMedium 6.2 28 Oct 2026
- CVE-2026-115919ONNX: Out-of-Bounds Read in RNN/GRU/LSTM Shape Inference (Old Opsets, Missing Rank Check)Medium 6.2 28 Oct 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-115922
- GitHub Advisory Database https://github.com/advisories/GHSA-q69g-f4f5-v8m7