~ / search / GHSA-9wgh-vjj7-7433

GHSA-9wgh-vjj7-7433

Mutable reference with immutable provenance in image

Source: GitHub Advisory Database (reviewed) Moderate CVE-2020-35916

Packages

EcosystemPackageAffectedFixed in
crates.io image < 0.23.12 0.23.12

Details

As written in the advisory (Markdown source, shown as plain text).

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.

References

External links from the advisory. They lead to third-party sites.