{"id":"CVE-2026-49114","published":"2026-08-21T16:10:56Z","modified":"2026-08-21T16:43:10Z","title":"ONNX symlink-following and path-traversal arbitrary file write","vendor":"ONNX","product":"ONNX","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00159,"percentile":0.0264,"provenance":"source"},"cwes":[{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"references":[{"url":"https://github.com/onnx/onnx/security/advisories/GHSA-q56x-g2fj-4rj6","tags":["vendor-advisory","exploit"]},{"url":"https://raw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/IT/white/2026/va-26-233-01.json","tags":["third-party-advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-49114","tags":["vdb-entry"]}],"priority":{"score":10.5,"factors":[{"name":"EPSS percentile","points":0.53},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"onnx","affectedVersions":[{"vendor":"ONNX","product":"ONNX","versions":["< 1.21.0"]}],"fixedVersions":[{"vendor":"ONNX","product":"ONNX","versions":["1.21.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-21T16:42:42.598941Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"onnx","vulnerableRanges":["<1.21.0"],"patched":["1.21.0"],"from":["GHSA-q56x-g2fj-4rj6","PYSEC-2026-3876"],"provenance":"source"}],"summary":{"text":"The ONNX library's \"save_external_data\" function (before version 1.21.0) builds the external-data file path from the model's external_data location field and opens it for writing without protections against symlinks, after a non-atomic existence check. A local attacker with write access to the directory where a victim serializes external data can plant a symlink in advance, causing the victim's write to land in and append to any file the victim can write, which requires user interaction on the victim's side.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:56:40Z"},"euvd":{"id":"EUVD-2026-63995","exploited":false,"provenance":"source"},"exploitRefs":["https://github.com/onnx/onnx/security/advisories/GHSA-q56x-g2fj-4rj6"]}