RUSTSEC-2026-0123

Source
https://rustsec.org/advisories/RUSTSEC-2026-0123
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0123.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2026-0123
Published
2026-05-02T12:00:00Z
Modified
2026-05-12T17:15:10Z
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.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / rustdx

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.4.4

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "arch": [],
        "functions": [],
        "os": []
    }
}

Database specific

categories
[
    "memory-corruption"
]
cvss
null
informational
"unsound"
source
"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0123.json"