# CVE-2021-40401: A use-after-free vulnerability exists in the RS-274X aperture definition tokenization functionality of Gerbv 2.7.0 and dev (commit b5f1eacd…

- 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:L/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.37%, higher than 72% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-02-04T00:00:00.000Z
- Modified: 2026-06-17T04:06:52.083Z
- Weaknesses: CWE-252
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: talos

## Description

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. 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 forked 2.7.1 ,Gerbv dev (commit b5f1eacd)
- gerbv_project gerbv: 2.7.0; 2.7.1
- fedoraproject fedora: 36
- debian debian_linux: 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:L/A:H`
- NVD: CVSS:3.1 8.6 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://talosintelligence.com/vulnerability_reports/TALOS-2021-1415> (exploit, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TUM5GIUZJ7AVHVCXDZW6ZVCAPV2ISN47/> (vendor-advisory)
- <https://www.debian.org/security/2022/dsa-5306> (third-party-advisory, vendor-advisory)

## Sources

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

---

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