GHSA-9cc5-2pq7-hfj8
MEDIUMxmas-elf potential out-of-bounds read with a malformed ELF file and the HashTable API.
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.
- Published
- 26 Mar 2025
- Last modified
- 10 Sep 2026
- Weakness
- CWE-125
- Also known as
- RUSTSEC-2025-0018
- Sources
- OSVJSONOSV RUSTSEC-2025-0018JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | xmas-elf | < 0.10 | 0.10 |
| OSV | crates.io | xmas-elf | >= 0.0.0-0, < 0.10.0 | 0.10.0 |
References
- https://github.com/nrc/xmas-elf/issues/86 · WEB, REPORT
- https://github.com/nrc/xmas-elf/commit/57685c35512a57269086314a42a70441af4ef451 · WEB
- https://github.com/nrc/xmas-elf · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2025-0018.html · WEB, ADVISORY
- https://crates.io/crates/xmas-elf · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 26 Mar 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 26 Mar 2025)