Advisory

RUSTSEC-2021-0015

Also known as: CVE-2021-26951, GHSA-ppqp-78xx-3r38

Summary

Sectors::get accesses unclaimed/uninitialized memory

Details

Affected versions of this crate arbitrarily calls Vec::set_len to increase length of a vector without claiming more memory for the vector. Affected versions of this crate
also calls user-provided Read on the uninitialized memory of the vector that was
extended with Vec::set_len.

This can overwrite active entities in adjacent heap memory and seems to be a major security issue. Also, calling user-provided Read on uninitialized memory is defined as UB in Rust.

Severity

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

Dates

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

Affected packages and fixes

calamine

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.17.0 (semver)

Fixed versions

0.17.0

Fix

  • Fixed version 0.17.0
    cargo update -p calamine --precise 0.17.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