icon

We found results for “

WS-2022-0463

Good to know:

icon

Date: August 30, 2022

cell-project used incorrect variance when projecting through &Cell<T>. The issue lies in the implementation of the cell_project macro which used field as *const _ instead of field as *mut _. The problem being that *const T is covariant in T while *mut T is invariant in T. Keep in mind that &Cell<T> is invariant in T, so casting to *const T relaxed the variance, and lead to unsoundness, as shown in the example below. fixed in 0.1.4.

Language: RUST

Severity Score

Severity Score

Weakness Type (CWE)

Function Call With Incorrect Variable or Reference as Argument

CWE-688

Top Fix

icon

Upgrade Version

Upgrade to version cell-project - 0.1.4

Learn More

CVSS v3.1

Base Score:
Attack Vector (AV): LOCAL
Attack Complexity (AC): LOW
Privileges Required (PR): LOW
User Interaction (UI): NONE
Scope (S): UNCHANGED
Confidentiality (C): NONE
Integrity (I): NONE
Availability (A): HIGH

Do you need more information?

Contact Us