GHSA-h5j3-crg5-8jqm
LOWorx-pinned-vec has undefined behavior in index_of_ptr with empty slices
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.
- Published
- 21 Oct 2025
- Last modified
- 28 Oct 2025
- Weakness
- CWE-119CWE-191
- Also known as
- RUSTSEC-2025-0106
- Sources
- OSVJSONOSV RUSTSEC-2025-0106JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | orx-pinned-vec | < 3.21.0 | 3.21.0 |
| OSV | crates.io | orx-pinned-vec | >= 0.0.0-0, < 3.21.0 | 3.21.0 |
References
- https://github.com/orxfun/orx-pinned-vec/issues/52 · WEB, REPORT
- https://github.com/orxfun/orx-pinned-vec/pull/53 · WEB
- https://github.com/orxfun/orx-pinned-vec/commit/4a4007a1aaff25cd417853c76163883a7110e276 · WEB
- https://github.com/orxfun/orx-pinned-vec · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2025-0106.html · WEB, ADVISORY
- https://crates.io/crates/orx-pinned-vec · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Oct 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Oct 2025)