{"data":{"id":"d12e8bcd-5f76-4373-8bcf-2c1190d22f51","title":"GHSA-q56x-g2fj-4rj6: ONNX: TOCTOU arbitrary file read/write in save_external_dat ","summary":"The ONNX save_external_data method in onnx/external_data_helper.py is reported to contain a local TOCTOU flaw, enabling arbitrary file read and write. Between os.path.isfile and open, the code creates no atomic file and does not use O_NOFOLLOW, so an attacker can swap in a symlink and overwrite victim files under the same privilege scope. A possible path validation bypass on Windows, using absolute paths such as C:\\ with a single path part, is described but not verified by the reporter.","solution":"N/A -- no mitigation discussed in source.","labels":["security"],"sourceUrl":"https://github.com/advisories/GHSA-q56x-g2fj-4rj6","publishedAt":"2026-04-01T23:40:58.000Z","cveId":null,"cweIds":null,"cvssScore":null,"cvssSeverity":"high","severity":"high","attackType":["other"],"issueType":"vulnerability","affectedPackages":["onnx@<= 1.20.1 (fixed: 1.21.0)"],"affectedPackageNames":["onnx"],"affectedPackageRefs":["pypi:onnx"],"affectedVendors":[],"affectedVendorsRaw":["ONNX"],"classifierModel":"claude-haiku-5-5","classifierPromptVersion":"v4","summaryPromptVersion":"v2","headline":null,"headlinePromptVersion":null,"cvssVector":null,"attackVector":null,"attackComplexity":null,"privilegesRequired":null,"userInteraction":null,"exploitMaturity":null,"epssScore":null,"epssCheckedAt":null,"kevDateAdded":null,"advisoryAliases":["GHSA-q56x-g2fj-4rj6"],"affectedPackagesSource":null,"affectedPackagesCheckedAt":null,"patchAvailable":true,"disclosureDate":"2026-04-01T23:40:58.000Z","fixReleasedAt":"2026-03-27T21:32:15.530Z","daysToFix":-5,"fixCheckedAt":"2026-10-29T21:38:59.318Z","capecIds":null,"crossRefCount":0,"attackSophistication":"moderate","impactType":["confidentiality","integrity"],"aiComponentTargeted":"framework","llmSpecific":false,"classifierConfidence":0.9,"researchCategory":null,"atlasIds":null,"fixes":[{"ecosystem":"pypi","name":"onnx","fixedVersion":"1.21.0","matchedVersion":"1.21.0","fixReleasedAt":"2026-03-27T21:32:15.530Z","daysToFix":-5,"match":"ecosystem","source":"tracked","status":"found","checkedAt":"2026-10-29T21:38:59.172Z"}]}}