GHSA-67r5-rqwv-9p9q: Array init cursor Array-init-cursor Is Unsound When Used Vulnerability
LOWGHSA-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
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.
Upgrade array-init-cursor to 0.2.1
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
GHSA-67r5-rqwv-9p9q Affected Array init cursor Versions
1 component(s)| 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?
Which Array init cursor versions are affected?
What version fixes GHSA-67r5-rqwv-9p9q?
Is array-init-cursor affected?
What CWE is associated with GHSA-67r5-rqwv-9p9q?
How can I check crates.io dependencies for GHSA-67r5-rqwv-9p9q?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}