RUSTSEC-2023-0047

    Dashboard / Vulnerabilities / RUSTSEC-2023-0047

    RUSTSEC-2023-0047

    Published: 26 Jun 2023Last Modified: 8 Nov 2023

    Summary: impl `FromMdbValue` for bool is unsound

    Details: The implementation of `FromMdbValue` have several unsoundness issues. First of all, it allows to reinterpret arbitrary bytes as a bool and could make undefined behavior happen with safe function. Secondly, it allows transmuting pointer without taking memory layout into consideration. The details of reproducing the bug were included in url above.

    Affected packages

    Package

    Name: lmdb-rs

    Purl: pkg:cargo/lmdb-rs

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0.0.0-0
    Fixed -None

    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
    RUSTSEC-2023-0047 | CVE-DB