GHSA-9cc5-2pq7-hfj8
JSON

medium

xmas-elf potential out-of-bounds read with a malformed ELF file and the HashTable API.

Severity
medium CVSS:4.0 by GitHub
Published
Last changed
Also known as
RUSTSEC-2025-0018

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.

Affected

Product or packageVersionsReported by
xmas-elf (crates.io)before 0.10, from 0.0.0-0 before 0.10.0GitHub Advisory Database, RustSec Advisory Database

Classification

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-9cc5-2pq7-hfj8 changed 2026-09-10CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2025-0018 changed 2025-10-28CC0-1.0