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

exploitDog

github логотип

GHSA-fqq2-xp7m-xvm8

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

Описание

Data race in ruspiro-singleton

Singleton<T> is meant to be a static object that can be initialized lazily. In order to satisfy the requirement that static items must implement Sync, Singleton implemented both Sync and Send unconditionally.

This allows for a bug where non-Sync types such as Cell can be used in singletons and cause data races in concurrent programs.

The flaw was corrected in commit b0d2bd20e by adding trait bounds, requiring the contaiend type to implement Sync.

Пакеты

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

ruspiro-singleton

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

< 0.4.1

0.4.1

EPSS

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

8.1 High

CVSS3

Дефекты

CWE-119
CWE-362

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

CVSS3: 8.1
nvd
больше 4 лет назад

An issue was discovered in the ruspiro-singleton crate before 0.4.1 for Rust. In Singleton, Send and Sync do not have bounds checks.

EPSS

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

8.1 High

CVSS3

Дефекты

CWE-119
CWE-362