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

CVE-2026-55832: tract: Arbitrary file read via unsanitized ONNX external_data `location` (path traversal) on model load in tract-onnx

June 19, 2026

tract (the tract-onnx crate) resolves an ONNX tensor’s external-data location by joining it onto the model directory without any sanitization. Because location comes from the (untrusted) .onnx file, a malicious model can make tract open and read an arbitrary local file at load time, with the file’s contents flowing into the model’s tensors / inference output (read-only file disclosure). This is the ONNX external-data path-traversal class that the reference onnx library hardened over several CVEs; tract resolves location itself and was never hardened.

References

  • github.com/advisories/GHSA-h668-6x6g-f8r5
  • github.com/sonos/tract/security/advisories/GHSA-h668-6x6g-f8r5
  • nvd.nist.gov/vuln/detail/CVE-2026-55832

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.21.17, all versions starting from 0.22.0 before 0.22.3, all versions starting from 0.23.0 before 0.23.2

Fixed versions

  • 0.21.17
  • 0.22.3
  • 0.23.2

Solution

Upgrade to versions 0.21.17, 0.22.3, 0.23.2 or above.

Impact 6.1 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

cargo/tract-onnx/CVE-2026-55832.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 23 Jun 2026 12:23:30 +0000.