Security mailing lists by PureSourceCode

RUSTSEC-2025-0106

LOW

orx-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
GHSA-h5j3-crg5-8jqm
Sources
OSV GHSA-h5j3-crg5-8jqmJSONOSVJSON

Scores

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed 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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.