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

exploitDog

github логотип

GHSA-c79c-gwph-gqfm

Опубликовано: 24 мая 2022
Источник: github
Github: Прошло ревью
CVSS3: 5.5

Описание

net2 invalidly assumes the memory layout of std::net::SocketAddr

The net2 crate has assumed std::net::SocketAddrV4 and std::net::SocketAddrV6 have the same memory layout as the system C representation sockaddr. It has simply casted the pointers to convert the socket addresses to the system representation. The standard library does not say anything about the memory layout, and this will cause invalid memory access if the standard library changes the implementation. No warnings or errors will be emitted once the change happens.

Пакеты

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

net2

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

< 0.2.36

0.2.36

EPSS

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

5.5 Medium

CVSS3

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

CVSS3: 5.5
ubuntu
около 5 лет назад

An issue was discovered in the net2 crate before 0.2.36 for Rust. It has false expectations about the std::net::SocketAddr memory representation.

CVSS3: 5.5
nvd
около 5 лет назад

An issue was discovered in the net2 crate before 0.2.36 for Rust. It has false expectations about the std::net::SocketAddr memory representation.

CVSS3: 5.5
debian
около 5 лет назад

An issue was discovered in the net2 crate before 0.2.36 for Rust. It h ...

EPSS

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

5.5 Medium

CVSS3