ONNXGHSA-whh8-fjgc-qp73
Onnx Directory Traversal vulnerability
High7.5CVE-2024-27318 · Published Feb 23, 2024 · updated Sep 10, 2026
Versions of the package onnx before and including 1.15.0 are vulnerable to Directory Traversal as the external_data field of the tensor proto can have a path to the file which is outside the model current directory or user-provided directory. The vulnerability occurs as a bypass for the patch added for CVE-2022-25882.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| onnx PyPI | < 1.16.0 | 1.16.0 |
Details and references
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-22
- Also known as
- CVE-2024-27318, PYSEC-2024-222
- nvd.nist.gov/vuln/detail/CVE-2024-27318
- github.com/onnx/onnx/commit/66b7fb630903fdcf3e83b6b6d56d82e904264a20
- github.com/onnx/onnx
- github.com/pypa/advisory-database/tree/main/vulns/onnx/PYSEC-2024-222.yaml
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FGTBH5ZYL2LGYHIJDHN2MAUURIR5E7PY
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TFJJID2IZDOLFDMWVYTBDI75ZJQC6JOL
- security.snyk.io/vuln/SNYK-PYTHON-ONNX-2395479
More ONNX advisories
All ONNX| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Mar 31 | onnx Vulnerable to Path Traversal via Symlink | High | 1.21.0 |
| Mar 16 | ONNX: insufficient authenticity check | High8.6 | 1.21.0rc1 |
| Mar 202025 | Open Neural Network Exchange (ONNX) Path Traversal Vulnerability | High8.1 | 1.17.0 |
| Jun 62024 | onnx allows Arbitrary File Overwrite in download_model_with_test_data | High8.8 | 1.16.2 |
| Feb 232024 | Onnx Out-of-bounds Read vulnerability | Medium4.4 | 1.16.0 |
| Jan 262023 | Directory Traversal in onnx | High7.5 | 1.13.0 |