Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-cmw6-hcpp-c6jp

Опубликовано: 01 апр. 2026
Источник: github
Github: Прошло ревью
CVSS3: 4.7

Описание

ONNX: Arbitrary File Read via ExternalData Hardlink Bypass in ONNX load

Summary

The issue is in onnx.load — the code checks for symlinks to prevent path traversal, but completely misses hardlinks, which is the problem, since a hardlink looks exactly like a regular file on the filesystem.

The Real Problem

The validator in onnx/checker.cc only calls is_symlink() and never checks the inode or st_nlink, so a hardlink walks right through every security check without any issues.

Impact

Especially dangerous in AI supply chain scenarios like HuggingFace — a single malicious model is enough to silently steal secrets from the victim's machine without them noticing anything.

Пакеты

Наименование

onnx

pip
Затронутые версииВерсия исправления

<= 1.20.1

1.21.0

EPSS

Процентиль: 7%
0.00176
Низкий

4.7 Medium

CVSS3

Дефекты

CWE-22
CWE-61

Связанные уязвимости

CVSS3: 4.7
ubuntu
4 месяца назад

Open Neural Network Exchange (ONNX) is an open standard for machine learning interoperability. Prior to version 1.21.0, there is an issue in onnx.load, the code checks for symlinks to prevent path traversal, but completely misses hardlinks because a hardlink looks exactly like a regular file on the filesystem. This issue has been patched in version 1.21.0.

CVSS3: 4.7
redhat
4 месяца назад

Open Neural Network Exchange (ONNX) is an open standard for machine learning interoperability. Prior to version 1.21.0, there is an issue in onnx.load, the code checks for symlinks to prevent path traversal, but completely misses hardlinks because a hardlink looks exactly like a regular file on the filesystem. This issue has been patched in version 1.21.0.

CVSS3: 4.7
nvd
4 месяца назад

Open Neural Network Exchange (ONNX) is an open standard for machine learning interoperability. Prior to version 1.21.0, there is an issue in onnx.load, the code checks for symlinks to prevent path traversal, but completely misses hardlinks because a hardlink looks exactly like a regular file on the filesystem. This issue has been patched in version 1.21.0.

CVSS3: 4.7
msrc
4 месяца назад

ONNX: Arbitrary File Read via ExternalData Hardlink Bypass in ONNX load

CVSS3: 4.7
debian
4 месяца назад

Open Neural Network Exchange (ONNX) is an open standard for machine le ...

EPSS

Процентиль: 7%
0.00176
Низкий

4.7 Medium

CVSS3

Дефекты

CWE-22
CWE-61