Impact
The described vulnerability is a heap-based buffer overflow in the function mold::ObjectFilemold::X86_64::initialize_sections located in src/input-files.cc of the mold compiler. It is triggered when an attacker manipulates input files, leading to memory corruption and potential program instability. The weakness is identified as CWE-119 and CWE-122 and can cause mold to crash or exhibit unintended memory writes.
Affected Systems
The vulnerability affects all releases of rui314 mold up to and including version 2.40.4. No later versions are listed as vulnerable in the provided information, and the description states that the issue exists in these earlier releases.
Risk and Exploitability
The CVSS score is 4.8, indicating medium severity, while the EPSS score is below 1 %, pointing to a low probability of exploitation in the wild. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires local access, as noted in the description, and a public exploit has been demonstrated that triggers the overflow via crafted input files.
OpenCVE Enrichment