Advisory

RUSTSEC-2020-0050

Also known as: CVE-2020-35903, GHSA-qxjq-v4wf-ppvh

Summary

VecCopy allows misaligned access to elements

Details

VecCopy::data is created as a Vec of u8 but can be used to store and retrieve
elements of different types leading to misaligned access.

The issue was resolved in v0.5.0 by replacing data being stored by Vec<u8> with a custom managed
pointer. Elements are now stored and retrieved using types with proper alignment corresponding to
original types.

Severity

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

Dates

Published
2020-09-27 12:00 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

dync

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.5.0 (semver)

Fixed versions

0.5.0

Fix

  • Fixed version 0.5.0
    cargo update -p dync --precise 0.5.0

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