GHSA-g753-ghr7-q33w

Suggest an improvement
Source
https://github.com/advisories/GHSA-g753-ghr7-q33w
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/06/GHSA-g753-ghr7-q33w/GHSA-g753-ghr7-q33w.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-g753-ghr7-q33w
Aliases
Published
2023-06-22T20:01:55Z
Modified
2023-11-08T04:19:22Z
Summary
cyfs-base vulnerable to misaligned pointer dereference in `ChunkId::new`
Details

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.

Database specific
{
    "cwe_ids":  [],
    "github_reviewed":  true,
    "github_reviewed_at":  "2023-06-22T20:01:55Z",
    "nvd_published_at":  null,
    "severity":  "MODERATE"
}
References

Affected packages

crates.io / cyfs-base

Package

Name
cyfs-base
View open source insights on deps.dev
Purl
pkg:cargo/cyfs-base

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
0.6.12

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/06/GHSA-g753-ghr7-q33w/GHSA-g753-ghr7-q33w.json"