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

exploitDog

github логотип

GHSA-q264-w97q-q778

Опубликовано: 10 фев. 2023
Источник: github
Github: Прошло ревью
CVSS3: 5.9

Описание

Denial of service via HAMT Decoding Panics

Impact

Trying to read malformed HAMT sharded directories can cause panics and virtual memory leaks. If you are reading untrusted user input, an attacker can then trigger a panic.

This is caused by bogus fanout parameter in the HAMT directory nodes. This include checks returned in ipfs/go-bitfield GHSA-2h6c-j3gf-xp9r, as well as limiting the fanout to <= 1024 (to avoid attempts of arbitrary sized allocations).

Patches

Workarounds

Do not feed untrusted user data to the decoding functions.

References

Пакеты

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

github.com/ipfs/go-unixfs

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

< 0.4.3

0.4.3

EPSS

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

5.9 Medium

CVSS3

Дефекты

CWE-400

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

CVSS3: 5.9
nvd
почти 3 года назад

go-unixfs is an implementation of a unix-like filesystem on top of an ipld merkledag. Trying to read malformed HAMT sharded directories can cause panics and virtual memory leaks. If you are reading untrusted user input, an attacker can then trigger a panic. This is caused by bogus `fanout` parameter in the HAMT directory nodes. Users are advised to upgrade to version 0.4.3 to resolve this issue. Users unable to upgrade should not feed untrusted user data to the decoding functions.

EPSS

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

5.9 Medium

CVSS3

Дефекты

CWE-400