{"id":"GHSA-9cc5-2pq7-hfj8","aliases":["RUSTSEC-2025-0018"],"status":"published","title":"xmas-elf potential out-of-bounds read with a malformed ELF file and the HashTable API.","description":"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.","severity":{"version":"4.0","score":6.9,"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","level":"medium","from":"ghsa"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-125"],"published":"2025-03-26T12:00:00Z","modified":"2026-09-10T03:50:23Z","fixes":[{"ecosystem":"crates.io","package":"xmas-elf","fixed_in":["0.10","0.10.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"xmas-elf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.10"}]}]},{"source":"osv","ecosystem":"crates.io","package":"xmas-elf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.10"}]}]},{"source":"osv","ecosystem":"crates.io","package":"xmas-elf","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.10.0"}]}]}],"references":[{"url":"https://github.com/nrc/xmas-elf/issues/86","tags":["web","report"]},{"url":"https://github.com/nrc/xmas-elf/commit/57685c35512a57269086314a42a70441af4ef451","tags":["web"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2025-0018.html","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-9cc5-2pq7-hfj8"},{"url":"https://github.com/nrc/xmas-elf","tags":["package"]},{"url":"https://crates.io/crates/xmas-elf","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-9cc5-2pq7-hfj8","title":"xmas-elf potential out-of-bounds read with a malformed ELF file and the HashTable API.","description":"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.","status":"published","published":"2025-03-26T20:11:24Z","modified":"2025-03-26T20:11:25Z","cvss":[{"version":"4.0","score":6.9,"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","level":"medium"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T14:38:36.51789Z"}],"osv":[{"id":"GHSA-9cc5-2pq7-hfj8","title":"xmas-elf potential out-of-bounds read with a malformed ELF file and the HashTable API.","description":"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.","status":"published","published":"2025-03-26T20:11:24Z","modified":"2026-09-10T03:50:23.078536527Z","cvss":[{"version":"4.0","score":6.9,"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","level":"medium"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T15:46:43.524801Z"},{"id":"RUSTSEC-2025-0018","title":"Potential out-of-bounds read with a malformed ELF file and the HashTable API.","description":"Affected versions of this crate only validated the `index` argument of\n`HashTable::get_bucket` and `HashTable::get_chain` against the input-controlled\n`bucket_count` and `chain_count` fields, but not against the size of the ELF\nsection. As a result, a malformed ELF file could trigger out-of-bounds reads in\na consumer of the HashTable API by setting these fields to inappropriately large\nvalues that would fall outside the relevant hash table section, and by\nintroducing correspondingly out-of-bounds hash table indexes elsewhere in the ELF\nfile.","status":"published","published":"2025-03-26T12:00:00Z","modified":"2025-10-28T06:29:24.017211Z","updated_at":"2026-11-02T15:53:39.971022Z"}]}}
