Advisory

RUSTSEC-2023-0030

Also known as: CVE-2023-28448, GHSA-8vxc-r5wp-vgvc

Summary

Versionize::deserialize implementation for FamStructWrapper<T> is lacking bound checks, potentially leading to out of bounds memory accesses

Details

An issue was discovered in the Versionize::deserialize implementation provided by the versionize crate for vmm_sys_util::fam::FamStructWrapper, which can lead to out of bounds memory accesses. The impact started with version 0.1.1. The issue was corrected in version 0.1.10 by inserting a check that verifies, for any deserialized header, the lengths of compared flexible arrays are equal and aborting deserialization otherwise.

Severity

Medium Basis: CVSS v3 score 5.7, vector CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L

Dates

Published
2023-03-24 12:00 UTC
Modified
2023-11-08 04:12 UTC

Affected packages and fixes

versionize

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.1.10 (semver)

Fixed versions

0.1.10

Fix

  • Fixed version 0.1.10
    cargo update -p versionize --precise 0.1.10

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences