Every CVE Search/ Get API key

CVE-2021-40391

An out-of-bounds write vulnerability exists in the drill format T-code tool number functionality...

10.0 CriticalFix available

An out-of-bounds write vulnerability exists in the drill format T-code tool number functionality of Gerbv 2.7.0, dev (commit b5f1eacd), and the forked version of Gerbv (commit 71493260). A specially-crafted drill file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

2.99%Up 2.3 points since Nov 20, 2021
90%50%10%1%

What each source reports

CVE List Score used 10.0

An out-of-bounds write vulnerability exists in the drill format T-code tool number functionality of Gerbv 2.7.0, dev (commit b5f1eacd), and the forked version of Gerbv (commit 71493260). A specially-crafted drill file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.

Record
CVE-2021-40391
CVSS 3.0
10.0 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Weakness
CWE-390
Updated
2026-11-02
EUVDEUVD-2021-27568 10.0

An out-of-bounds write vulnerability exists in the drill format T-code tool number functionality of Gerbv 2.7.0, dev (commit b5f1eacd), and the forked version of Gerbv (commit 71493260). A specially-crafted drill file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.

Record
EUVD-2021-27568
CVSS 3.0
10.0 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Updated
2026-11-03
GitHub AdvisoriesGHSA-3x4w-8mh5-3xjq 9.8

An out-of-bounds write vulnerability exists in the drill format T-code tool number functionality...

An out-of-bounds write vulnerability exists in the drill format T-code tool number functionality of Gerbv 2.7.0, dev (commit b5f1eacd), and the forked version of Gerbv (commit 71493260). A specially-crafted drill file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.

Record
GHSA-3x4w-8mh5-3xjq
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-787
Updated
2026-11-02
NVD 9.8

An out-of-bounds write vulnerability exists in the drill format T-code tool number functionality of Gerbv 2.7.0, dev (commit b5f1eacd), and the forked version of Gerbv (commit 71493260). A specially-crafted drill file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.

Record
CVE-2021-40391
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 3.0
10.0 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Weakness
CWE-390, CWE-755, CWE-787
Updated
2026-11-02
OSV 9.8

An out-of-bounds write vulnerability exists in the drill format T-code tool number functionality of Gerbv 2.7.0, dev (commit b5f1eacd), and the forked version of Gerbv (commit 71493260). A specially-crafted drill file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.

Record
CVE-2021-40391
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2021-40391 9.8

An out-of-bounds write vulnerability exists in the drill format T-code tool number functionality of Gerbv 2.7.0, dev (commit b5f1eacd), and the forked version of Gerbv (commit 71493260). A specially-crafted drill file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.

Record
DEBIAN-CVE-2021-40391
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 4 moreShow less
OSVUBUNTU-CVE-2021-40391 9.8

An out-of-bounds write vulnerability exists in the drill format T-code tool number functionality of Gerbv 2.7.0, dev (commit b5f1eacd), and the forked version of Gerbv (commit 71493260). A specially-crafted drill file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.

Record
UBUNTU-CVE-2021-40391
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 3.0
10.0 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Updated
2026-11-02
OSVMGASA-2022-0260 No score

Updated gerbv packages fix security vulnerability

An out-of-bounds write vulnerability exists in the drill format T-code tool number functionality of Gerbv 2.7.0, dev (commit b5f1eacd), and the forked version of Gerbv (commit 71493260). (CVE-2021-40391)

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). (CVE-2021-40393, CVE-2021-40394)

An out-of-bounds read vulnerability exists in the RS-274X aperture macro outline primitive functionality of Gerbv 2.7.0 and dev (commit b5f1eacd) and the forked version of Gerbv (commit d7f42a9a). (CVE-2021-40400)

A use-after-free vulnerability exists in the RS-274X aperture definition tokenization functionality of Gerbv 2.7.0 and dev (commit b5f1eacd) and Gerbv forked 2.7.1. (CVE-2021-40401)

Record
MGASA-2022-0260
Updated
2026-11-02
OSVopenSUSE-SU-2024:12064-1 No score

gerbv-2.8.2-1.1 on GA media

These are all security issues fixed in the gerbv-2.8.2-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:12064-1
Updated
2026-11-02
OSVUSN-6209-1 No score

Gerbv vulnerabilities

Claudio Bozzato discovered that Gerbv incorrectly handled certain Gerber files. An attacker could possibly use this issue to crash Gerbv (resulting in a denial of service), or execute arbitrary code. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, and Ubuntu 20.04 LTS. (CVE-2021-40391, CVE-2021-40394)

Claudio Bozzato discovered that Gerbv incorrectly handled certain Gerber files. An attacker could possibly use this issue to disclose information, crash Gerbv (resulting in a denial of service), or execute arbitrary code. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, and Ubuntu 20.04 LTS. (CVE-2021-40393)

Claudio Bozzato discovered that Gerbv incorrectly handled certain Gerber files. An attacker could possibly use this issue to disclose information. (CVE-2021-40400, CVE-2021-40403)

Claudio Bozzato discovered that Gerbv incorrectly handled certain Gerber files. An attacker could possibly use this issue to disclose information, crash Gerbv (resulting in a denial of service), or execute arbitrary code. (CVE-2021-40401)

Record
USN-6209-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
gerbv
Debian:12
before 2.7.1-1
2.7.1-1
gerbv
Debian:13
before 2.7.1-1
2.7.1-1
gerbv
Debian:9
before 2.6.1-2+deb9u1, plus listed versions
2.6.1-2
2.6.1-2+deb9u1
gerbv
Mageia:8
From an advisory covering 5 CVEs
before 2.7.3-1.mga8
2.7.3-1.mga8
gerbv
Ubuntu:Pro:14.04:LTS
before 2.6.0-1ubuntu0.14.04.1~esm1, plus listed versions
2.6.0-1
2.6.0-1ubuntu0.14.04.1~esm1
gerbv
Ubuntu:Pro:16.04:LTS
before 2.6.0-1ubuntu0.16.04.1~esm1, plus listed versions
2.6.0-1
2.6.0-1ubuntu0.16.04.1~esm1
gerbv
Ubuntu:Pro:18.04:LTS
before 2.6.1-3ubuntu0.1~esm1, plus listed versions
2.6.1-22.6.1-3
2.6.1-3ubuntu0.1~esm1
gerbv
Ubuntu:20.04:LTS
before 2.7.0-1ubuntu0.1, plus listed versions
2.7.0-1
2.7.0-1ubuntu0.1
gerbv
Ubuntu:Pro:22.04:LTS
before 2.8.2-1ubuntu0.1~esm1, plus listed versions
2.7.0-22.7.1-12.8.0-12.8.1-12.8.2-1
2.8.2-1ubuntu0.1~esm1
gerbv
Ubuntu:Pro:14.04:LTS
From an advisory covering 6 CVEs
before 2.6.0-1ubuntu0.14.04.1~esm1, plus listed versions
2.6.0-1
2.6.0-1ubuntu0.14.04.1~esm1
Show 4 moreShow less
Affected packages
PackageAffectedFixed
gerbv
Ubuntu:Pro:16.04:LTS
From an advisory covering 6 CVEs
before 2.6.0-1ubuntu0.16.04.1~esm1, plus listed versions
2.6.0-1
2.6.0-1ubuntu0.16.04.1~esm1
gerbv
Ubuntu:Pro:18.04:LTS
From an advisory covering 6 CVEs
before 2.6.1-3ubuntu0.1~esm1, plus listed versions
2.6.1-22.6.1-3
2.6.1-3ubuntu0.1~esm1
gerbv
Ubuntu:20.04:LTS
From an advisory covering 6 CVEs
before 2.7.0-1ubuntu0.1, plus listed versions
2.7.0-1
2.7.0-1ubuntu0.1
gerbv
Ubuntu:Pro:22.04:LTS
From an advisory covering 6 CVEs
before 2.8.2-1ubuntu0.1~esm1, plus listed versions
2.7.0-22.7.1-12.8.0-12.8.1-12.8.2-1
2.8.2-1ubuntu0.1~esm1

History

History
RecordedChangedSources
affected, facts
aliases, productsEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-40391 is a critical vulnerability (CVSS 10.0) in Gerbv, published November 19, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.99%, the 87th percentile. Fixed in gerbv 2.7.1-1.

References

Show 16 moreShow less
MoveEnter Open