CVE-2021-40394 Memory corruption in Gerbv

Critical 10.0 Published Updated

An out-of-bounds write in Gerbv allows attackers to execute arbitrary code via a specially crafted Gerber file.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-40394?

CVE-2021-40394 is a critical memory corruption vulnerability in Debian Debian Linux, published on 22 Dec 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An out-of-bounds write vulnerability exists in the RS-274X aperture macro variables handling functionality of Gerbv 2.7.0 and dev (commit b5f1eacd) and the forked version of Gerbv (commit 71493260). A specially-crafted gerber file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.

Weakness: CWE-787

Which versions are affected by CVE-2021-40394?

It affects 2 products.

Products include Debian Debian Linux, Gerbv Project Gerbv.

How do I fix CVE-2021-40394?

Apply the vendor's patch.

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

Is CVE-2021-40394 being exploited?

There is no known exploitation of CVE-2021-40394 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-40394, GHSA-936x-jwpc-5p28, UBUNTU-CVE-2021-40394.

Is CVE-2021-40394 in your software?

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

Check your SBOMs for free