ghsa-6rq9-53c3-f7vj
Vulnerability from github
Published
2024-06-06 21:30
Modified
2025-01-27 23:08
Severity ?
Summary
onnx allows Arbitrary File Overwrite in download_model_with_test_data
Details
A vulnerability in the download_model_with_test_data
function of the onnx/onnx framework, versions before 1.16.2, allow 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.
{ "affected": [ { "package": { "ecosystem": "PyPI", "name": "onnx" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "1.16.2" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2024-5187" ], "database_specific": { "cwe_ids": [ "CWE-22" ], "github_reviewed": true, "github_reviewed_at": "2024-10-23T17:39:17Z", "nvd_published_at": "2024-06-06T19:16:06Z", "severity": "HIGH" }, "details": "A vulnerability in the `download_model_with_test_data` function of the onnx/onnx framework, versions before 1.16.2, allow 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\u0027s 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.", "id": "GHSA-6rq9-53c3-f7vj", "modified": "2025-01-27T23:08:34Z", "published": "2024-06-06T21:30:37Z", "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-5187" }, { "type": "WEB", "url": "https://github.com/onnx/onnx/issues/6215" }, { "type": "WEB", "url": "https://github.com/onnx/onnx/pull/6145" }, { "type": "WEB", "url": "https://github.com/onnx/onnx/pull/6222" }, { "type": "WEB", "url": "https://github.com/onnx/onnx/commit/1b70f9b673259360b6a2339c4bd97db9ea6e552f" }, { "type": "WEB", "url": "https://github.com/onnx/onnx/commit/3fc3845edb048df559aa2a839e39e95503a0ee34" }, { "type": "PACKAGE", "url": "https://github.com/onnx/onnx" }, { "type": "WEB", "url": "https://github.com/onnx/onnx/releases/tag/v1.16.2" }, { "type": "WEB", "url": "https://huntr.com/bounties/50235ebd-3410-4ada-b064-1a648e11237e" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H", "type": "CVSS_V3" } ], "summary": "onnx allows Arbitrary File Overwrite in download_model_with_test_data" }
Loading...
Loading...
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.