Vulnerability DatabaseGHSA-vgmh-mqm4-8j88

GHSA-vgmh-mqm4-8j88
Rust vulnerability analysis and mitigation

Overview

The vulnerability (GHSA-vgmh-mqm4-8j88) affects the Rust crate 'pared' versions prior to 0.4.0, discovered and disclosed in March 2025. This medium severity (CVSS score 6.8) vulnerability involves insufficient lifetime constraints in conversion functions from alloc::sync::Arc and alloc::rc::Rc, which could lead to use-after-free issues in Parc and Prc implementations (RustSec Advisory).

Technical details

The vulnerability stems from missing lifetime constraints in six key functions: pared::prc::Prc::from_rc, pared::prc::Prc::project, pared::prc::Prc::try_from_rc, pared::sync::Parc::from_arc, pared::sync::Parc::project, and pared::sync::Parc::try_from_arc. The issue allows projections of reference-counted pointers to outlive their original data's lifetimes, potentially causing the original Arc's or Rc's Drop::drop to be called when the original data is no longer valid (GitHub Issue).

Impact

The vulnerability can lead to use-after-free conditions, potentially resulting in memory corruption and code execution vulnerabilities. When exploited, it allows projected pointers to outlive their original data's lifetimes, which can cause undefined behavior when accessing or dropping the affected data structures (RustSec Advisory).

Mitigation and workarounds

The vulnerability has been fixed in version 0.4.0 of the pared crate. The fix adds proper lifetime constraints by requiring that the type stored in the Arcs and Rcs passed to the affected functions contain T: 'static. Users should upgrade to version 0.4.0 or later to address this vulnerability (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management