Skip to content
OpenAdvisories
High · 7.1 CVE-2026-49114 EUVD-2026-63995GHSA-486p-g8x4-77mgGHSA-q56x-g2fj-4rj6PYSEC-2026-3876

ONNX symlink-following and path-traversal arbitrary file write

Published Aug 21, 2026 · Updated Aug 21, 2026 · Assigned by cisa-cg

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.

Affected products

VendorProductAffectedFixed
ONNX ONNX < 1.21.0 1.21.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 onnx No fix yet —
Debian 13 onnx No fix yet —
Debian 12 onnx No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 onnx No fix yet —
Ubuntu 26.04 LTS onnx No fix yet —
Ubuntu 22.04 LTS onnx No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS onnx No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI onnx < 1.21.0 1.21.0 GHSA-q56x-g2fj-4rj6

Advisories 1

References

  • url vendor-advisory exploit
  • url third-party-advisory
  • url vdb-entry