Skip to main content

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… (CVE-2026-49114)

0
Medium
Published: 08/21/2026 (08/21/2026, 16:17:00 UTC)
Source: GCVE Database
Product: onnx

Description

A vulnerability in ONNX versions prior to 1.21.0 allows a local attacker with write access to a directory to exploit a race condition in the 'save_external_data' function. This function constructs the external data file path from the model's external_data location field and opens it without secure flags after a non-atomic check, enabling symlink attacks. An attacker can cause the victim process to append data to arbitrary files such as ~/.ssh/authorized_keys or cron files. The issue is fixed in ONNX version 1.21.0.

CVSS v3.1

Score 7.1high

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H

Affected software

Ubuntu:22.04:LTSmore threats →ghsa
onnx
pkg:deb/ubuntu/onnx?arch=source&distro=jammy
Affected versions
=1.7.0+dfsg-3build1=1.7.0+dfsg-3build2=1.7.0+dfsg-3ubuntu1=1.7.0+dfsg-3ubuntu2
Ubuntu:Pro:24.04:LTSmore threats →ghsa
onnx
pkg:deb/ubuntu/onnx?arch=source&distro=esm-apps/noble
Affected versions
=1.13.1-3=1.13.1-3build1=1.14.1-2=1.14.1-2.1=1.14.1-2.1build1=1.14.1-2.1build2=1.14.1-2.1ubuntu0.1~esm1
Ubuntu:26.10more threats →ghsa
onnx
pkg:deb/ubuntu/onnx?arch=source&distro=stonking
Affected versions
=1.20.0-1=1.20.0-6
Ubuntu:26.04:LTSmore threats →ghsa
onnx
pkg:deb/ubuntu/onnx?arch=source&distro=resolute
Affected versions
=1.17.0-3build1=1.20.0-1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/18/2026, 01:04:44 UTC

Technical Analysis

In ONNX before version 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 using secure flags like O_NOFOLLOW or O_EXCL. This occurs after a non-atomic os.path.isfile() check, creating a race condition. A local attacker with write permissions in the target directory can pre-plant a symbolic link that the victim process follows, causing arbitrary file writes. This can lead to unauthorized modification of sensitive files such as SSH authorized_keys, cron jobs, or application configuration files. The vulnerability is addressed in ONNX 1.21.0.

Potential Impact

The vulnerability allows a local attacker with write access to the directory where ONNX serializes external data to cause the victim process to append data to arbitrary files. This can lead to privilege escalation or persistent unauthorized access by modifying critical files like SSH authorized_keys or cron files. The CVSS score of 7.1 reflects a medium severity with high impact on integrity and availability but requires local access and user interaction.

Mitigation Recommendations

Upgrade ONNX to version 1.21.0 or later, where this vulnerability is fixed. Until then, restrict write permissions on directories used for external data serialization to trusted users only. Avoid running ONNX serialization in directories writable by untrusted users. Patch status is confirmed fixed in ONNX 1.21.0.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
UBUNTU-CVE-2026-49114
Osv Schema Version
1.7.0
Ecosystems
["Ubuntu:22.04:LTS","Ubuntu:Pro:24.04:LTS","Ubuntu:26.10","Ubuntu:26.04:LTS"]
Cvss Version
3.1

Threat ID: 6ad3f61b2cdf04f656664193

Added to database: 10/17/2026, 22:26:35 UTC

Last enriched: 10/18/2026, 01:04:44 UTC

Last updated: 10/18/2026, 01:04:44 UTC

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses