Tract: Arbitrary file read via unsanitized ONNX external_data `location` (path traversal) on model load in tract-onnx
CVE-2026-55832Published 14 Sep 2026, 17:57 UTC
Real-world risk
2.7/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
6.1
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
Tract is a tiny, no-nonsense, self-contained TensorFlow and ONNX inference toolkit. Prior to 0.21.17, 0.22.3, and 0.23.2, the tract-onnx crate passes the attacker-controlled external_data location from an ONNX model through onnx/src/tensor.rs get_external_resources and joins the value to the model directory without rejecting absolute paths or parent directory components. Loading an untrusted model through model_for_path can therefore make onnx/src/data_resolver.rs MmapDataResolver open an arbitrary local file and place the file contents into model tensors or inference output. Attacker-controlled offset and length fields can also select an out-of-range mapping slice and cause a denial of service, but the flaw does not write files or execute code. This issue is fixed in versions 0.21.17, 0.22.3, and 0.23.2.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| tractNiche | < 0.21.17; >= 0.22.0, < 0.22.3; >= 0.23.0, < 0.23.2 | 0.21.17, 0.22.3, 0.23.2 |
What to do
Update to a fixed version: 0.21.17, 0.22.3, 0.23.2.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data exposureReads secrets, credentials, databases, arbitrary files | From the CVSS vector | 0.80 |
| Attacker position | LocalMust already run code or have a shell on the machine | From the CVSS vector | 0.50 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T3: Public proof of concept (× 0.95)
A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit
- Reference tagged as exploit (link)
- CISA SSVC: proof of concept
EPSS 0.2% chance of exploitation in 30 days (percentile 16), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.350
- Threat T3: Public proof of concept0.950
- 10 × impact 0.8 × prerequisites 0.35 × threat 0.952.660
- Rounded to one decimal between 0.1 and 102.7
Exploitation and evidence timeline
- 14 Sep 2026 Published
- 3 Dec 2026 Reference tagged as exploit first seen
- 3 Dec 2026 CISA SSVC: proof of concept first seen
- 3 Dec 2026 Risk 2.7 (cvss fallback)
Weakness
CWE-22
References
- https://github.com/sonos/tract/security/advisories/GHSA-h668-6x6g-f8r5exploit, vendor-advisory
- https://github.com/sonos/tract/commit/5f994bcf3cec9b343830a975fedce177f9190d0fmisc
- https://github.com/sonos/tract/commit/85f4fac23e43d417782e8ed9f9465be8474f5c98misc
- https://github.com/sonos/tract/commit/8fdacbd7abe4e6f929cadfe52e7f69e2227c0632misc
- https://github.com/sonos/tract/releases/tag/0.21.17misc
- https://github.com/sonos/tract/releases/tag/0.22.3misc
- https://github.com/sonos/tract/releases/tag/v0.23.2misc
- CVE-2026-55832 on CVE.org