GHSA-486p-g8x4-77mg

Suggest an improvement
Source
https://github.com/advisories/GHSA-486p-g8x4-77mg
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/08/GHSA-486p-g8x4-77mg/GHSA-486p-g8x4-77mg.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-486p-g8x4-77mg
Downstream
Withdrawn
2026-09-08T20:57:28Z
Published
2026-08-21T18:34:56Z
Modified
2026-09-08T21:15:03Z
Severity
  • 7.1 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H CVSS Calculator
  • 6.8 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
Duplicate Advisory: ONNX: TOCTOU arbitrary file read/write in save_external_dat
Details

Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-q56x-g2fj-4rj6. This link is maintained to preserve external references.

Original 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.

Database specific
{
    "cwe_ids": [
        "CWE-22"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-09-08T20:57:28Z",
    "nvd_published_at": "2026-08-21T16:17:17Z",
    "severity": "MODERATE"
}
References

Affected packages

PyPI / onnx

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
1.20.1

Affected versions

0.*
0.1
0.2
0.2.1
1.*
1.0.0
1.0.1
1.1.0
1.1.1
1.1.2
1.2.1
1.2.2
1.2.3
1.3.0
1.4.0
1.4.1
1.5.0
1.6.0
1.7.0
1.8.0
1.8.1
1.9.0
1.10.0
1.10.1
1.10.2
1.11.0
1.12.0
1.13.0
1.13.1
1.14.0
1.14.1
1.15.0
1.16.0
1.16.1
1.16.2
1.17.0
1.18.0
1.19.0
1.19.1rc1
1.19.1
1.20.0rc1
1.20.0rc2
1.20.0
1.20.1rc1
1.20.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/08/GHSA-486p-g8x4-77mg/GHSA-486p-g8x4-77mg.json"