CVE-2026-49114ONNX symlink-following and path-traversal arbitrary file write
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.
What to do
Fixed builds are available from PyPI: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | onnx | Fix pending | UBUNTU-CVE-2026-49114 | |
| Ubuntu 26.04 | onnx | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | onnx | Fix pending | UBUNTU-CVE-2026-49114 | |
| Ubuntu 22.04 | onnx | Under investigation | UBUNTU-CVE-2026-49114 | |
| Debian 14 | onnx | Fix pending | DEBIAN-CVE-2026-49114 | |
| Debian 13 | onnx | Fix pending | DEBIAN-CVE-2026-49114 | |
| Debian 12 | onnx | Fix pending | DEBIAN-CVE-2026-49114 | |
| PyPI library | onnx | Fixed | 1.21.0 | PYSEC-2026-3876 |
What the vendor says
As published in the CVE record by cisa-cg, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- ONNX: affected: before 1.21.0, 1.21.0 not affected; fixed in
1.21.0
Vendor advisories:
- https://github.com/onnx/onnx/security/advisories/GHSA-q56x-g2fj-4rj6 (vendor-advisory)
References
- https://github.com/onnx/onnx/security/advisories/GHSA-q56x-g2fj-4rj6
- https://raw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/IT/white/2026/va-26-233-01.json
- https://www.cve.org/CVERecord?id=CVE-2026-49114
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.