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

exploitDog

github логотип

GHSA-x67x-vg9m-65c3

Опубликовано: 25 авг. 2021
Источник: github
Github: Прошло ревью
CVSS3: 9.8

Описание

Integer overflow in base64

Affected versions of this crate suffered from an integer overflow bug when calculating the size of a buffer to use when encoding base64 using the encode_config_buf and encode_config functions. If the input string was large, this would cause a buffer to be allocated that was too small. Since this function writes to the buffer using unsafe code, it would allow an attacker to write beyond the buffer, causing memory corruption and possibly the execution of arbitrary code.

This flaw was corrected by using checked arithmetic to calculate the size of the buffer.

Пакеты

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

base64

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

< 0.5.2

0.5.2

EPSS

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

9.8 Critical

CVSS3

Дефекты

CWE-119

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

CVSS3: 9.8
nvd
около 8 лет назад

rust-base64 version <= 0.5.1 is vulnerable to a buffer overflow when calculating the size of a buffer to use when encoding base64 using the 'encode_config_buf' and 'encode_config' functions

CVSS3: 9.8
debian
около 8 лет назад

rust-base64 version <= 0.5.1 is vulnerable to a buffer overflow when c ...

EPSS

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

9.8 Critical

CVSS3

Дефекты

CWE-119