CVE-2026-3994

rui314 mold Object File input-files.cc initialize_sections heap-based overflow

Published Mar 12, 2026 CVSS 4.0 · 4.8 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

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

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Verify your current mold version to determine whether it is 2.40.4 or earlier.
  • If a vulnerable version is in use, restrict mold to trusted input files and run it inside a sandbox or container to contain possible memory corruption.
  • Monitor system logs and application behavior for crashes or abnormal memory usage that could indicate exploitation of this heap overflow.
  • Check the mold project's release notes or official advisories for a patch or update; apply any available fix as soon as it is released.

Generated by OpenCVE AI on March 18, 2026 at 16:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Rui314
Rui314 mold
Vendors & Products Rui314
Rui314 mold
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title rui314 mold Object File input-files.cc initialize_sections heap-based overflow
Weaknesses CWE-119
CWE-122
References
Metrics cvssV2_0

{'score': 4.3, 'vector': 'AV:L/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR'}

cvssV3_0

{'score': 5.3, 'vector': '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'}

cvssV3_1

{'score': 5.3, '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'}

cvssV4_0

{'score': 4.8, 'vector': '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'}

Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer

  • CWE-122

    Heap-based Buffer Overflow

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Mar 12, 2026, 2:25 PM
Reserved
Mar 11, 2026, 4:55 PM
Status
Deferred
Published
Mar 12, 2026, 6:16 AM
Modified
Jun 17, 2026, 10:44 AM