rustsec-2022-0012
Vulnerability from osv_rustsec
Published
2022-03-04 12:00
Modified
2023-06-13 13:10
Summary
Arrow2 allows double free in `safe` code
Details
The struct Ffi_ArrowArray implements #derive(Clone) that is inconsistent with
its custom implementation of Drop, resulting in a double free when cloned.
Cloning this struct in safe results in a segmentation fault, which is unsound.
This derive was removed from this struct. All users are advised to either:
* bump the patch version of this crate (for versions v0.7,v0.8,v0.9), or
* migrate to a more recent version of the crate (when using <0.7).
Doing so elimitates this vulnerability (code no longer compiles).
{
"affected": [
{
"database_specific": {
"categories": [
"memory-corruption"
],
"cvss": null,
"informational": null
},
"ecosystem_specific": {
"affected_functions": null,
"affects": {
"arch": [],
"functions": [],
"os": []
}
},
"package": {
"ecosystem": "crates.io",
"name": "arrow2",
"purl": "pkg:cargo/arrow2"
},
"ranges": [
{
"events": [
{
"introduced": "0.0.0-0"
},
{
"fixed": "0.7.1"
},
{
"introduced": "0.8.0"
},
{
"fixed": "0.8.2"
},
{
"introduced": "0.9.0"
},
{
"fixed": "0.9.2"
},
{
"introduced": "0.10.0"
},
{
"fixed": "0.10.0"
}
],
"type": "SEMVER"
}
],
"versions": []
}
],
"aliases": [
"GHSA-5j8w-r7g8-5472"
],
"database_specific": {
"license": "CC0-1.0"
},
"details": "The struct `Ffi_ArrowArray` implements `#derive(Clone)` that is inconsistent with\nits custom implementation of `Drop`, resulting in a double free when cloned.\n\nCloning this struct in `safe` results in a segmentation fault, which is unsound.\n\nThis derive was removed from this struct. All users are advised to either:\n* bump the patch version of this crate (for versions `v0.7,v0.8,v0.9`), or\n* migrate to a more recent version of the crate (when using `\u003c0.7`).\n\nDoing so elimitates this vulnerability (code no longer compiles).",
"id": "RUSTSEC-2022-0012",
"modified": "2023-06-13T13:10:24Z",
"published": "2022-03-04T12:00:00Z",
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/arrow2"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2022-0012.html"
},
{
"type": "REPORT",
"url": "https://github.com/jorgecarleitao/arrow2/issues/880"
}
],
"related": [],
"severity": [],
"summary": "Arrow2 allows double free in `safe` code"
}
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…