Advisory

GHSA-9cc5-2pq7-hfj8

Also known as: RUSTSEC-2025-0018

Summary

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

Details

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

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-03-26 20:11 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

xmas-elf

crates.io · All systems

Affected

  • introduced 0, fixed 0.10 (ecosystem)

Fixed versions

0.10

Fix

  • Fixed version 0.10
    cargo update -p xmas-elf --precise 0.10

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences