CVE-2026-49114
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.
Severity
HIGH
CVSS v3
7.1
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H · source cna
CVSS v4
6.8
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 · source cna
Exploit chance (EPSS)
0.159%
chance of exploitation in the next 30 days
higher than 5.1% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory
- CWE-59: Improper Link Resolution Before File Access
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2026-08-21 |
Timeline
- 2026-04-01GitHub advisory published (GHSA-q56x-g2fj-4rj6)142 days before publication
- 2026-08-21Published by the CNA16:10 UTC
- 2026-08-21CISA SSVC decision recordedsame day
Exploit and advisory records
GitHub advisory GHSA-q56x-g2fj-4rj6, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI onnx | before 1.21.0 | 1.21.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| linuxfoundation onnx | before 1.21.0fixed in 1.21.0 | 1.21.0 |
References
- https://github.com/onnx/onnx/security/advisories/GHSA-q56x-g2fj-4rj6
- https://raw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/IT/white/2026/va-26-233-01.json
- https://www.cve.org/CVERecord?id=CVE-2026-49114
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-49114'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-49114'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-49114'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-49114'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).