Skip to content
MediumVulnerability

GHSA-hwpq-hmq9-wj77: ONNX has Null Pointer Dereference in Upsample Version Converter Adapter (Zero Inputs)

Published
Record updated
View JSON
Affected
  • onnx >= 1.9.0, < 1.22.0
Fixed in
1.22.0
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%

Summary

GHSA-hwpq-hmq9-wj77 is a null pointer dereference in the Upsample 6→7 adapter of ONNX's version converter, `Upsample_6_7::adapt_upsample_6_7()` in `onnx/version_converter/adapters/upsample_6_7.h:31`. When `convert_version()` processes an Upsample node with zero inputs, the adapter reads `node->inputs()[0]` without checking the input count, causing a SIGSEGV crash on Release builds and an abort on Debug builds. Any application running `convert_version()` on untrusted models is affected, and a 107-byte proof of concept reproduces the crash on onnx 1.21.0 and 1.22.0.

Mitigation

The source states that a full audit of about 45 adapters found eight with the same unguarded indexed access, and that all eight, including upsample_6_7, have been fixed in PR #7813.