# CVE-2024-27318: Onnx Directory Traversal vulnerability

- Severity: High 7.5 (CVSS:3.1, scored by HiddenLayer) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.19%, higher than 68% of CVEs (2026-12-01)
- Published: 2024-02-23T17:37:36.715Z
- Modified: 2026-09-10T03:50:00.253Z
- Also known as: GHSA-whh8-fjgc-qp73, PYSEC-2024-222
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: HiddenLayer

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

(As written by CVE List.)

## Affected

- onnx: up to 1.15.0
- linuxfoundation onnx: up to 1.15.0; before 1.16.0
- onnx (PyPI): before 1.16.0; before 66b7fb630903fdcf3e83b6b6d56d82e904264a20
- fedoraproject fedora: 39; 40

## Every score

- HiddenLayer: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/onnx/onnx/commit/66b7fb630903fdcf3e83b6b6d56d82e904264a20> (fix, patch, web)
- <https://security.snyk.io/vuln/SNYK-PYTHON-ONNX-2395479> (product, 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-27318> (advisory)
- <https://github.com/onnx/onnx> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/onnx/PYSEC-2024-222.yaml> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FGTBH5ZYL2LGYHIJDHN2MAUURIR5E7PY> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TFJJID2IZDOLFDMWVYTBDI75ZJQC6JOL> (web)
- <https://github.com/advisories/GHSA-whh8-fjgc-qp73> (advisory)

## Sources

- CVE List: [CVE-2024-27318](https://www.cve.org/CVERecord?id=CVE-2024-27318), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-whh8-fjgc-qp73](https://github.com/advisories/GHSA-whh8-fjgc-qp73), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-27318](https://nvd.nist.gov/vuln/detail/CVE-2024-27318), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-222](https://osv.dev/vulnerability/PYSEC-2024-222), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2024-27318 · Whole record: https://cve.day/CVE-2024-27318.json · Rebuilt by cve.day 2026-11-25T22:58:37.031Z
