# CVE-2021-40402: An out-of-bounds read vulnerability exists in the RS-274X aperture macro multiple outline primitives functionality of Gerbv 2.7.0 and dev (…

- Severity: Critical 9.3 (CVSS:3.0, scored by talos) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.48%, higher than 74% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-04-14T19:56:14.140Z
- Modified: 2026-06-17T04:06:52.200Z
- Weaknesses: CWE-125, CWE-755
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: talos

## Description

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.

(As written by CVE List.)

## Affected

- Gerbv Gerbv: 2.7.0; dev  (commit b5f1eacd)
- Gerbv Gerbv forked: 2.7.1; 2.8.0
- gerbv_project gerbv: 2.7.0; 2.7.1; 2.8.0

## Every score

- talos: 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`
- NVD: 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`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://talosintelligence.com/vulnerability_reports/TALOS-2021-1416> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2021-40402](https://www.cve.org/CVERecord?id=CVE-2021-40402), CVE Terms of Use, modified 2025-04-15
- NVD: [CVE-2021-40402](https://nvd.nist.gov/vuln/detail/CVE-2021-40402), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-40402 · Whole record: https://cve.day/CVE-2021-40402.json · Rebuilt by cve.day 2026-11-25T22:58:07.383Z
