{"id":"GHSA-9cc5-2pq7-hfj8","aliases":["GHSA-9cc5-2pq7-hfj8","RUSTSEC-2025-0018"],"related":[],"kind":"vulnerability","state":"published","title":"xmas-elf potential out-of-bounds read with a malformed ELF file and the HashTable API.","summary":"Affected versions of this crate only validated the `index` argument of `HashTable::get_bucket` and `HashTable::get_chain` against the input-controlled `bucket_count` and `chain_count` fields, but not against the size of the ELF section. As a result, a malformed ELF file could trigger out-of-bounds reads in a consumer of the HashTable API by setting these fields to inappropriately large values that would fall outside the relevant hash table section, and by introducing correspondingly out-of-bounds hash table indexes elsewhere in the ELF file.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"Affected versions of this crate only validated the `index` argument of `HashTable::get_bucket` and `HashTable::get_chain` against the input-controlled `bucket_count` and `chain_count` fields, but not against the size of the ELF section. As a result, a malformed ELF file could trigger out-of-bounds reads in a consumer of the HashTable API by setting these fields to inappropriately large values that would fall outside the relevant hash table section, and by introducing correspondingly out-of-bounds hash table indexes elsewhere in the ELF file.","format":"markdown","source":"ghsa"}],"published":"2025-03-26T12:00:00.000Z","modified":"2026-09-10T03:50:23.078Z","severity":{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.10"}],"ecosystem":"crates.io","package":"xmas-elf","purl":"pkg:cargo/xmas-elf","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.10.0"}],"ecosystem":"crates.io","package":"xmas-elf","purl":"pkg:cargo/xmas-elf","source":"rustsec"}],"references":[{"url":"https://github.com/nrc/xmas-elf/issues/86","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/nrc/xmas-elf/commit/57685c35512a57269086314a42a70441af4ef451","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/nrc/xmas-elf","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2025-0018.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/xmas-elf","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9cc5-2pq7-hfj8","url":"https://github.com/advisories/GHSA-9cc5-2pq7-hfj8","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:23.078Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2025-0018","url":"https://rustsec.org/advisories/RUSTSEC-2025-0018.html","licence":"CC0-1.0","modified":"2025-10-28T06:29:24.017Z"}],"updatedAt":"2026-11-25T22:56:43.249Z"}