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

- Severity: Medium 6.8 (CVSS:4.0, scored by cisa-cg) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-01T23:40:58.000Z
- Modified: 2026-10-15T19:10:00.173Z
- Also known as: GHSA-q56x-g2fj-4rj6, PYSEC-2026-3876
- Weaknesses: CWE-22, CWE-59, CWE-367
- SSVC (cisa-cg): exploitation poc, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- ONNX ONNX: before 1.21.0 (not affected: 1.21.0)
- onnx (PyPI): before 1.21.0
- linuxfoundation onnx: before 1.21.0

## Every score

- cisa-cg: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H`
- cisa-cg: CVSS:4.0 6.8 Medium `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`
- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H`

## References

- <https://github.com/onnx/onnx/security/advisories/GHSA-q56x-g2fj-4rj6> (exploit, vendor-advisory, web)
- <https://raw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/IT/white/2026/va-26-233-01.json> (third-party-advisory, vdb-entry, web)
- <https://www.cve.org/CVERecord?id=CVE-2026-49114> (third-party-advisory, vdb-entry)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-49114> (advisory)
- <https://github.com/onnx/onnx> (package)
- <https://pypi.org/project/onnx> (package)
- <https://github.com/advisories/GHSA-q56x-g2fj-4rj6> (advisory)

## Sources

- CVE List: [CVE-2026-49114](https://www.cve.org/CVERecord?id=CVE-2026-49114), CVE Terms of Use, modified 2026-08-21
- GitHub Advisory Database: [GHSA-q56x-g2fj-4rj6](https://github.com/advisories/GHSA-q56x-g2fj-4rj6), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-49114](https://nvd.nist.gov/vuln/detail/CVE-2026-49114), Public domain, modified 2026-10-15
- PyPA Advisory Database: [PYSEC-2026-3876](https://osv.dev/vulnerability/PYSEC-2026-3876), CC-BY-4.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-49114 · Whole record: https://cve.day/CVE-2026-49114.json · Rebuilt by cve.day 2026-11-25T22:59:34.795Z
