# RUSTSEC-2026-0123: Out-of-bounds read in `bytes_helper` public safe functions

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-05-02T12:00:00.000Z
- Modified: 2026-05-12T17:15:10.310Z

## Description

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.

(As written by RustSec Advisory Database.)

## Affected

- rustdx (crates.io): from 0.0.0-0 before 0.4.4

## References

- <https://crates.io/crates/rustdx> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0123.html> (advisory)
- <https://github.com/zjp-CN/rustdx/issues/38> (report)

## Sources

- RustSec Advisory Database: [RUSTSEC-2026-0123](https://rustsec.org/advisories/RUSTSEC-2026-0123.html), CC0-1.0, modified 2026-05-12

---

Page: https://cve.day/RUSTSEC-2026-0123 · Whole record: https://cve.day/RUSTSEC-2026-0123.json · Rebuilt by cve.day 2026-11-25T22:56:43.347Z
