Advisory

RUSTSEC-2021-0054

Also known as: CVE-2021-31919, GHSA-w5cr-frph-hw7f

Summary

Archives may contain uninitialized memory

Details

rkyv is a serialization framework that writes struct-compatible memory to be stored or
transmitted. During serialization, struct padding bytes and unused enum bytes may not be
initialized. These bytes may be written to disk or sent over unsecured channels.

Severity

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

Dates

Published
2021-04-28 12:00 UTC
Modified
2023-11-08 04:05 UTC

Affected packages and fixes

rkyv

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.6.0 (semver)

Fixed versions

0.6.0

Fix

  • Fixed version 0.6.0
    cargo update -p rkyv --precise 0.6.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