Advisory

GHSA-f9g6-fp84-fv92

Also known as: RUSTSEC-2023-0047

Summary

impl FromMdbValue for bool is unsound

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-07-19 22:09 UTC
Modified
2023-11-08 04:18 UTC

Affected packages and fixes

lmdb-rs

crates.io · All systems

Affected

  • introduced 0, last affected 0.7.6 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences