CVE-2024-27318
JSON

7.5high

Onnx Directory Traversal vulnerability

Severity
7.5high CVSS:3.1 by HiddenLayer
Exploit likelihood
1.19% (higher than 68% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
HiddenLayer
Also known as
GHSA-whh8-fjgc-qp73PYSEC-2024-222

Description

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

Product or packageVersionsReported by
onnxup to 1.15.0CVE List
linuxfoundation onnxup to 1.15.0, before 1.16.0CVE List, NVD
onnx (PyPI)before 1.16.0, before 66b7fb630903fdcf3e83b6b6d56d82e904264a20GitHub Advisory Database, PyPA Advisory Database
fedoraproject fedora39, 40NVD

All scores

HiddenLayer7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
PyPA Advisory Database7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-22

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Las versiones del paquete onnx anteriores a la 1.15.0 inclusive son vulnerables a Directory Traversal ya que el campo external_data del tensor proto puede tener una ruta al archivo que está fuera del directorio actual del modelo o del directorio proporcionado por el usuario. La vulnerabilidad se produce como una omisión del parche agregado para CVE-2022-25882.

References

https://github.com/onnx/onnx/commit/66b7fb630903fdcf3e83b6b6d56d82e904264a20fix, patch, web
https://security.snyk.io/vuln/SNYK-PYTHON-ONNX-2395479product, web
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TFJJID2IZDOLFDMWVYTBDI75ZJQC6JOL/third-party-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FGTBH5ZYL2LGYHIJDHN2MAUURIR5E7PY/third-party-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2024-27318advisory
https://github.com/onnx/onnxpackage
https://github.com/pypa/advisory-database/tree/main/vulns/onnx/PYSEC-2024-222.yamlweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FGTBH5ZYL2LGYHIJDHN2MAUURIR5E7PYweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TFJJID2IZDOLFDMWVYTBDI75ZJQC6JOLweb
https://github.com/advisories/GHSA-whh8-fjgc-qp73advisory

Sources

SourceRecordLicence
CVE ListCVE-2024-27318 changed 2025-02-13CVE Terms of Use
GitHub Advisory DatabaseGHSA-whh8-fjgc-qp73 changed 2026-09-10CC-BY-4.0
NVDCVE-2024-27318 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2024-222 changed 2026-06-10CC-BY-4.0