xmas-elf potential out-of-bounds read with a malformed ELF file and the HashTable API.
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub.
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | xmas-elf (crates.io) | before 0.10 | 0.10 | Patch available | GHSA-9cc5-2pq7-hfj8 |
- xmas-elf (crates.io) Vendor— Affected before 0.10 Fixed in 0.10 Patch available GHSA-9cc5-2pq7-hfj8
Remediation
- Fix · GHSA-9cc5-2pq7-hfj8 xmas-elf (crates.io) Fixed in 0.10 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-9cc5-2pq7-hfj8
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences