GHSA-h5j3-crg5-8jqm: Orx pinned vec Orx-pinned-vec Has Undefined Behavior Vulnerability

LOW
CWE-191 CWE-119
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-h5j3-crg5-8jqm
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-191: Integer Underflow (Wrap or Wraparound)
Affected Product Orx pinned vec
Package Ecosystem crates.io
Published Date
Last Updated

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.

orx-pinned-vec fixed: 3.21.0
Upgrade orx-pinned-vec to 3.21.0
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 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

The safe function `index_of_ptr` causes undefined behavior when called with an empty slice. The 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.

GHSA-h5j3-crg5-8jqm Affected Orx pinned vec Versions

1 component(s)
Fixed Versions:
3.21.0
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?
GHSA-h5j3-crg5-8jqm is a security vulnerability in Orx pinned vec involving orx-pinned-vec has undefined behavior in index_of_ptr with empty slices under CWE-191: Integer Underflow (Wrap or Wraparound).
Which Orx pinned vec versions are affected?
Affected versions include releases prior to 3.21.0 across affected packages: orx-pinned-vec.
What version fixes GHSA-h5j3-crg5-8jqm?
Upgrading to 3.21.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is orx-pinned-vec affected?
Yes, orx-pinned-vec is affected in releases prior to 3.21.0. Upgrade your dependency to 3.21.0 or later.
What CWE is associated with GHSA-h5j3-crg5-8jqm?
GHSA-h5j3-crg5-8jqm is classified under CWE-191: Integer Underflow (Wrap or Wraparound) (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.).
How can I check crates.io dependencies for GHSA-h5j3-crg5-8jqm?
Run the dependency tree command: 'inspect dependencies for orx-pinned-vec'. 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-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
  }
}