CVE catalog

CVE-2026-49114

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

[CVE catalog]

Severity
High · CVSS 7.3CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Published
Updated
Source
[NVD] · [CVE record]
EPSS
0.16% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianonnxsid1.20.0-6vulnerable
Debianonnxforky1.20.0-6vulnerable
Debianonnxtrixie1.17.0-3vulnerable
Debianonnxbookworm1.12.0-2vulnerable
PiponnxNot reported1.21.0fixed
CpeonnxNot reported1.21.0fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianonnxsourcesid(unfixed)not yet assignedNot reported[1145196]
Debianonnxsourceforky(unfixed)not yet assignedNot reported[1145196]
Debianonnxsourcetrixie(unfixed)not yet assignedNot reported[1145196]
Debianonnxsourcebookworm(unfixed)not yet assignedNot reported[1145196]
PiponnxpipNot reported1.21.0Not reportedGHSA-Q56X-G2FJ-4RJ6Not reported
CpeonnxcpeNot reported1.21.0Not reportedNVD-CVE-2026-49114Not reported

[Debian bug #1145196]

Notes

[trixie] onnx: Minor issue [bookworm] onnx: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libonnx1]Affected

    Source package: [onnx]

    Details (2)
    • 1.12.0-2+b4 · amd64 · bookworm

      Affected

      nvd · onnx · debian · bookworm

    • 1.12.0-2+b4 · arm64 · bookworm

      Affected

      nvd · onnx · debian · bookworm

  • [libonnx-dev]Affected

    Source package: [onnx]

    Details (2)
    • 1.12.0-2+b4 · amd64 · bookworm

      Affected

      nvd · onnx · debian · bookworm

    • 1.12.0-2+b4 · arm64 · bookworm

      Affected

      nvd · onnx · debian · bookworm

  • [libonnxifi]Affected

    Source package: [onnx]

    Details (2)
    • 1.12.0-2+b4 · amd64 · bookworm

      Affected

      nvd · onnx · debian · bookworm

    • 1.12.0-2+b4 · arm64 · bookworm

      Affected

      nvd · onnx · debian · bookworm

  • Source package: [onnx]

    Details (2)
    • 1.12.0-2 · all · bookworm

      Affected

      nvd · onnx · debian · bookworm

    • 1.12.0-2 · all · bookworm

      Affected

      nvd · onnx · debian · bookworm

  • [python3-onnx]Affected

    Source package: [onnx]

    Details (2)
    • 1.12.0-2+b4 · amd64 · bookworm

      Affected

      nvd · onnx · debian · bookworm

    • 1.12.0-2+b4 · arm64 · bookworm

      Affected

      nvd · onnx · debian · bookworm

Observed:

References