CVE catalog

CVE-2024-5187

ONNX vulnerability

[CVE catalog]

Severity
Medium
Published
Source
[NVD] · [CVE record]
EPSS
1.17% · Oct 25, 2026

A vulnerability in the `download_model_with_test_data` function of the onnx/onnx framework, version 1.16.0, allows for arbitrary file overwrite due to inadequate prevention of path traversal attacks in malicious tar files. This vulnerability enables attackers to overwrite any file on the system, potentially leading to remote code execution, deletion of system, personal, or application files, thus impacting the integrity and availability of the system. The issue arises from the function's handling of tar file extraction without performing security checks on the paths within the tar file, as demonstrated by the ability to overwrite the `/home/kali/.ssh/authorized_keys` file by specifying an absolute path in the malicious tar file.

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-6fixed
Debianonnxforky1.20.0-6fixed
Debianonnxtrixie1.17.0-3fixed
Debianonnxbookworm1.12.0-2not affected
Ubuntuonnxnoble1.14.1-2.1ubuntu0.1~esm1fixed
Ubuntulibonnx-devnoble1.14.1-2.1ubuntu0.1~esm1fixed
Ubuntulibonnx-testdatanoble1.14.1-2.1ubuntu0.1~esm1fixed
Ubuntulibonnx1t64noble1.14.1-2.1ubuntu0.1~esm1fixed
Ubuntupython3-onnxnoble1.14.1-2.1ubuntu0.1~esm1fixed
Ubuntuonnxpro1.13.1-3vulnerable
Ubuntuonnxpro1.13.1-3build1vulnerable
Ubuntuonnxpro1.14.1-2vulnerable
Ubuntuonnxpro1.14.1-2.1vulnerable
Ubuntuonnxpro1.14.1-2.1build1vulnerable
Ubuntuonnxpro1.14.1-2.1build2vulnerable
Ubuntuonnxpro1.14.1-2.1ubuntu0.1~esm1fixed
Ubuntuonnxpro1.13.1-3vulnerable
Ubuntuonnxpro1.13.1-3build1vulnerable
Ubuntuonnxpro1.14.1-2vulnerable
Ubuntuonnxpro1.14.1-2.1vulnerable
Ubuntuonnxpro1.14.1-2.1build1vulnerable
Ubuntuonnxpro1.14.1-2.1build2vulnerable
Ubuntuonnxpro1.14.1-2.1ubuntu0.1~esm1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianonnxsourcesid1.16.2-1not yet assignedNot reported[1075852]
Debianonnxsourceforky1.16.2-1not yet assignedNot reported[1075852]
Debianonnxsourcetrixie1.16.2-1not yet assignedNot reported[1075852]
DebianonnxsourcebookwormNot affectedunimportantNot reported[1075852]
Ubuntuonnxdebnoble1.14.1-2.1ubuntu0.1~esm1Not reportedNot reportedNot reported
Ubuntulibonnx-devdebnoble1.14.1-2.1ubuntu0.1~esm1Not reportedNot reportedNot reported
Ubuntulibonnx-testdatadebnoble1.14.1-2.1ubuntu0.1~esm1Not reportedNot reportedNot reported
Ubuntulibonnx1t64debnoble1.14.1-2.1ubuntu0.1~esm1Not reportedNot reportedNot reported
Ubuntupython3-onnxdebnoble1.14.1-2.1ubuntu0.1~esm1Not reportedNot reportedNot reported
Ubuntuonnxdebpro1.14.1-2.1ubuntu0.1~esm1Not reportedUSN-8307-1Not reported
Ubuntuonnxdebpro1.14.1-2.1ubuntu0.1~esm1Not reportedUBUNTU-CVE-2024-5187Not reported

[Debian bug #1075852]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libonnx1]Not affected

    Source package: [onnx]

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

      Not affected

      usn · onnx · debian · bookworm

    • 1.12.0-2+b4 · arm64 · bookworm

      Not affected

      usn · onnx · debian · bookworm

  • [libonnx-dev]Not affected

    Source package: [onnx]

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

      Not affected

      usn · onnx · debian · bookworm

    • 1.12.0-2+b4 · arm64 · bookworm

      Not affected

      usn · onnx · debian · bookworm

  • [libonnxifi]Not affected

    Source package: [onnx]

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

      Not affected

      usn · onnx · debian · bookworm

    • 1.12.0-2+b4 · arm64 · bookworm

      Not affected

      usn · onnx · debian · bookworm

  • [libonnx-testdata]Not affected

    Source package: [onnx]

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

      Not affected

      usn · onnx · debian · bookworm

    • 1.12.0-2 · all · bookworm

      Not affected

      usn · onnx · debian · bookworm

  • [python3-onnx]Not affected

    Source package: [onnx]

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

      Not affected

      usn · onnx · debian · bookworm

    • 1.12.0-2+b4 · arm64 · bookworm

      Not affected

      usn · onnx · debian · bookworm

[Debian 13 (Trixie)]

  • Source package: [onnx]

    Details (2)
    • 1.17.0-3+b1 · amd64 · trixie

      Fixed · Fixed: 1.16.2-1

      usn · onnx · debian · 13

    • 1.17.0-3+b1 · arm64 · trixie

      Fixed · Fixed: 1.16.2-1

      usn · onnx · debian · 13

  • Source package: [onnx]

    Details (2)
    • 1.17.0-3+b1 · amd64 · trixie

      Fixed · Fixed: 1.16.2-1

      usn · onnx · debian · 13

    • 1.17.0-3+b1 · arm64 · trixie

      Fixed · Fixed: 1.16.2-1

      usn · onnx · debian · 13

  • Source package: [onnx]

    Details (2)
    • 1.17.0-3 · all · trixie

      Fixed · Fixed: 1.16.2-1

      usn · onnx · debian · 13

    • 1.17.0-3 · all · trixie

      Fixed · Fixed: 1.16.2-1

      usn · onnx · debian · 13

  • Source package: [onnx]

    Details (2)
    • 1.17.0-3+b1 · amd64 · trixie

      Fixed · Fixed: 1.16.2-1

      usn · onnx · debian · 13

    • 1.17.0-3+b1 · arm64 · trixie

      Fixed · Fixed: 1.16.2-1

      usn · onnx · debian · 13

Observed:

References