GHSA-9WGH-VJJ7-7433
Vulnerability from github – Published: 2021-08-25 20:49 – Updated: 2023-06-13 18:17
VLAI?
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 ?
5.5 (Medium)
{
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "image"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.23.12"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2020-35916"
],
"database_specific": {
"cwe_ids": [
"CWE-400"
],
"github_reviewed": true,
"github_reviewed_at": "2021-08-19T20:49:50Z",
"nvd_published_at": null,
"severity": "MODERATE"
},
"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.",
"id": "GHSA-9wgh-vjj7-7433",
"modified": "2023-06-13T18:17:31Z",
"published": "2021-08-25T20:49:54Z",
"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"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
"type": "CVSS_V3"
}
],
"summary": "Mutable reference with immutable provenance in image"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…