Email me

Rust advisories / arrow2

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.

Cratearrow2
TypeVulnerability (memory-corruption)
Affected versionsBefore 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 in0.10.0, 0.7.1, 0.8.2, 0.9.2
SeverityHigh (GitHub rating)
Published2022-03-04
Last changed2023-11-08
Also known asGHSA-5j8w-r7g8-5472

What to do

  1. See which version you have: cargo tree -i arrow2 (it also shows which of your dependencies pulls it in).
  2. 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 example arrow2 = "0.9.2") or update the dependency that pulls it in.
  3. 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

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

Full security history of 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?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ