CVE-2021-40401 (https://talosintelligence.com/vulnerability_reports/TALOS-2021-1415): 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. CVE-2021-40403 (https://talosintelligence.com/vulnerability_reports/TALOS-2021-1417): An information disclosure vulnerability exists in the pick-and-place rotation parsing functionality of Gerbv 2.7.0 and dev (commit b5f1eacd), and Gerbv forked 2.8.0. A specially-crafted pick-and-place file can exploit the missing initialization of a structure to leak memory contents. An attacker can provide a malicious file to trigger this vulnerability. Of course, Talos says the vendor has patched but no links.
Description: Seems like Talos reported a bunch of vulnerabilities over the course of several months, though one can only find that these were fixed via the gerbv releases page, rather than with CVE references. https://github.com/gerbv/gerbv/releases CVE-2021-40391 (https://www.talosintelligence.com/vulnerability_reports/TALOS-2021-1402): An out-of-bounds write vulnerability exists in the drill format T-code tool number functionality of Gerbv 2.7.0, dev (commit b5f1eacd), and the forked version of Gerbv (commit 71493260). A specially-crafted drill file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability. CVE-2021-40394 (https://talosintelligence.com/vulnerability_reports/TALOS-2021-1404): 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. CVE-2021-40393 (https://talosintelligence.com/vulnerability_reports/TALOS-2021-1404): 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. CVE-2021-40400 (https://talosintelligence.com/vulnerability_reports/TALOS-2021-1413): 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.
So, fixes are in 2.9.2.
Ping. Please add gerbv-2.9.2 or newer to fix these security issues.