Advisory

RUSTSEC-2026-0123

Also known as: None

Summary

Out-of-bounds read in bytes_helper public safe functions

Details

The bytes_helper module contains multiple public functions
(into_arr4(), into_arr2(), u8_from_le_bytes()) that use
slice.get_unchecked(pos..pos + N) without verifying that
pos + N <= slice.len(). These are public safe API functions, allowing any
caller to trigger undefined behavior by passing invalid positions.

For example, calling into_arr4(&data, 10) where data is a 3-byte slice
causes an out-of-bounds access since position 10 exceeds the slice length.

Severity

Not rated by the source.

Dates

Published
2026-05-02 12:00 UTC
Modified
2026-05-12 17:15 UTC

Affected packages and fixes

rustdx

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.4.4 (semver)

Fixed versions

0.4.4

Fix

  • Fixed version 0.4.4
    cargo update -p rustdx --precise 0.4.4

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences