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.
https://www.debian.org/security/2022/dsa-5306
https://talosintelligence.com/vulnerability_reports/TALOS-2021-1404
https://lists.debian.org/debian-lts-announce/2023/09/msg00040.html