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

exploitDog

github логотип

GHSA-g3vv-g2j5-45f2

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

Описание

ipld/go-codec-dagpb panics when processing certain blocks

Impact

Decoding certain blocks using the go-ipld-prime version of the dag-pb codec (go-codec-dagpb) can cause a panic. The panic comes from an assumption that the reported link length is accurate, but if the block ends before that reported length then it’s a buffer overread.

Patches

The issue is fixed in v1.3.1 and above.

Consumers can discover the versions of go-codec-dagpb in a module's dependency graph using the following command in the module root:

go mod graph | grep go-codec-dagpb

Workarounds

You can work around this issue without upgrading by recovering panics higher in the call stack of the goroutine that calls the defective code.

For more information

If you have any questions or comments about this advisory:

Пакеты

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

github.com/ipld/go-codec-dagpb

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

< 1.3.1

1.3.1

EPSS

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

7.5 High

CVSS3

Дефекты

CWE-119

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

CVSS3: 7.5
nvd
около 3 лет назад

The dag-pb codec can panic when decoding invalid blocks.

EPSS

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

7.5 High

CVSS3

Дефекты

CWE-119