Advisory

RUSTSEC-2023-0047

Also known as: GHSA-f9g6-fp84-fv92

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.

Severity

Not rated by the source.

Dates

Published
2023-06-26 12:00 UTC
Modified
2023-11-08 04:18 UTC

Affected packages and fixes

lmdb-rs

crates.io · All systems

Affected

  • introduced 0.0.0-0 (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: RustSec Advisory Database · CC0-1.0

Sources & licences