{"id":"RUSTSEC-2025-0018","revision":"ebc8e8d12dc849f6b90d3a0df588d024","records":[{"revision":"ebc8e8d12dc849f6b90d3a0df588d024","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2025-0018","aliases":["GHSA-9cc5-2pq7-hfj8"],"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.","state":0,"publishedAt":"2025-03-26T12:00:00+00:00","modifiedAt":"2025-10-28T06:29:24.017211+00:00","affected":[{"ecosystem":"crates.io","name":"xmas-elf","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"},{"kind":"fixed","version":"0.10.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://crates.io/crates/xmas-elf","https://rustsec.org/advisories/RUSTSEC-2025-0018.html","https://github.com/nrc/xmas-elf/issues/86"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2025-0018","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2025-0018","identifiers":["RUSTSEC-2025-0018","GHSA-9cc5-2pq7-hfj8"]},"retained":false,"historicalAffected":[]}],"coverage":[]}