{"id":"GHSA-9wgh-vjj7-7433","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.","aliases":["CVE-2020-35916","RUSTSEC-2020-0073"],"modified":"2023-11-01T04:53:08.287981Z","published":"2021-08-25T20:49:54Z","database_specific":{"github_reviewed_at":"2021-08-19T20:49:50Z","nvd_published_at":null,"cwe_ids":["CWE-400"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35916"},{"type":"WEB","url":"https://github.com/image-rs/image/issues/1357"},{"type":"WEB","url":"https://github.com/image-rs/image/pull/1358"},{"type":"WEB","url":"https://github.com/image-rs/image/commit/5cbe1e6767d11aff3f14c7ad69a06b04e8d583c7"},{"type":"PACKAGE","url":"https://github.com/image-rs/image"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2020-0073.html"}],"affected":[{"package":{"name":"image","ecosystem":"crates.io","purl":"pkg:cargo/image"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.23.12"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-9wgh-vjj7-7433/GHSA-9wgh-vjj7-7433.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}