Buffer overflow in Gerbv - CVE-2021-40393

 

Buffer overflow in Gerbv - CVE-2021-40393

Published: December 10, 2021


Vulnerability identifier: #VU58822
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-40393
CWE-ID: CWE-119
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error in the RS-274X aperture macro variables handling functionality. A remote attacker can create a specially crafted gerber file, trigger memory corruption and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

Gerbv
Debian Linux
Fedora
gerbv (Debian package)
gerbv

How to mitigate CVE-2021-40393

Install updates from vendor's website.

Gerbv - update to 2.7.1
gerbv (Debian package) - update to 2.7.0-2+deb11u2
gerbv - update to 2.9.8-1.fc37

External References

Related Security Bulletins