rgb
Affected
- introduced
0.5.4, fixed0.8.20(semver)
Fixed versions
0.8.20
Fix
- Fixed version
0.8.20cargo update -p rgb --precise 0.8.20
Advisory
Also known as: CVE-2020-25016, GHSA-g4rw-8m5q-6453
Allows viewing and modifying arbitrary structs as bytes
Affected versions of rgb crate allow viewing and modifying data of any type T wrapped in RGB<T> as bytes,
and do not correctly constrain RGB<T> and other wrapper structures to the types for which it is safe to do so.
Safety violation possible for a type wrapped in RGB<T> and similar wrapper structures:
T contains padding, viewing it as bytes may lead to exposure of contents of uninitialized memory.T contains a pointer, modifying it as bytes may lead to dereferencing of arbitrary pointers.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.
Critical Basis: CVSS v3 score 9.1, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
0.5.4, fixed 0.8.20 (semver)0.8.20
0.8.20cargo update -p rgb --precise 0.8.20Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: RustSec Advisory Database · CC0-1.0