rustsec-2023-0074
Vulnerability from osv_rustsec
Published
2023-12-14 12:00
Modified
2024-02-10 15:57
Summary
Some Ref methods are unsound with some type parameters
Details
The Ref methods into_ref, into_mut, into_slice, and into_slice_mut are unsound
and may allow safe code to exhibit undefined behavior when used with Ref<B, T> where B
is cell::Ref or
cell::RefMut. Note that these
methods remain sound when used with B types other than cell::Ref or cell::RefMut.
See https://github.com/google/zerocopy/issues/716 for a more in-depth analysis.
The current plan is to yank the affected versions soon. See https://github.com/google/zerocopy/issues/679 for more detail.
{
"affected": [
{
"database_specific": {
"categories": [],
"cvss": null,
"informational": null
},
"ecosystem_specific": {
"affected_functions": null,
"affects": {
"arch": [],
"functions": [
"zerocopy::Ref::into_mut",
"zerocopy::Ref::into_mut_slice",
"zerocopy::Ref::into_ref",
"zerocopy::Ref::into_slice"
],
"os": []
}
},
"package": {
"ecosystem": "crates.io",
"name": "zerocopy",
"purl": "pkg:cargo/zerocopy"
},
"ranges": [
{
"events": [
{
"introduced": "0.2.2"
},
{
"fixed": "0.2.9"
},
{
"introduced": "0.3.0"
},
{
"fixed": "0.3.2"
},
{
"introduced": "0.4.0"
},
{
"fixed": "0.4.1"
},
{
"introduced": "0.5.0"
},
{
"fixed": "0.5.2"
},
{
"introduced": "0.6.0"
},
{
"fixed": "0.6.6"
},
{
"introduced": "0.7.0"
},
{
"fixed": "0.7.31"
}
],
"type": "SEMVER"
}
],
"versions": []
}
],
"aliases": [
"GHSA-3mv5-343c-w2qg",
"GHSA-rjhf-4mh8-9xjq"
],
"database_specific": {
"license": "CC0-1.0"
},
"details": "The `Ref` methods `into_ref`, `into_mut`, `into_slice`, and `into_slice_mut` are unsound\nand may allow safe code to exhibit undefined behavior when used with `Ref\u003cB, T\u003e` where `B`\nis [`cell::Ref`](https://doc.rust-lang.org/core/cell/struct.Ref.html) or\n[`cell::RefMut`](https://doc.rust-lang.org/core/cell/struct.RefMut.html). Note that these\nmethods remain sound when used with `B` types other than `cell::Ref` or `cell::RefMut`.\n\nSee https://github.com/google/zerocopy/issues/716 for a more in-depth analysis.\n\nThe current plan is to yank the affected versions soon. See\nhttps://github.com/google/zerocopy/issues/679 for more detail.",
"id": "RUSTSEC-2023-0074",
"modified": "2024-02-10T15:57:43Z",
"published": "2023-12-14T12:00:00Z",
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/zerocopy"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2023-0074.html"
},
{
"type": "REPORT",
"url": "https://github.com/google/zerocopy/issues/716"
}
],
"related": [],
"severity": [],
"summary": "Some Ref methods are unsound with some type parameters"
}
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…