GHSA-67r5-rqwv-9p9q: Array init cursor Array-init-cursor Is Unsound When Used Vulnerability

LOW
CWE-672
Published
Advisory Summary

GHSA-67r5-rqwv-9p9q is a LOW array-init-cursor is unsound when used vulnerability (CWE-672: Operation on a Resource after Expiration or Release) affecting Array init cursor libraries in the crates.io ecosystem. The issue involves array-init-cursor is unsound when used with types that implement `drop`. Remediation is available by upgrading affected packages to version 0.2.1.

GHSA-67r5-rqwv-9p9q at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-67r5-rqwv-9p9q
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-672: Operation on a Resource after Expiration or Release
Affected Product Array init cursor
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-67r5-rqwv-9p9q

To remediate this vulnerability, upgrade all affected Array init cursor dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

array-init-cursor fixed: 0.2.1
Upgrade array-init-cursor to 0.2.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for array-init-cursor

How to Check if You Are Affected

To determine whether your application is affected by GHSA-67r5-rqwv-9p9q, inspect your project dependencies for Array init cursor:

inspect dependencies for array-init-cursor

Analyze the terminal output to locate any version of Array init cursor in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.2.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-672: Operation on a Resource after Expiration or Release, where the product uses, accesses, or otherwise operates on a resource after that resource has been expired, released, or revoked. In Array init cursor, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

The `Drop` implementation will get run twice when using the cursor. This issue does not affect you, if you are using only using the crate with types that are `Copy` such as `u8`. This issue also does not affect you, if you are only depending on it through the crate `planus`.

GHSA-67r5-rqwv-9p9q Affected Array init cursor Versions

1 component(s)
Fixed Versions:
0.2.1
Product / Package Ecosystem Affected Versions Fixed Version
array-init-cursor
crates.io
< 0.2.1
0.2.1

References

Frequently Asked Questions

What is GHSA-67r5-rqwv-9p9q?
GHSA-67r5-rqwv-9p9q is a security vulnerability in Array init cursor involving array-init-cursor is unsound when used with types that implement `Drop` under CWE-672: Operation on a Resource after Expiration or Release.
Which Array init cursor versions are affected?
Affected versions include releases prior to 0.2.1 across affected packages: array-init-cursor.
What version fixes GHSA-67r5-rqwv-9p9q?
Upgrading to 0.2.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is array-init-cursor affected?
Yes, array-init-cursor is affected in releases prior to 0.2.1. Upgrade your dependency to 0.2.1 or later.
What CWE is associated with GHSA-67r5-rqwv-9p9q?
GHSA-67r5-rqwv-9p9q is classified under CWE-672: Operation on a Resource after Expiration or Release (The product uses, accesses, or otherwise operates on a resource after that resource has been expired, released, or revoked.).
How can I check crates.io dependencies for GHSA-67r5-rqwv-9p9q?
Run the dependency tree command: 'inspect dependencies for array-init-cursor'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-67r5-rqwv-9p9q",
  "modified" : "2025-03-31T16:13:34Z",
  "published" : "2025-03-31T16:13:34Z",
  "aliases" : [ ],
  "summary" : "array-init-cursor is unsound when used with types that implement `Drop`",
  "details" : "The `Drop` implementation will get run twice when using the cursor.\n\nThis issue does not affect you, if you are using only using the crate with types that are `Copy` such as `u8`.\n\nThis issue also does not affect you, if you are only depending on it through the crate `planus`.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "array-init-cursor"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.2.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/planus-org/planus/issues/293"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/planus-org/planus/pull/294"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/planus-org/planus"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2025-0019.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-672" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-31T16:13:34Z",
    "nvd_published_at" : null
  }
}