Read the docs
TI-2024-04814 Aliases CVE-2024-5187GHSA-6rq9-53c3-f7vj

Arbitrary File Overwrite in download_model_with_test_data in onnx/onnx

Priority HIGH 73CWE-22Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.01168 67th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed onnx (PyPI): 1.16.2

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
onnxonnx/onnxup to latest—No fix listedCNA
—onnx (PyPI)before 1.16.21.16.2Patch availableGHSA-6rq9-53c3-f7vj
  • onnx/onnx Vendoronnx Affected up to latest Fixed in — No fix listed CNA
  • onnx (PyPI) Vendor— Affected before 1.16.2 Fixed in 1.16.2 Patch available GHSA-6rq9-53c3-f7vj

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:linuxfoundation:onnx:1.16.0:*:*:*:*:*:*:*1.16.0Vulnerablebackstage
  • cpe:2.3:a:linuxfoundation:onnx:1.16.0:*:*:*:*:*:*:* Versions 1.16.0 Vulnerable ·backstage

Remediation

  • Fix · GHSA-6rq9-53c3-f7vj onnx (PyPI) Fixed in 1.16.2 Advisory →

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-5187
  2. 2026-10-03 Alias added: GHSA-6rq9-53c3-f7vj

References

  • TI-2026-22763 ONNX Untrusted Model Repository Warnings Suppressed by silent=True in onnx.hub.load() — Silent Supply-Chain Attack CVSS 3.1CRITICAL 9.1
  • TI-2026-21896 ONNX: Path Traversal via Symlink CVSS 4.0HIGH 8.7
  • TI-2024-07209 Arbitrary File Overwrite in onnx/onnx CVSS 3.1CRITICAL 9.1
  • TI-2026-36338 ONNX symlink-following and path-traversal arbitrary file write CVSS 4.0MEDIUM 6.8
  • TI-2026-32442 ONNX: Null Pointer Dereference in Upsample Version Converter Adapter (Zero Inputs) CVSS 3.1MEDIUM 5.5
  • TI-2026-26712 ONNX: External Data Symlink Traversal CVSS 3.1MEDIUM 5.5
See all 16 →

Sources