CVE-2026-3994
rui314 mold Object File input-files.cc initialize_sections heap-based overflow
- State
- Published
- Severity
- 4.8 Medium
- Published
- Mar 12, 2026
- Updated
- Mar 12, 2026
- Reserved
- Mar 11, 2026
Description
A vulnerability was detected in rui314 mold up to 2.40.4. This issue affects the function mold::ObjectFilemold::X86_64::initialize_sections of the file src/input-files.cc of the component Object File Handler. Performing a manipulation results in heap-based buffer overflow. Attacking locally is a requirement. The exploit is now public and may be used. The project was informed of the problem early through an issue report but has not responded yet.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 4.8 Medium | CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P | VulDB |
| 3.1 | 5.3 Medium | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R | VulDB |
| 3.0 | 5.3 Medium | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R | VulDB |
| 2.0 | 4.3 Medium | AV:L/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR | VulDB |
Weaknesses
Affected Products
| Product | Versions |
|---|---|
moldrui314 |
|
References
- VDB-350476 | rui314 mold Object File input-files.cc initialize_sections heap-based overflowvdb-entrytechnical-description
- VDB-350476 | CTI Indicators (IOB, IOC, IOA)signaturepermissions-required
- Submit #769772 | rui314 mold mold 2.40.4 and main-branch Heap-based Buffer Overflowthird-party-advisory
- https://github.com/rui314/mold/issues/1548issue-tracking
- https://github.com/oneafter/0209/blob/main/mo2/reproexploit
- https://github.com/rui314/mold/product
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.