{"id":"RUSTSEC-2026-0123","aliases":["RUSTSEC-2026-0123"],"related":[],"kind":"vulnerability","state":"published","title":"Out-of-bounds read in `bytes_helper` public safe functions","summary":"The `bytes_helper` module contains multiple public functions\n(`into_arr4()`, `into_arr2()`, `u8_from_le_bytes()`) that use\n`slice.get_unchecked(pos..pos + N)` without verifying that\n`pos + N <= slice.len()`. These are public safe API functions, allowing any\ncaller to trigger undefined behavior by passing invalid positions.\n\nFor example, calling `into_arr4(&data, 10)` where `data` is a 3-byte slice\ncauses an out-of-bounds access since position 10 exceeds the slice length.","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"The `bytes_helper` module contains multiple public functions\n(`into_arr4()`, `into_arr2()`, `u8_from_le_bytes()`) that use\n`slice.get_unchecked(pos..pos + N)` without verifying that\n`pos + N <= slice.len()`. These are public safe API functions, allowing any\ncaller to trigger undefined behavior by passing invalid positions.\n\nFor example, calling `into_arr4(&data, 10)` where `data` is a 3-byte slice\ncauses an out-of-bounds access since position 10 exceeds the slice length.","format":"markdown","source":"rustsec"}],"published":"2026-05-02T12:00:00.000Z","modified":"2026-05-12T17:15:10.310Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.4.4"}],"ecosystem":"crates.io","package":"rustdx","purl":"pkg:cargo/rustdx","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/rustdx","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0123.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/zjp-CN/rustdx/issues/38","tags":["report"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0123","url":"https://rustsec.org/advisories/RUSTSEC-2026-0123.html","licence":"CC0-1.0","modified":"2026-05-12T17:15:10.310Z"}],"updatedAt":"2026-11-25T22:56:43.347Z"}