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

exploitDog

github логотип

GHSA-g4rw-8m5q-6453

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

Описание

Out of bounds access in rgb

Affected versions of rgb crate allow viewing and modifying data of any type T wrapped in RGB as bytes, and do not correctly constrain RGB and other wrapper structures to the types for which it is safe to do so.

Safety violation possible for a type wrapped in RGB and similar wrapper structures:

  • If T contains padding, viewing it as bytes may lead to exposure of contents of uninitialized memory.
  • If T contains a pointer, modifying it as bytes may lead to dereferencing of arbitrary pointers.
  • Any safety and/or validity invariants for T may be violated.

The issue was resolved by requiring all types wrapped in structures provided by RGB crate to implement an unsafe marker trait.

Пакеты

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

rgb

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

>= 0.5.4, < 0.8.20

0.8.20

EPSS

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

9.1 Critical

CVSS3

Дефекты

CWE-119
CWE-843

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

CVSS3: 9.1
ubuntu
больше 5 лет назад

A safety violation was discovered in the rgb crate before 0.8.20 for Rust, leading to (for example) dereferencing of arbitrary pointers or disclosure of uninitialized memory. This occurs because structs can be treated as bytes for read and write operations.

CVSS3: 9.1
nvd
больше 5 лет назад

A safety violation was discovered in the rgb crate before 0.8.20 for Rust, leading to (for example) dereferencing of arbitrary pointers or disclosure of uninitialized memory. This occurs because structs can be treated as bytes for read and write operations.

CVSS3: 9.1
debian
больше 5 лет назад

A safety violation was discovered in the rgb crate before 0.8.20 for R ...

EPSS

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

9.1 Critical

CVSS3

Дефекты

CWE-119
CWE-843