Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. lmdb-rs
  4. ›
  5. GHSA-f9g6-fp84-fv92

GHSA-f9g6-fp84-fv92: impl `FromMdbValue` for bool is unsound

July 19, 2023

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.

References

  • github.com/advisories/GHSA-f9g6-fp84-fv92
  • github.com/vhbit/lmdb-rs
  • github.com/vhbit/lmdb-rs/issues/67
  • rustsec.org/advisories/RUSTSEC-2023-0047.html

Code Behaviors & Features

Detect and mitigate GHSA-f9g6-fp84-fv92 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.7.6

Solution

Unfortunately, there is no solution available yet.

Source file

cargo/lmdb-rs/GHSA-f9g6-fp84-fv92.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:40 +0000.