logo

GHSA-g753-ghr7-q33w cyfs-base

Package

Manager: cargo
Name: cyfs-base
Vulnerable Version: >=0 <=0.6.12

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P/RL:U/RC:R

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

EPSS: N/A pctlN/A

Details

cyfs-base vulnerable to misaligned pointer dereference in `ChunkId::new` 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.

Metadata

Created: 2023-06-22T20:01:55Z
Modified: 2023-06-22T20:01:55Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/06/GHSA-g753-ghr7-q33w/GHSA-g753-ghr7-q33w.json
CWE IDs: []
Alternative ID: N/A
Finding: F002
Auto approve: 1