# CVE-2021-40401: gerbv: A use-after-free vulnerability exists in the RS-274X aperture definition tokenization functionality of Gerbv 2.7.0 an...

CVE-2021-40401 is fixed in gerbv on 1 platform, first by DEBIAN-CVE-2021-40401, released February 4, 2022. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2021-40401
- Priority: High
- CVSS: 8.6 (high)
- EPSS: 0.0132
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Feb 4, 2022

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | gerbv Debian 12.15 (bookworm) | 2.9.2-1 | [DEBIAN-CVE-2021-40401](https://patchblox.com/security/data/fix/linux/debian-cve-2021-40401.md) | Feb 4, 2022 |
| Linux | gerbv Debian 13.5 (trixie) | 2.9.2-1 | [DEBIAN-CVE-2021-40401](https://patchblox.com/security/data/fix/linux/debian-cve-2021-40401.md) | Feb 4, 2022 |
| Linux | gerbv Ubuntu 18.04.6 LTS (bionic) | 2.6.1-3ubuntu0.1~esm1 | [gerbv 2.6.1-3ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-gerbv-2.6.1-3ubuntu0.1-esm1.md) | Apr 14, 2022 |
| Linux | gerbv Ubuntu 20.04 LTS (focal) | 2.7.0-1ubuntu0.1 | [gerbv 2.7.0-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-gerbv-2.7.0-1ubuntu0.1.md) | Apr 14, 2022 |
| Linux | gerbv Ubuntu 22.04.1 LTS (jammy) | 2.8.2-1ubuntu0.1~esm1 | [gerbv 2.8.2-1ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-gerbv-2.8.2-1ubuntu0.1-esm1.md) | Apr 14, 2022 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
