{"id":"GHSA-g753-ghr7-q33w","aliases":["GHSA-g753-ghr7-q33w","RUSTSEC-2023-0046"],"related":[],"kind":"vulnerability","state":"published","title":"cyfs-base vulnerable to misaligned pointer dereference in `ChunkId::new`","summary":"The function `ChunkId::new` creates a misaligned pointer by casting mutable pointer of `u8` slice which has alignment 1 to the mutable pointer of `u32` which has alignment 4, and dereference the misaligned pointer leading UB, which should not be allowed in safe function.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"The function `ChunkId::new` creates a misaligned pointer by casting mutable pointer of `u8` slice which has alignment 1 to the mutable pointer of `u32` which has alignment 4, and dereference the misaligned pointer leading UB, which should not be allowed in safe function.","format":"markdown","source":"ghsa"}],"published":"2023-06-15T12:00:00.000Z","modified":"2023-11-08T04:19:22.223Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.6.12"}],"ecosystem":"crates.io","package":"cyfs-base","purl":"pkg:cargo/cyfs-base","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected"}],"ecosystem":"crates.io","package":"cyfs-base","purl":"pkg:cargo/cyfs-base","source":"rustsec"}],"references":[{"url":"https://github.com/buckyos/CYFS/issues/275","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/buckyos/CYFS/commit/e030188895096fd8d91d48753877729f4d37dd24","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/buckyos/CYFS","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2023-0046.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/cyfs-base","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g753-ghr7-q33w","url":"https://github.com/advisories/GHSA-g753-ghr7-q33w","licence":"CC-BY-4.0","modified":"2023-11-08T04:19:22.223Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2023-0046","url":"https://rustsec.org/advisories/RUSTSEC-2023-0046.html","licence":"CC0-1.0","modified":"2023-11-08T04:19:22.223Z"}],"updatedAt":"2026-11-25T22:56:43.151Z"}