GHSA-vgmh-mqm4-8j88
MEDIUMpared Vulnerable to Use After Free in `Parc` and `Prc` Due to Missing Lifetime Constraints
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.
- Published
- 13 Mar 2025
- Last modified
- 28 Oct 2025
- Weakness
- CWE-416
- Also known as
- RUSTSEC-2025-0016
- Sources
- OSVJSONOSV RUSTSEC-2025-0016JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | pared | < 0.4.0 | 0.4.0 |
| OSV | crates.io | pared | >= 0.0.0-0, < 0.4.0 | 0.4.0 |
References
- https://github.com/radekvit/pared/issues/2 · WEB, REPORT
- https://github.com/radekvit/pared/commit/108f540ea8acb6073751a1aa386085c1cdc4fd1e · WEB
- https://github.com/radekvit/pared · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2025-0016.html · WEB, ADVISORY
- https://crates.io/crates/pared · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 13 Mar 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Mar 2025)