INCIDENT MAP

Browse / Unsafe Model Loading and Supply Chain / CVE-2022-25882

Directory Traversal in onnx

CVE-2022-25882 ยท 2023-01-26 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)
CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
1.7% chance of exploitation in 30 days

How it works, in short

An ONNX model's external tensor data path is not confined to the model directory, so a crafted model can read files outside it. (Our summary, written by a model. The source text is below.)

Details

Versions of the package onnx before 1.13.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, for example "../../../etc/passwd"

References

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