8.8

CVE-2024-5187: Arbitrary File Overwrite in download_model_with_test_data in onnx/onnx

Modified
AliasesGHSA-6rq9-53c3-f7vjCVE-2025-51480PYSEC-2025-148
Published 06-06-2024Last modified 01-08-2024

Vulnerability summary

CVE-2024-5187 is a high (CVSS 8.8) vulnerability in linuxfoundation onnx. EPSS estimates a 1.17% chance of exploitation in the next 30 days, higher than 68.4% of scored vulnerabilities. 3 public exploits are recorded.

Priority
Prioritisepublic exploit

Public exploit (GitHub, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
8.8/10
010
High · v3.0 (CVE.org)
EPSS score
1.17%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits3github, reference

Timeline

  1. 06-06-2024
    PublishedVulnerability first disclosed.
  2. 01-08-2024
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

6 scores · 5 sources · 2 versions

EPSS trend

Probability

1.17%

Chance of exploitation in the next 30 days

Percentile

68%

Versus all other CVEs

30-day change

No change 0.00 pp

From 1.17% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

3 found
  • githubUnverified

    Onnx

    Maturity: poc

  • referenceUnverified

    Exploit Reference (huntr.com)

    Maturity: unknown

  • referenceUnverified

    Exploit Reference (gecko.security)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Debian1 product
  • onnx< 1.16.2-1
Linuxfoundation1 product
Onnx1 product
PyPI1 product
  • onnx< 1.16.2 | ≤ 1.17.0
Ubuntu1 product
  • onnx< 1.14.1-2.1ubuntu0.1~esm1 | All versions (No fix recorded)

5 vendors · 5 products

References

21 links
Show all 21 references