# CVE-2021-40400: gerbv: An out-of-bounds read vulnerability exists in the RS-274X aperture macro outline primitive functionality of Gerbv 2.7...

CVE-2021-40400 is fixed in gerbv on 1 platform, first by gerbv 2.6.1-3ubuntu0.1~esm1, released April 14, 2022. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2021-40400
- Priority: High
- CVSS: 7.5 (high)
- EPSS: 0.0129
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Apr 14, 2022

## Description

An out-of-bounds read vulnerability exists in the RS-274X aperture macro outline primitive functionality of Gerbv 2.7.0 and dev (commit b5f1eacd) and the forked version of Gerbv (commit d7f42a9a). A specially-crafted Gerber file can lead to information disclosure. 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-40400](https://patchblox.com/security/data/fix/linux/debian-cve-2021-40400.md) | Apr 14, 2022 |
| Linux | gerbv Debian 13.5 (trixie) | 2.9.2-1 | [DEBIAN-CVE-2021-40400](https://patchblox.com/security/data/fix/linux/debian-cve-2021-40400.md) | Apr 14, 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-08T19:12:23Z 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.
