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

Medium 4.8 Published Updated

A heap-based buffer overflow in the mold linker allows local attackers to execute arbitrary code or cause a denial of service via crafted object files.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-3994?

CVE-2026-3994 is a medium-severity memory corruption vulnerability in rui314 mold, published on 12 Mar 2026. It can only be exploited from the same machine or local network, with no action from the victim.

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.

Weakness: CWE-122, CWE-119

Which versions are affected by CVE-2026-3994?

How do I fix CVE-2026-3994?

No fix has been published for CVE-2026-3994 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-3994 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-3994 exists.

Sources

Also known as DEBIAN-CVE-2026-3994, GHSA-w77x-v6v5-9x28, UBUNTU-CVE-2026-3994.

Is CVE-2026-3994 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free