Skip to content
HighVulnerability

CVE-2024-5187: onnx/onnx arbitrary file overwrite via path traversal in tar extraction

Identifier
CVE-2024-5187
Published
Record updated
View JSON
Affected
  • onnx < 1.16.2
Fixed in
1.16.2
  • released August 1, 2024, 56 days after disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.2%

Summary

CVE-2024-5187 affects the `download_model_with_test_data` function in the onnx/onnx framework, version 1.16.0. The function extracts tar files without checking the paths inside them, so a malicious tar file can use path traversal to overwrite arbitrary files, such as `/home/kali/.ssh/authorized_keys` via an absolute path. An attacker could thereby overwrite any file on the system, potentially leading to remote code execution or deletion of system, personal, or application files.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.