GHSA-9CC5-2PQ7-HFJ8
Vulnerability from github – Published: 2025-03-26 20:11 – Updated: 2025-03-26 20:11
VLAI?
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 ?
{
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "xmas-elf"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.10"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [],
"database_specific": {
"cwe_ids": [
"CWE-125"
],
"github_reviewed": true,
"github_reviewed_at": "2025-03-26T20:11:24Z",
"nvd_published_at": null,
"severity": "MODERATE"
},
"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.",
"id": "GHSA-9cc5-2pq7-hfj8",
"modified": "2025-03-26T20:11:25Z",
"published": "2025-03-26T20:11:24Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/nrc/xmas-elf/issues/86"
},
{
"type": "WEB",
"url": "https://github.com/nrc/xmas-elf/commit/57685c35512a57269086314a42a70441af4ef451"
},
{
"type": "PACKAGE",
"url": "https://github.com/nrc/xmas-elf"
},
{
"type": "WEB",
"url": "https://rustsec.org/advisories/RUSTSEC-2025-0018.html"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "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",
"type": "CVSS_V4"
}
],
"summary": "xmas-elf potential out-of-bounds read with a malformed ELF file and the HashTable API."
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…