{"answers":{"affected":"7 open source packages ship an affected version, including arrow2.","exploited":"There is no known exploitation of GHSA-5j8w-r7g8-5472 in the wild and no public exploit code.","fix":"Upgrade arrow2 to a fixed version for your release line: 0.7.1, 0.8.2, 0.9.2 or 0.10.0.","what":"GHSA-5j8w-r7g8-5472 is an use after free vulnerability in arrow2, published on 4 Mar 2022."},"fix_prompt":"Check this codebase for GHSA-5j8w-r7g8-5472 and fix it if it is affected.\n\nWhat it is: GHSA-5j8w-r7g8-5472 is an use after free vulnerability in arrow2, published on 4 Mar 2022. \nExploitation: There is no known exploitation of GHSA-5j8w-r7g8-5472 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- arrow2 (crates.io): affected all versions; fixed in 0.7.1\n- arrow2 (crates.io): affected all versions; fixed in 0.7.1\n- arrow2 (crates.io): affected from 0.0.0-0; fixed in 0.7.1, 0.8.2, 0.9.2, 0.10.0\n- arrow2 (crates.io): affected from 0.8.0; fixed in 0.8.2\n- arrow2 (crates.io): affected from 0.8.0; fixed in 0.8.2\n- arrow2 (crates.io): affected from 0.9.0; fixed in 0.9.2\n- arrow2 (crates.io): affected from 0.9.0; fixed in 0.9.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-5j8w-r7g8-5472/ (Markdown: https://insights.sbomify.com/GHSA-5j8w-r7g8-5472/index.md)","id":"GHSA-5j8w-r7g8-5472","markdown":"https://insights.sbomify.com/GHSA-5j8w-r7g8-5472/index.md","name":"GHSA-5j8w-r7g8-5472","record":{"aliases":["RUSTSEC-2022-0012"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"unknown","non_default_config":false,"product_category":"Rust Arrow2 library","requires_auth":"none","summary":"A double free vulnerability in the Arrow2 Rust library allows attackers to cause a segmentation fault and denial of service via cloning specific structs.","user_interaction":"not_required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"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 `\u003c0.7`).\n\nDoing so elimitates this vulnerability (code no longer compiles).","ecosystems":["crates.io"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Arrow2 allows double free in `safe` code","id":"GHSA-5j8w-r7g8-5472","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"use_after_free","year":"2022"},"n_packages":7,"n_references":null,"packages":[{"ecosystem":"crates.io","fixed":["0.7.1"],"introduced":["0"],"last_affected":[],"package":"arrow2","purl":null,"source":"GHSA-5j8w-r7g8-5472"},{"ecosystem":"crates.io","fixed":["0.7.1"],"introduced":["0"],"last_affected":[],"package":"arrow2","purl":"pkg:cargo/arrow2","source":"GHSA-5j8w-r7g8-5472"},{"ecosystem":"crates.io","fixed":["0.7.1","0.8.2","0.9.2","0.10.0"],"introduced":["0.0.0-0","0.8.0","0.9.0","0.10.0"],"last_affected":[],"package":"arrow2","purl":"pkg:cargo/arrow2","source":"RUSTSEC-2022-0012"},{"ecosystem":"crates.io","fixed":["0.8.2"],"introduced":["0.8.0"],"last_affected":[],"package":"arrow2","purl":null,"source":"GHSA-5j8w-r7g8-5472"},{"ecosystem":"crates.io","fixed":["0.8.2"],"introduced":["0.8.0"],"last_affected":[],"package":"arrow2","purl":"pkg:cargo/arrow2","source":"GHSA-5j8w-r7g8-5472"},{"ecosystem":"crates.io","fixed":["0.9.2"],"introduced":["0.9.0"],"last_affected":[],"package":"arrow2","purl":null,"source":"GHSA-5j8w-r7g8-5472"},{"ecosystem":"crates.io","fixed":["0.9.2"],"introduced":["0.9.0"],"last_affected":[],"package":"arrow2","purl":"pkg:cargo/arrow2","source":"GHSA-5j8w-r7g8-5472"}],"products":null,"published":"2022-03-04","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"A double free vulnerability in the Arrow2 Rust library allows attackers to cause a segmentation fault and denial of service via cloning specific structs.","url":"https://insights.sbomify.com/GHSA-5j8w-r7g8-5472/"}