# CVE-2026-49114: ONNX symlink-following and path-traversal arbitrary file write

- Priority: **Routine**
- Reason: Not severe (CVSS 6.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-08-21 · Modified: 2026-08-21
- Aliases: GHSA-q56x-g2fj-4rj6, PYSEC-2026-3876, UBUNTU-CVE-2026-49114, DEBIAN-CVE-2026-49114, CGA-2xcm-r224-jcch, CGA-925p-g8mg-mmfp, CGA-hpp2-pvvc-92qw, CGA-m4q8-p32r-qcgj, CGA-p9xx-2pmc-w4f5, CGA-v3c9-gmmr-jf26, CGA-w525-3pvh-8vm5, CGA-xf5h-pmcx-mqvm
- Record: https://cvemate.com/vulnerability/CVE-2026-49114 · JSON: https://cvemate.com/vulnerability/CVE-2026-49114/json

## Description

```text
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.
```

## Signals

- CVSS: 7.1 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
- EPSS: 0.159%, percentile 5.313%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- chainguard py3.10-onnx (Chainguard): \< 1.21.0-r0
- chainguard py3.11-onnx (Chainguard): \< 1.21.0-r0
- chainguard py3.12-onnx (Chainguard): \< 1.21.0-r0
- chainguard py3.13-onnx (Chainguard): \< 1.21.0-r0
- debian onnx (Debian): All versions (No fix recorded)
- ubuntu onnx (Ubuntu): All versions (No fix recorded)
- linuxfoundation onnx: \< 1.21.0
- onnx onnx: \< 1.21.0
- PyPI onnx (PyPI): \< 1.21.0

## 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>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-49114>
- <https://github.com/onnx/onnx>
- <https://pypi.org/project/onnx>
- <https://github.com/advisories/GHSA-q56x-g2fj-4rj6>
- <https://ubuntu.com/security/CVE-2026-49114>
- <https://security-tracker.debian.org/tracker/CVE-2026-49114>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49114.json>

---

Data as of 2026-12-05T04:47:41.798Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
