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.
{
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2023-07-19T22:09:38Z",
"severity": "MODERATE",
"cwe_ids": []
}