Operation on a Resource after Expiration or Release Affecting array-init-cursor package, versions <0.2.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

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 IDSNYK-RUST-ARRAYINITCURSOR-9689930
  • published14 Apr 2025
  • disclosed31 Mar 2025
  • creditJohn Shaw

Introduced: 31 Mar 2025

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

How to fix?

Upgrade array-init-cursor to version 0.2.1 or higher.

Overview

array-init-cursor is an utility crate to help keep track of arrays of MaybeUninit.

Affected versions of this package are vulnerable to Operation on a Resource after Expiration or Release due to the unsound usage of types that implement Drop. An attacker can trigger undefined behavior and potentially cause memory corruption by exploiting the double execution of the Drop implementation.

CVSS Base Scores

version 4.0
version 3.1