Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWc0cnctOG01cS02NDUz
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.
Permalink: https://github.com/advisories/GHSA-g4rw-8m5q-6453JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWc0cnctOG01cS02NDUz
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: over 2 years ago
Updated: 11 months ago
CVSS Score: 9.1
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Identifiers: GHSA-g4rw-8m5q-6453, CVE-2020-25016
References:
- https://nvd.nist.gov/vuln/detail/CVE-2020-25016
- https://github.com/kornelski/rust-rgb/issues/35
- https://rustsec.org/advisories/RUSTSEC-2020-0029.html
- https://github.com/advisories/GHSA-g4rw-8m5q-6453
Blast Radius: 30.0
Affected Packages
cargo:rgb
Dependent packages: 156Dependent repositories: 1,958
Downloads: 13,326,122 total
Affected Version Ranges: >= 0.5.4, < 0.8.20
Fixed in: 0.8.20
All affected versions: 0.5.4, 0.5.5, 0.5.6, 0.5.7, 0.5.8, 0.7.0, 0.7.1, 0.7.2, 0.8.0, 0.8.1, 0.8.2, 0.8.3, 0.8.4, 0.8.5, 0.8.6, 0.8.7, 0.8.8, 0.8.9, 0.8.10, 0.8.11, 0.8.12, 0.8.13, 0.8.14, 0.8.16, 0.8.17, 0.8.18
All unaffected versions: 0.1.0, 0.2.0, 0.3.0, 0.4.0, 0.5.0, 0.5.1, 0.5.2, 0.5.3, 0.8.20, 0.8.21, 0.8.22, 0.8.23, 0.8.24, 0.8.25, 0.8.27, 0.8.28, 0.8.29, 0.8.30, 0.8.31, 0.8.32, 0.8.33, 0.8.34, 0.8.35, 0.8.36, 0.8.37