Security mailing lists by PureSourceCode

RUSTSEC-2022-0012

HIGH

Arrow2 allows double free in `safe` code

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).

Published
4 Mar 2022
Last modified
8 Nov 2023
Weakness
CWE-415
Also known as
GHSA-5j8w-r7g8-5472
Sources
OSV GHSA-5j8w-r7g8-5472JSONOSVJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV crates.io arrow2 < 0.7.1 0.7.1
OSV crates.io arrow2 >= 0.8.0, < 0.8.2 0.8.2
OSV crates.io arrow2 >= 0.9.0, < 0.9.2 0.9.2
OSV crates.io arrow2 >= 0.0.0-0, < 0.7.1; >= 0.8.0, < 0.8.2; >= 0.9.0, < 0.9.2; >= 0.10.0, < 0.10.0 0.7.1, 0.8.2, 0.9.2, 0.10.0

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 4 Mar 2022)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 16 Jun 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.