CVE-2026-49114
published medium CVSS 4.0 · 6.8ONNX symlink-following and path-traversal arbitrary file write
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ONNX | — | ONNX0 to < 1.21.0 (affected · custom) · 1.21.0 (unaffected) · Other versions: unknown | Version-specific | Not stated | cisa-cg |
Description
In ONNX before 1.21.0, the 'save_external_data' function builds the external-data file path from the model's external_data location field and opens it for writing without 'O_NOFOLLOW/O_EXCL', after a non-atomic 'os.path.isfile()' check. A local attacker with write access to the directory where a victim serializes external data can deterministically pre-plant a symlink that is being followed, causing the victim's write to append to any file the victim can write, e.g. ~/.ssh/authorized_keys, cron files, or application configs. Fixed in 1.21.0.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.8 / 10
- Severity
- medium
- Provider
- cisa-cg · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.1 | high | cisa-cg · cna | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ONNX | ONNX | 0 to < 1.21.0 (affected · custom)1.21.0 (unaffected)Default: unknown | cisa-cg · cna |
Weaknesses
3- CWE-367 CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
- CWE-22 CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- CWE-59 CWE-59 Improper Link Resolution Before File Access ('Link Following')
References
3Provider assertions
2cisa-cg · cna
ONNX symlink-following and path-traversal arbitrary file write
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 1aa50beded9ce468d5c04dc2e9bafd71844d4aca4389dcb628e82c6a23282961
- Ingested
- 23 Sep 2026, 09:17:57 UTC
- Source record
- Official CVE record