Advisory

GHSA-9wgh-vjj7-7433

Also known as: CVE-2020-35916, RUSTSEC-2020-0073

Summary

Mutable reference with immutable provenance in image

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-08-25 20:49 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

image

crates.io · All systems

Affected

  • introduced 0, fixed 0.23.12 (semver)

Fixed versions

0.23.12

Fix

  • Fixed version 0.23.12
    cargo update -p image --precise 0.23.12

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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences