Vulnerability · Published Mar 12, 2026 · Assigned by VulDB
CVE-2026-3994rui314 mold Object File input-files.cc initialize_sections heap-based overflow
Medium 5.3
In plain English
A medium-severity heap buffer overflow in mold from rui314. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 3% of all known vulnerabilities).
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | mold | no fix listed | DEBIAN-CVE-2026-3994 |
| Debian:13 | mold | no fix listed | DEBIAN-CVE-2026-3994 |
| Debian:14 | mold | no fix listed | DEBIAN-CVE-2026-3994 |
| Ubuntu:22.04:LTS | mold | no fix listed | UBUNTU-CVE-2026-3994 |
| Ubuntu:24.04:LTS | mold | no fix listed | UBUNTU-CVE-2026-3994 |
| Ubuntu:25.10 | mold | no fix listed | UBUNTU-CVE-2026-3994 |
| Ubuntu:26.04:LTS | mold | no fix listed | UBUNTU-CVE-2026-3994 |
| Ubuntu:26.10 | mold | no fix listed | UBUNTU-CVE-2026-3994 |
Affected products (as reported)
Weakness: CWE-122, CWE-119 · Vector: 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
References
- VDB-350476 | rui314 mold Object File input-files.cc initialize_sections heap-based overflow vdb-entry, technical-description
- VDB-350476 | CTI Indicators (IOB, IOC, IOA) signature, permissions-required
- Submit #769772 | rui314 mold mold 2.40.4 and main-branch Heap-based Buffer Overflow third-party-advisory
- https://github.com/rui314/mold/issues/1548 issue-tracking
- https://github.com/oneafter/0209/blob/main/mo2/repro exploit
- https://github.com/rui314/mold/ product