Skip to content
OpenAdvisories
Critical · 9.8 CVE-2021-26951 EUVD-2021-1826GHSA-ppqp-78xx-3r38RUSTSEC-2021-0015

Out of bounds write in calamine

Published Feb 9, 2021 · Updated Aug 3, 2024 · Assigned by mitre

Description

An issue was discovered in the calamine crate before 0.17.0 for Rust. It allows attackers to overwrite heap-memory locations because Vec::set_len is used without proper memory claiming, and this uninitialized memory is used for a user-provided Read operation, as demonstrated by Sectors::get.

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io calamine < 0.17.0 0.17.0 GHSA-ppqp-78xx-3r38
crates.io calamine >= 0.0.0-0, < 0.17.0 0.17.0 RUSTSEC-2021-0015

References