# GHSA-vgmh-mqm4-8j88: pared Vulnerable to Use After Free in `Parc` and `Prc` Due to Missing Lifetime Constraints

- Severity: Medium (CVSS:4.0, scored by GitHub) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-03-13T12:00:00.000Z
- Modified: 2025-10-28T06:29:26.259Z
- Also known as: RUSTSEC-2025-0016
- Weaknesses: CWE-416

## 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.

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_rc`
- `pared::prc::Prc::project`
- `pared::prc::Prc::try_from_rc`
- `pared::sync::Parc::from_arc`
- `pared::sync::Parc::project`
- `pared::sync::Parc::try_from_arc`

This 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`.

(As written by GitHub Advisory Database.)

## Affected

- pared (crates.io): before 0.4.0; from 0.0.0-0 before 0.4.0

## References

- <https://github.com/radekvit/pared/issues/2> (report, web)
- <https://github.com/radekvit/pared/commit/108f540ea8acb6073751a1aa386085c1cdc4fd1e> (web)
- <https://github.com/radekvit/pared> (package)
- <https://rustsec.org/advisories/RUSTSEC-2025-0016.html> (advisory, web)
- <https://crates.io/crates/pared> (package)

## Sources

- GitHub Advisory Database: [GHSA-vgmh-mqm4-8j88](https://github.com/advisories/GHSA-vgmh-mqm4-8j88), CC-BY-4.0, modified 2025-10-28
- RustSec Advisory Database: [RUSTSEC-2025-0016](https://rustsec.org/advisories/RUSTSEC-2025-0016.html), CC0-1.0, modified 2025-10-28

---

Page: https://cve.day/GHSA-vgmh-mqm4-8j88 · Whole record: https://cve.day/GHSA-vgmh-mqm4-8j88.json · Rebuilt by cve.day 2026-11-25T22:56:43.249Z
