{"id":"GHSA-5j8w-r7g8-5472","aliases":["GHSA-5j8w-r7g8-5472","RUSTSEC-2022-0012"],"related":[],"kind":"vulnerability","state":"published","title":"Arrow2 allows double free in `safe` code","summary":"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 `<0.7`).\n\nDoing so elimitates this vulnerability (code no longer compiles).","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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 `<0.7`).\n\nDoing so elimitates this vulnerability (code no longer compiles).","format":"markdown","source":"ghsa"}],"published":"2022-03-04T12:00:00.000Z","modified":"2023-11-08T04:15:47.037Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-415"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.7.1"}],"ecosystem":"crates.io","package":"arrow2","purl":"pkg:cargo/arrow2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.8.0","status":"affected","fixed":"0.8.2"}],"ecosystem":"crates.io","package":"arrow2","purl":"pkg:cargo/arrow2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.9.0","status":"affected","fixed":"0.9.2"}],"ecosystem":"crates.io","package":"arrow2","purl":"pkg:cargo/arrow2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.7.1"},{"type":"semver","introduced":"0.8.0","status":"affected","fixed":"0.8.2"},{"type":"semver","introduced":"0.9.0","status":"affected","fixed":"0.9.2"},{"type":"semver","introduced":"0.10.0","status":"affected","fixed":"0.10.0"}],"ecosystem":"crates.io","package":"arrow2","purl":"pkg:cargo/arrow2","source":"rustsec"}],"references":[{"url":"https://github.com/jorgecarleitao/arrow2/issues/880","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/jorgecarleitao/arrow2","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2022-0012.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/arrow2","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5j8w-r7g8-5472","url":"https://github.com/advisories/GHSA-5j8w-r7g8-5472","licence":"CC-BY-4.0","modified":"2023-11-08T04:15:47.037Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2022-0012","url":"https://rustsec.org/advisories/RUSTSEC-2022-0012.html","licence":"CC0-1.0","modified":"2023-11-08T04:15:47.037Z"}],"updatedAt":"2026-11-25T22:56:43.092Z"}