Security mailing lists by PureSourceCode

CVE-2024-5187

HIGH 8.8CVSS 3.1

onnx allows Arbitrary File Overwrite in download_model_with_test_data

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.

Published
6 Jun 2024
Last modified
17 Jun 2026
Assigned by
security@huntr.dev
NVD status
Modified
Weakness
CWE-22
Also known as
CVE-2025-51480GHSA-6rq9-53c3-f7vjPYSEC-2025-148
Sources
NVDJSONOSV GHSA-6rq9-53c3-f7vjJSONOSV PYSEC-2025-148JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 8.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
OSV PyPA CVSS 3.1 HIGH 8.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD security@huntr.dev (Secondary) CVSS 3.0 HIGH 8.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.0 HIGH 8.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD linuxfoundation onnx
cpe:2.3:a:linuxfoundation:onnx:1.16.0:*:*:*:*:*:*:*
= 1.16.0
OSV PyPI onnx < 1.16.2 1.16.2
OSV PyPI onnx <= 1.17.0

References

History

  • 25 Nov 2026 20:55 UTC · NVD: first stored (published 6 Jun 2024)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 22 Jul 2025)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 6 Jun 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.