rustsec-2023-0047
Vulnerability from osv_rustsec
Published
2023-06-26 12:00
Modified
2023-07-29 17:20
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.
{
"affected": [
{
"database_specific": {
"categories": [],
"cvss": null,
"informational": "unsound"
},
"ecosystem_specific": {
"affected_functions": null,
"affects": {
"arch": [],
"functions": [],
"os": []
}
},
"package": {
"ecosystem": "crates.io",
"name": "lmdb-rs",
"purl": "pkg:cargo/lmdb-rs"
},
"ranges": [
{
"events": [
{
"introduced": "0.0.0-0"
}
],
"type": "SEMVER"
}
],
"versions": []
}
],
"aliases": [
"GHSA-f9g6-fp84-fv92"
],
"database_specific": {
"license": "CC0-1.0"
},
"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.",
"id": "RUSTSEC-2023-0047",
"modified": "2023-07-29T17:20:00Z",
"published": "2023-06-26T12:00:00Z",
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/lmdb-rs"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2023-0047.html"
},
{
"type": "REPORT",
"url": "https://github.com/vhbit/lmdb-rs/issues/67"
}
],
"related": [],
"severity": [],
"summary": "impl `FromMdbValue` for bool is unsound"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…