GHSA-f9g6-fp84-fv92 – lmdb-rs
Package
Manager: cargo
Name: lmdb-rs
Vulnerable Version: >=0 <=0.7.6
Severity
Level: Medium
CVSS v3.1: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N/E:U/RL:O/RC:C
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
EPSS: N/A pctlN/A
Details
impl `FromMdbValue` for bool is unsound The implementation of `FromMdbValue` has 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 are available [here](https://github.com/vhbit/lmdb-rs/issues/67).
Metadata
Created: 2023-07-19T22:09:38Z
Modified: 2023-07-19T22:09:38Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/07/GHSA-f9g6-fp84-fv92/GHSA-f9g6-fp84-fv92.json
CWE IDs: []
Alternative ID: N/A
Finding: F113
Auto approve: 1