CVE-2021-40402
An out-of-bounds read vulnerability exists in the RS-274X aperture macro multiple outline...
An out-of-bounds read vulnerability exists in the RS-274X aperture macro multiple outline primitives functionality of Gerbv 2.7.0 and dev (commit b5f1eacd), and Gerbv forked 2.7.1 and 2.8.0. A specially-crafted Gerber file can lead to information disclosure. 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
- Low
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
9.3
An out-of-bounds read vulnerability exists in the RS-274X aperture macro multiple outline primitives functionality of Gerbv 2.7.0 and dev (commit b5f1eacd), and Gerbv forked 2.7.1 and 2.8.0. A specially-crafted Gerber file can lead to information disclosure. An attacker can provide a malicious file to trigger this vulnerability.
- Record
CVE-2021-40402- CVSS 3.0
- 9.3 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:H - Weakness
- CWE-755
- Updated
- 2026-11-02
EUVDEUVD-2021-27579
9.3
An out-of-bounds read vulnerability exists in the RS-274X aperture macro multiple outline primitives functionality of Gerbv 2.7.0 and dev (commit b5f1eacd), and Gerbv forked 2.7.1 and 2.8.0. A specially-crafted Gerber file can lead to information disclosure. An attacker can provide a malicious file to trigger this vulnerability.
- Record
EUVD-2021-27579- CVSS 3.0
- 9.3 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-8x52-mcj6-x4gh
7.5
An out-of-bounds read vulnerability exists in the RS-274X aperture macro multiple outline...
An out-of-bounds read vulnerability exists in the RS-274X aperture macro multiple outline primitives functionality of Gerbv 2.7.0 and dev (commit b5f1eacd), and Gerbv forked 2.7.1 and 2.8.0. A specially-crafted Gerber file can lead to information disclosure. An attacker can provide a malicious file to trigger this vulnerability.
- Record
GHSA-8x52-mcj6-x4gh- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-125
- Updated
- 2026-11-02
NVD
7.5
An out-of-bounds read vulnerability exists in the RS-274X aperture macro multiple outline primitives functionality of Gerbv 2.7.0 and dev (commit b5f1eacd), and Gerbv forked 2.7.1 and 2.8.0. A specially-crafted Gerber file can lead to information disclosure. An attacker can provide a malicious file to trigger this vulnerability.
- Record
CVE-2021-40402- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - CVSS 3.0
- 9.3 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:H - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:P/I:N/A:N - Weakness
- CWE-755, CWE-125
- Updated
- 2026-11-02
OSV
7.5
An out-of-bounds read vulnerability exists in the RS-274X aperture macro multiple outline primitives functionality of Gerbv 2.7.0 and dev (commit b5f1eacd), and Gerbv forked 2.7.1 and 2.8.0. A specially-crafted Gerber file can lead to information disclosure. An attacker can provide a malicious file to trigger this vulnerability.
- Record
CVE-2021-40402- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-40402
7.5
An out-of-bounds read vulnerability exists in the RS-274X aperture macro multiple outline primitives functionality of Gerbv 2.7.0 and dev (commit b5f1eacd), and Gerbv forked 2.7.1 and 2.8.0. A specially-crafted Gerber file can lead to information disclosure. An attacker can provide a malicious file to trigger this vulnerability.
- Record
DEBIAN-CVE-2021-40402- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-40402
7.5
An out-of-bounds read vulnerability exists in the RS-274X aperture macro multiple outline primitives functionality of Gerbv 2.7.0 and dev (commit b5f1eacd), and Gerbv forked 2.7.1 and 2.8.0. A specially-crafted Gerber file can lead to information disclosure. An attacker can provide a malicious file to trigger this vulnerability.
- Record
UBUNTU-CVE-2021-40402- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - CVSS 3.0
- 9.3 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:H - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
gerbvDebian:12 |
All versions, plus listed versions 2.10.0-12.10.0-22.9.6-12.9.8-1 |
None known |
gerbvDebian:13 |
All versions, plus listed versions 2.10.0-12.10.0-2 |
None known |
gerbvUbuntu:Pro:16.04:LTS |
All versions, plus listed versions 2.6.0-12.6.0-1ubuntu0.16.04.1~esm12.6.0-1ubuntu0.16.04.1~esm2 |
None known |
gerbvUbuntu:Pro:18.04:LTS |
All versions, plus listed versions 2.6.1-22.6.1-32.6.1-3ubuntu0.1~esm12.6.1-3ubuntu0.1~esm2 |
None known |
gerbvUbuntu:20.04:LTS |
All versions, plus listed versions 2.7.0-12.7.0-1ubuntu0.12.7.0-1ubuntu0.2 |
None known |
gerbvUbuntu:Pro:22.04:LTS |
All versions, plus listed versions 2.7.0-22.7.1-12.8.0-12.8.1-12.8.2-12.8.2-1ubuntu0.1~esm12.8.2-1ubuntu0.1~esm2 |
None known |
gerbvUbuntu:24.04:LTS |
All versions, plus listed versions 2.9.8-12.10.0-12.10.0-1build12.10.0-1build2 |
None known |
gerbvUbuntu:25.10 |
All versions, plus listed versions 2.10.0-1build22.10.0-2 |
None known |
gerbvUbuntu:26.10 |
All versions, plus listed versions 2.10.0-2build1 |
None known |
gerbvUbuntu:26.04:LTS |
All versions, plus listed versions 2.10.0-22.10.0-2build1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-40402 is a critical vulnerability (CVSS 9.3) in Gerbv, published April 14, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.48%, the 74th percentile. No source names a fixed version.