PT-2021-5667 · Gerbv+3 · Gerbv+3

Claudio Bozzato

·

Published

2021-11-03

·

Updated

2024-12-25

·

CVE-2021-40394

CVSS v3.1

10

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Gerbv versions 2.7.0 and dev (commit b5f1eacd) Gerbv forked version (commit 71493260)
Description An out-of-bounds write issue exists in the RS-274X aperture macro variables handling functionality. This can be triggered by a specially-crafted gerber file, potentially leading to code execution. An attacker can exploit this by providing a malicious file.
Recommendations For Gerbv version 2.7.0, consider avoiding the use of specially-crafted gerber files until a patch is available. For Gerbv dev (commit b5f1eacd), restrict the handling of RS-274X aperture macro variables to minimize the risk of exploitation. For the Gerbv forked version (commit 71493260), disable the functionality related to gerber file processing until a fix is provided. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Integer Overflow

Memory Corruption

Weakness Enumeration

Related Identifiers

ALT-PU-2024-17464
ALT-PU-2024-17535
BDU:2022-00106
CVE-2021-40394
DLA-3593-1
DSA-5306-1
MGASA-2022-0260
USN-6209-1

Affected Products

Alt Linux
Gerbv
Linuxmint
Ubuntu