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).

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.1%top 97.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12moldno fix listedDEBIAN-CVE-2026-3994
Debian:13moldno fix listedDEBIAN-CVE-2026-3994
Debian:14moldno fix listedDEBIAN-CVE-2026-3994
Ubuntu:22.04:LTSmoldno fix listedUBUNTU-CVE-2026-3994
Ubuntu:24.04:LTSmoldno fix listedUBUNTU-CVE-2026-3994
Ubuntu:25.10moldno fix listedUBUNTU-CVE-2026-3994
Ubuntu:26.04:LTSmoldno fix listedUBUNTU-CVE-2026-3994
Ubuntu:26.10moldno fix listedUBUNTU-CVE-2026-3994

Affected products (as reported)

VendorProductVersions
rui314 mold 2.40.02.40.12.40.22.40.32.40.4

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