GHSA-g4rw-8m5q-6453

    Dashboard / Vulnerabilities / GHSA-g4rw-8m5q-6453

    GHSA-g4rw-8m5q-6453

    Published: 25 Aug 2021Last Modified: 8 Nov 2023

    Summary: Out of bounds access in rgb

    Details: 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: * 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.

    Affected packages

    Package

    Name: rgb

    Purl: pkg:cargo/rgb

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0.5.4
    Fixed -0.8.20

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-g4rw-8m5q-6453 | CVE-DB