Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. tract-nnef
  4. ›
  5. CVE-2026-55093

CVE-2026-55093: tract-nnef: integer overflow in NNEF `.dat` tensor parser yields an out-of-bounds read on model load

June 18, 2026

read_tensor builds a tensor shape from attacker-controlled 32-bit dimensions and computes the element count len = product(shape) and the byte allocation product(shape) * size_of(dt) with unchecked usize arithmetic. In --release (no overflow-checks), both products wrap modulo 2^64. An attacker chooses dimensions so that the wrapped products collapse to a small value that satisfies the header consistency check, while the true element count remains astronomically large. read_tensor returns Ok with a Tensor whose reported len (e.g. 2^61+7) is far larger than its backing heap allocation (e.g. 56 bytes). The unchecked slice accessor as_slice_unchecked (from_raw_parts(ptr, self.len)) then produces a slice spanning ~18 exabytes over a 56-byte buffer. The out-of-bounds read fires automatically during model build (no inference required), reachable through the default DatLoader resource loader.

References

  • github.com/advisories/GHSA-x5mv-8wgw-29hg
  • github.com/sonos/tract/security/advisories/GHSA-x5mv-8wgw-29hg
  • nvd.nist.gov/vuln/detail/CVE-2026-55093

Code Behaviors & Features

Detect and mitigate CVE-2026-55093 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.21.16, all versions starting from 0.22.0 before 0.22.2, all versions starting from 0.23.0 before 0.23.1

Fixed versions

  • 0.21.16
  • 0.22.2
  • 0.23.1

Solution

Upgrade to versions 0.21.16, 0.22.2, 0.23.1 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-125: Out-of-bounds Read
  • CWE-190: Integer Overflow or Wraparound

Source file

cargo/tract-nnef/CVE-2026-55093.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:01 +0000.