INCIDENT MAP

Browse / Unsafe Model Loading and Supply Chain / CVE-2024-27318

Onnx Directory Traversal vulnerability

CVE-2024-27318 ยท 2024-02-23 high

Class
Unsafe Model Loading and Supply Chain (filed by a model that read the advisory)
Technique
Path traversal and file access
Also involves
AI Framework and Platform Flaws
Affected
onnx (PyPI)
Gets past
Path restriction
CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
1.2% chance of exploitation in 30 days

How it works, in short

An ONNX tensor's external_data path can point outside the model directory, getting around the earlier fix and reading arbitrary files during model loading. (Our summary, written by a model. The source text is below.)

Details

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.

References

Source: GitHub Advisory Database, used under CC BY 4.0.