# CVE-2021-40394: An out-of-bounds write vulnerability exists in the RS-274X aperture macro variables handling functionality of Gerbv 2.7.0 and dev (commit b…

- Severity: Critical 10.0 (CVSS:3.0, scored by talos) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/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): 2.99%, higher than 87% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-12-22T00:00:00.000Z
- Modified: 2026-06-17T04:06:51.390Z
- Weaknesses: CWE-787
- Assigned by: talos

## 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.

(As written by CVE List.)

## Affected

- Gerbv: Gerbv 2.7.0,Gerbv dev (commit b5f1eacd), Gerbv forked dev (commit 71493260)
- gerbv_project gerbv: 2.7.0
- debian debian_linux: 9.0; 10.0; 11.0

## Every score

- talos: CVSS:3.0 10.0 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://talosintelligence.com/vulnerability_reports/TALOS-2021-1404> (exploit, third-party-advisory)
- <https://www.debian.org/security/2022/dsa-5306> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/09/msg00040.html> (mailing-list)

## Sources

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

---

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