mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 10:54:32 -06:00
67 lines
1.9 KiB
JSON
67 lines
1.9 KiB
JSON
[
|
|
{
|
|
"id": "RUSTSEC-2026-0123",
|
|
"modified": "2026-05-12T17:04:47Z",
|
|
"published": "2026-05-02T12:00:00Z",
|
|
"aliases": [],
|
|
"related": [],
|
|
"summary": "Out-of-bounds read in `bytes_helper` public safe functions",
|
|
"details": "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.",
|
|
"severity": [],
|
|
"affected": [
|
|
{
|
|
"package": {
|
|
"ecosystem": "crates.io",
|
|
"name": "rustdx",
|
|
"purl": "pkg:cargo/rustdx"
|
|
},
|
|
"ecosystem_specific": {
|
|
"affects": {
|
|
"arch": [],
|
|
"os": [],
|
|
"functions": []
|
|
},
|
|
"affected_functions": null
|
|
},
|
|
"database_specific": {
|
|
"categories": [
|
|
"memory-corruption"
|
|
],
|
|
"cvss": null,
|
|
"informational": "unsound"
|
|
},
|
|
"ranges": [
|
|
{
|
|
"type": "SEMVER",
|
|
"events": [
|
|
{
|
|
"introduced": "0.0.0-0"
|
|
},
|
|
{
|
|
"fixed": "0.4.4"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"versions": []
|
|
}
|
|
],
|
|
"references": [
|
|
{
|
|
"type": "PACKAGE",
|
|
"url": "https://crates.io/crates/rustdx"
|
|
},
|
|
{
|
|
"type": "ADVISORY",
|
|
"url": "https://rustsec.org/advisories/RUSTSEC-2026-0123.html"
|
|
},
|
|
{
|
|
"type": "REPORT",
|
|
"url": "https://github.com/zjp-CN/rustdx/issues/38"
|
|
}
|
|
],
|
|
"database_specific": {
|
|
"license": "CC0-1.0"
|
|
}
|
|
}
|
|
] |