Skip to main content

GHSA-vgmh-mqm4-8j88 — pared Vulnerable to Use After Free in pared

MEDIUM

pared Vulnerable to Use After Free in `Parc` and `Prc` Due to Missing Lifetime Constraints

Published March 24, 2025Updated October 28, 2025Source: OSV

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.

Check my Cargo.lock

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_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 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 pared to 0.4.0 or later
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).

PackageFixed In
pared crates.io · Affected: All versions0.4.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
—
Confidentiality
—
Integrity
—
Availability
—

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

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

CVSS Score
9.1

Maximum impact if exploited, often with little effort or access required.

Also Known As

RUSTSEC-2025-0016

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my Cargo.lock