GHSA-F9G6-FP84-FV92
Vulnerability from github – Published: 2023-07-19 22:09 – Updated: 2023-07-19 22:09
VLAI?
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.
{
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "lmdb-rs"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "0.7.6"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [],
"database_specific": {
"cwe_ids": [],
"github_reviewed": true,
"github_reviewed_at": "2023-07-19T22:09:38Z",
"nvd_published_at": null,
"severity": "MODERATE"
},
"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](https://github.com/vhbit/lmdb-rs/issues/67).\n",
"id": "GHSA-f9g6-fp84-fv92",
"modified": "2023-07-19T22:09:38Z",
"published": "2023-07-19T22:09:38Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/vhbit/lmdb-rs/issues/67"
},
{
"type": "PACKAGE",
"url": "https://github.com/vhbit/lmdb-rs"
},
{
"type": "WEB",
"url": "https://rustsec.org/advisories/RUSTSEC-2023-0047.html"
}
],
"schema_version": "1.4.0",
"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…