{"schemaVersion":3,"id":"GHSA-486P-G8X4-77MG","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"Duplicate Advisory: ONNX: TOCTOU arbitrary file read/write in save_external_dat\n\n## Duplicate Advisory\n\nThis advisory has been withdrawn because it is a duplicate of GHSA-q56x-g2fj-4rj6. This link is maintained to preserve external references.\n\n## Original Description\nIn 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.","dates":{"published":"2026-08-21T18:34:56.000Z","modified":"2026-09-08T21:15:03.957Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.8,"severity":"medium","version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","computed":true,"selection":"version-preference"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":6.8,"severity":"medium","vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":7.1,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","exploitability":4.6,"impact":8.7,"computed":true}]},"epss":{"probability":null,"percentile":null,"severity":"unknown","asOf":null,"change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[],"last30":[]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[],"affected":[{"vendor":"PyPI","product":"onnx","name":"onnx","label":"onnx","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/onnx","purlType":"pypi","versions":[{"text":"≤ 1.20.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 1.20.1","eol":null,"hubHref":null}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/onnx/onnx/security/advisories/GHSA-q56x-g2fj-4rj6","label":"github.com/onnx/onnx/security/advisories/GHSA-q56x-g2fj-4rj6","hostname":"github.com","tags":["WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49114","label":"nvd.nist.gov/vuln/detail/CVE-2026-49114","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://raw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/IT/white/2026/va-26-233-01.json","label":"raw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/IT/white/2026/va-26-233-01.json","hostname":"raw.githubusercontent.com","tags":["WEB"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-49114","label":"www.cve.org/CVERecord?id=CVE-2026-49114","hostname":"www.cve.org","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["CVE-2026-49114"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-08-21T18:34:56.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-09-08T21:15:03.957Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":27,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T04:12:54.260Z","stale":false,"partial":false}}