GHSA-9wgh-vjj7-7433MediumCVSS 5.5

Mutable reference with immutable provenance in image

Published
August 25, 2021
Last Modified
June 13, 2023

🔗 CVE IDs covered (1)

📋 Description

A mutable reference to a struct was constructed by dereferencing a pointer obtained from slice::as_ptr. Instead, slice::as_mut_ptr should have been called on the mutable slice argument. The former performs an implicit reborrow as an immutable shared reference which does not allow writing through the derived pointer.

🎯 Affected products1

  • rust/image:< 0.23.12

🔗 References (6)