GHSA-vgmh-mqm4-8j88 — pared Vulnerable to Use After Free in pared
pared Vulnerable to Use After Free in `Parc` and `Prc` Due to Missing Lifetime Constraints
Does your project use an affected pared version?
Paste your Cargo.lock to check it for GHSA-vgmh-mqm4-8j88 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
This 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.
The affected functions were
pared::prc::Prc::from_rcpared::prc::Prc::projectpared::prc::Prc::try_from_rcpared::sync::Parc::from_arcpared::sync::Parc::projectpared::sync::Parc::try_from_arc
This flaw was fixed in 108f540ea8acb6073751a1aa386085c1cdc4fd1e by requiring that the type stored in the Arcs and Rcs passed to these functions contain T: 'static.
Advisory Timeline
- First published March 24, 2025 (612 days ago).
- Last revised October 28, 2025 — 218 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
cargo update -p pared --precise 0.4.0
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: crates.io (1).
| Package | Fixed In |
|---|---|
| pared crates.io · Affected: All versions | 0.4.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-416Use After FreeMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:U
References
Frequently Asked Questions
- What is GHSA-vgmh-mqm4-8j88?
- pared Vulnerable to Use After Free in `Parc` and `Prc` Due to Missing Lifetime Constraints. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 9.1/10).
- How do I check if my project is affected by GHSA-vgmh-mqm4-8j88?
- GHSA-vgmh-mqm4-8j88 affects pared. Use GeekWala's free vulnerability scanner to check your dependencies against GHSA-vgmh-mqm4-8j88 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
Also Known As
Related CVEs
- CVE-2026-115906MEDIUM
zip: AES Entry HMAC Authentication Bypass on Premature EOF
- CVE-2026-35374MEDIUM
split: TOCTOU output-open allows truncating a swapped file