Vulnerability HighRUSTSEC-2022-0012 · arrow2
RUSTSEC-2022-0012: Arrow2 allows double free in `safe` code
Short answerA security vulnerability in the arrow2 crate: Arrow2 allows double free in `safe` code. GitHub rates it High. Fixed in 0.10.0, 0.7.1, 0.8.2, 0.9.2: update to a fixed version.
| Crate | arrow2 |
|---|---|
| Type | Vulnerability (memory-corruption) |
| Affected versions | Before 0.7.1; from 0.8.0 before 0.8.2; from 0.9.0 before 0.9.2; from 0.10.0 before 0.10.0. |
| Fixed in | 0.10.0, 0.7.1, 0.8.2, 0.9.2 |
| Severity | High (GitHub rating) |
| Published | 2022-03-04 |
| Last changed | 2023-11-08 |
| Also known as | GHSA-5j8w-r7g8-5472 |
What to do
- See which version you have:
cargo tree -i arrow2(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p arrow2. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for examplearrow2 = "0.9.2") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
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).
References
- Package: crates.io/crates/arrow2
- Advisory: rustsec.org/advisories/RUSTSEC-2022-0012.html
- Report: github.com/jorgecarleitao/arrow2/issues/880
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Other advisories for arrow2
Up next
Same cratearrow2: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →Did this answer your question?