GHSA-h5j3-crg5-8jqm: Orx pinned vec Orx-pinned-vec Has Undefined Behavior Vulnerability
LOWGHSA-h5j3-crg5-8jqm is a LOW orx-pinned-vec has undefined behavior vulnerability (CWE-191: Integer Underflow (Wrap or Wraparound)) affecting Orx pinned vec libraries in the crates.io ecosystem. The issue involves orx-pinned-vec has undefined behavior in index_of_ptr with empty slices. Remediation is available by upgrading affected packages to version 3.21.0.
GHSA-h5j3-crg5-8jqm at a Glance
How to Fix GHSA-h5j3-crg5-8jqm
To remediate this vulnerability, upgrade all affected Orx pinned vec 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 orx-pinned-vec to 3.21.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for orx-pinned-vec
How to Check if You Are Affected
To determine whether your application is affected by GHSA-h5j3-crg5-8jqm, inspect your project dependencies for Orx pinned vec:
inspect dependencies for orx-pinned-vec
Analyze the terminal output to locate any version of Orx pinned vec in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.21.0), 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-191: Integer Underflow (Wrap or Wraparound), where the product subtracts one value from another, such that the result is less than the minimum allowable integer value, which produces a value that is not equal to the correct result. In Orx pinned vec, 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-h5j3-crg5-8jqm Affected Orx pinned vec Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
orx-pinned-vec
|
crates.io |
< 3.21.0
|
3.21.0
|
References
Frequently Asked Questions
What is GHSA-h5j3-crg5-8jqm?
Which Orx pinned vec versions are affected?
What version fixes GHSA-h5j3-crg5-8jqm?
Is orx-pinned-vec affected?
What CWE is associated with GHSA-h5j3-crg5-8jqm?
How can I check crates.io dependencies for GHSA-h5j3-crg5-8jqm?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-h5j3-crg5-8jqm",
"modified" : "2025-10-21T21:54:27Z",
"published" : "2025-10-21T21:54:27Z",
"aliases" : [ ],
"summary" : "orx-pinned-vec has undefined behavior in index_of_ptr with empty slices",
"details" : "The safe function `index_of_ptr` causes undefined behavior when called with an empty slice.\n\nThe issue occurs in the line `ptr.add(slice.len() - 1)` which underflows when `slice.len()` is 0, creating a pointer with a massive offset. According to Rust's safety rules, creating such a pointer causes immediate undefined behavior.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "orx-pinned-vec"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.21.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/orxfun/orx-pinned-vec/issues/52"
}, {
"type" : "WEB",
"url" : "https://github.com/orxfun/orx-pinned-vec/pull/53"
}, {
"type" : "WEB",
"url" : "https://github.com/orxfun/orx-pinned-vec/commit/4a4007a1aaff25cd417853c76163883a7110e276"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/orxfun/orx-pinned-vec"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2025-0106.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-119", "CWE-191" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2025-10-21T21:54:27Z",
"nvd_published_at" : null
}
}