Security mailing lists by PureSourceCode

RUSTSEC-2023-0047

MEDIUM

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.

Published
26 Jun 2023
Last modified
8 Nov 2023
Also known as
GHSA-f9g6-fp84-fv92
Sources
OSV GHSA-f9g6-fp84-fv92JSONOSVJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV crates.io lmdb-rs <= 0.7.6
OSV crates.io lmdb-rs >= 0.0.0-0

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 26 Jun 2023)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 19 Jul 2023)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.