Security mailing lists by PureSourceCode

CVE-2026-55093

MEDIUM 6.1CVSS 3.1

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

Tract is a tiny, no-nonsense, self-contained TensorFlow and ONNX inference toolkit. Prior to 0.21.16, 0.22.2, and 0.23.1, tract-nnef uses unchecked usize multiplication in nnef/src/tensors.rs read_tensor for attacker-controlled tensor dimensions, the allocation size, and the reported tensor length. Loading a crafted NNEF archive through model_for_path or model_for_read reaches the default DatLoader and can make the wrapped size check accept a small allocation while data/src/tensor.rs as_slice_unchecked creates a much larger logical slice. Model construction through as_uniform can then read beyond the heap allocation and disclose adjacent data, and later access can terminate the process with a segmentation fault. The affected dense numeric tensor path does not include the independently guarded bool, String, or block-quant paths, and no out-of-bounds write or code execution was demonstrated. This issue is fixed in versions 0.21.16, 0.22.2, and 0.23.1.

Published
14 Sep 2026
Last modified
12 Oct 2026
Assigned by
security-advisories@github.com
NVD status
Deferred
Weakness
CWE-125CWE-190
Also known as
GHSA-x5mv-8wgw-29hgRUSTSEC-2026-0217
Sources
NVDJSONOSV GHSA-x5mv-8wgw-29hgJSONOSV RUSTSEC-2026-0217JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
OSV GitHub CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
OSV RustSec CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV crates.io tract-nnef >= 0.23.0, < 0.23.1 0.23.1
OSV crates.io tract-nnef >= 0.22.0, < 0.22.2 0.22.2
OSV crates.io tract-nnef < 0.21.16 0.21.16
OSV crates.io tract-nnef >= 0.0.0-0, < 0.21.16; >= 0.22.0, < 0.22.2; >= 0.23.0, < 0.23.1 0.21.16, 0.22.2, 0.23.1

References

History

  • 25 Nov 2026 21:05 UTC · NVD: first stored (published 14 Sep 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 18 Jun 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 18 Jun 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.