{"answers":{"affected":"3 open source packages ship an affected version, including pared.","exploited":"There is no known exploitation of GHSA-vgmh-mqm4-8j88 in the wild and no public exploit code.","fix":"Upgrade pared to 0.4.0 or later.","what":"GHSA-vgmh-mqm4-8j88 is an use after free vulnerability in pared, published on 13 Mar 2025."},"fix_prompt":"Check this codebase for GHSA-vgmh-mqm4-8j88 and fix it if it is affected.\n\nWhat it is: GHSA-vgmh-mqm4-8j88 is an use after free vulnerability in pared, published on 13 Mar 2025. \nExploitation: There is no known exploitation of GHSA-vgmh-mqm4-8j88 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- pared (crates.io): affected all versions; fixed in 0.4.0\n- pared (crates.io): affected all versions; fixed in 0.4.0\n- pared (crates.io): affected from 0.0.0-0; fixed in 0.4.0\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-vgmh-mqm4-8j88/ (Markdown: https://insights.sbomify.com/GHSA-vgmh-mqm4-8j88/index.md)","id":"GHSA-vgmh-mqm4-8j88","markdown":"https://insights.sbomify.com/GHSA-vgmh-mqm4-8j88/index.md","name":"GHSA-vgmh-mqm4-8j88","record":{"aliases":["RUSTSEC-2025-0016"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["code_execution","denial_of_service"],"network_reachable":"unknown","non_default_config":false,"product_category":"Rust memory management library","requires_auth":"none","summary":"A use-after-free vulnerability in the pared crate allows attackers to execute arbitrary code or cause denial of service via improper lifetime handling in Arc and Rc projections.","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":"Affected versions of this crate didn't provide sufficient lifetime constraints to conversion functions from `alloc::sync::Arc` and `alloc::rc::Rc`, which made it possible to create projections of these reference counted pointers. Unlike the original reference counted pointers, these projections could outlive original data's lifetimes.\n\nThis projected pointer could cause the original `Arc`'s or `Rc`'s `Drop::drop` to get called at a point where the original data was no longer valid, leading to a potential use after free.\n\nThe affected functions were\n- `pared::prc::Prc::from_rc`\n- `pared::prc::Prc::project`\n- `pared::prc::Prc::try_from_rc`\n- `pared::sync::Parc::from_arc`\n- `pared::sync::Parc::project`\n- `pared::sync::Parc::try_from_arc`\n\nThis flaw was fixed in [108f540ea8acb6073751a1aa386085c1cdc4fd1e](https://github.com/radekvit/pared/commit/108f540ea8acb6073751a1aa386085c1cdc4fd1e) by requiring that the type stored in the `Arc`s and `Rc`s passed to these functions contain `T: 'static`.","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":"pared Vulnerable to Use After Free in `Parc` and `Prc` Due to Missing Lifetime Constraints","id":"GHSA-vgmh-mqm4-8j88","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"use_after_free","year":"2025"},"n_packages":3,"n_references":null,"packages":[{"ecosystem":"crates.io","fixed":["0.4.0"],"introduced":["0"],"last_affected":[],"package":"pared","purl":null,"source":"GHSA-vgmh-mqm4-8j88"},{"ecosystem":"crates.io","fixed":["0.4.0"],"introduced":["0"],"last_affected":[],"package":"pared","purl":"pkg:cargo/pared","source":"GHSA-vgmh-mqm4-8j88"},{"ecosystem":"crates.io","fixed":["0.4.0"],"introduced":["0.0.0-0"],"last_affected":[],"package":"pared","purl":"pkg:cargo/pared","source":"RUSTSEC-2025-0016"}],"products":null,"published":"2025-03-13","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 use-after-free vulnerability in the pared crate allows attackers to execute arbitrary code or cause denial of service via improper lifetime handling in Arc and Rc projections.","url":"https://insights.sbomify.com/GHSA-vgmh-mqm4-8j88/"}