# CVE-2024-7776: Arbitrary File Overwrite in onnx/onnx

- Severity: High 8.1 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.53%, higher than 75% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-03-20T10:10:58.740Z
- Modified: 2026-06-17T08:20:53.973Z
- Also known as: GHSA-h36j-8vv3-cj52, PYSEC-2025-10
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: @huntr_ai

## Description

A vulnerability in the `download_model` function of the onnx/onnx framework, before and including version 1.16.1, allows for arbitrary file overwrite due to inadequate prevention of path traversal attacks in malicious tar files. This vulnerability can be exploited by an attacker to overwrite files in the user's directory, potentially leading to remote command execution.

(As written by CVE List.)

## Affected

- onnx onnx/onnx: from unspecified up to latest
- onnx (PyPI): before 1.17.0; before 1.16.2
- onnx onnx: up to 1.16.1

## Every score

- @huntr_ai: CVSS:3.0 8.1 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H`
- GitHub: CVSS:3.0 8.1 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`

## References

- <https://huntr.com/bounties/a7a46cf6-1fa0-454b-988c-62d222e83f63> (exploit, evidence, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-7776> (advisory)
- <https://github.com/onnx/onnx/pull/6222> (web)
- <https://github.com/onnx/onnx/commit/1b70f9b673259360b6a2339c4bd97db9ea6e552f> (web)
- <https://github.com/onnx/onnx> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/onnx/PYSEC-2025-10.yaml> (web)
- <https://github.com/advisories/GHSA-h36j-8vv3-cj52> (advisory)

## Sources

- CVE List: [CVE-2024-7776](https://www.cve.org/CVERecord?id=CVE-2024-7776), CVE Terms of Use, modified 2025-03-20
- GitHub Advisory Database: [GHSA-h36j-8vv3-cj52](https://github.com/advisories/GHSA-h36j-8vv3-cj52), CC-BY-4.0, modified 2025-03-27
- NVD: [CVE-2024-7776](https://nvd.nist.gov/vuln/detail/CVE-2024-7776), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2025-10](https://osv.dev/vulnerability/PYSEC-2025-10), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2024-7776 · Whole record: https://cve.day/CVE-2024-7776.json · Rebuilt by cve.day 2026-11-25T22:58:52.383Z
