GHSA-5j8w-r7g8-5472

Suggest an improvement
Source
https://github.com/advisories/GHSA-5j8w-r7g8-5472
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-5j8w-r7g8-5472/GHSA-5j8w-r7g8-5472.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-5j8w-r7g8-5472
Aliases
Published
2022-06-16T23:42:08Z
Modified
2023-11-08T04:15:47Z
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).

Database specific
{
    "cwe_ids":  [
        "CWE-415"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2022-06-16T23:42:08Z",
    "nvd_published_at":  null,
    "severity":  "HIGH"
}
References

Affected packages

crates.io / arrow2

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.7.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-5j8w-r7g8-5472/GHSA-5j8w-r7g8-5472.json"

crates.io / arrow2

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.8.0
Fixed
0.8.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-5j8w-r7g8-5472/GHSA-5j8w-r7g8-5472.json"

crates.io / arrow2

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.9.0
Fixed
0.9.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-5j8w-r7g8-5472/GHSA-5j8w-r7g8-5472.json"