Skip to content
HighVulnerability

CVE-2026-49114: ONNX symlink following in save_external_data allows arbitrary file writes

Identifier
CVE-2026-49114
Published
Record updated
View JSON
Affected
  • onnx <= 1.20.1
Fixed in
1.21.0
  • released March 27, 2026, 147 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%

Summary

In ONNX before 1.21.0, the save_external_data function opens the external-data file path for writing without O_NOFOLLOW or 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 pre-plant a symlink that gets followed, so the victim's write appends to any file the victim can write, such as ~/.ssh/authorized_keys, cron files, or application configs.

Mitigation

Fixed in 1.21.0.