Use After Free Affecting pared package, versions <0.4.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-PARED-13723957
  • published28 Oct 2025
  • disclosed13 Mar 2025
  • creditFrank Steffahn

Introduced: 13 Mar 2025

CVE NOT AVAILABLE CWE-416  (opens in a new tab)

How to fix?

Upgrade pared to version 0.4.0 or higher.

Overview

pared is a library providing projections for Arc and Rc that allow exposing only references that come from T

Affected versions of this package are vulnerable to Use After Free due to insufficient lifetime constraints in conversion functions from alloc::sync::Arc and alloc::rc::Rc. An attacker can cause memory corruption or execute arbitrary code by creating projections of reference counted pointers that outlive the original data's lifetime, leading to use of freed memory.

CVSS Base Scores

version 4.0
version 3.1