# CVE-2024-27319: Onnx Out-of-bounds Read vulnerability

Source: https://junglewise.ai/threats/cve-2024-27319-onnx-out-of-bounds-read-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-02-23  
License: CC BY 4.0 with a link back

CVE-2024-27319 · Severity: low · CVSS 3.1 · Published 2024-02-23

Versions of the package onnx before and including 1.15.0 are vulnerable to Out-of-bounds Read as the ONNX_ASSERT and ONNX_ASSERTM functions have an off by one string copy.

Technologies: [onnx (PyPI)](https://junglewise.ai/threats/technologies/onnx). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2024-27319 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-27319 being exploited in the wild.

**How severe is CVE-2024-27319?** Low severity, with a CVSS score of 3.1, published 23 February 2024.

**Which products and versions are affected?** onnx (PyPI) ECOSYSTEM:introduced=0,fixed=1.16.0, GIT:introduced=0,fixed=08a399ba75a805b7813ab8936b91d0e274b08287,fixed=08a399ba75a805b7813ab8936b91d0e274b08287|ECOSYSTEM:introduced=0,fixed=1.16.0.

**Is there a fix for CVE-2024-27319?** Yes. onnx (PyPI): upgrade to 1.16.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2024-27319?** Check whether you run onnx (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- onnx (PyPI): upgrade to 1.16.0 or later

  ```sh
  pip install "onnx>=1.16.0"
  ```


## Affected products

- onnx (PyPI) ECOSYSTEM:introduced=0,fixed=1.16.0, GIT:introduced=0,fixed=08a399ba75a805b7813ab8936b91d0e274b08287,fixed=08a399ba75a805b7813ab8936b91d0e274b08287|ECOSYSTEM:introduced=0,fixed=1.16.0

## Identifiers

- CVE-2024-27319
- GHSA-h8wv-9h96-m4hr
- PYSEC-2024-223

## Related threats

- [ONNX memory exhaustion in packed tensor unpacking](https://junglewise.ai/threats/cve-2026-115922-open-neural-network-exchange-onnx-is-an-open-standard-for)
- [ONNX null pointer dereference in shape inference](https://junglewise.ai/threats/cve-2026-115921-open-neural-network-exchange-onnx-is-an-open-standard-for)
- [ONNX ConvTranspose shape inference denial of service](https://junglewise.ai/threats/cve-2026-115920-open-neural-network-exchange-onnx-is-an-open-standard-for)
- [ONNX out-of-bounds read in RNN shape inference](https://junglewise.ai/threats/cve-2026-115919-open-neural-network-exchange-onnx-is-an-open-standard-for)
- [ONNX TOCTOU race condition in save_external_data](https://junglewise.ai/threats/onnx-toctou-race-condition-in-save-external-data-b85422b8)
