Stack-based buffer overflow in kicad - CVE-2022-23947

 

Stack-based buffer overflow in kicad - CVE-2022-23947

Published: February 3, 2022 / Updated: February 11, 2022


Vulnerability identifier: #VU60262
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-23947
CWE-ID: CWE-121
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 "DCodeNumber" in the Gerber Viewer gerber and excellon GCode/Dcode parsing functionality. A remote unauthenticated attacker can #CONDITION2#, trigger stack-based buffer overflow and execute arbitrary code on the target system.

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


Affected software

kicad
Debian Linux
Ubuntu
Fedora
kicad (Ubuntu package)
kicad (Debian package)
kicad

How to mitigate CVE-2022-23947

Install update from vendor's website.

kicad - update to 6.0.2
kicad (Ubuntu package) - update to Ubuntu Pro
kicad (Debian package) - update to 5.1.9+dfsg1-1+deb11u1
kicad - update to 6.0.2-1.fc35

External References

Related Security Bulletins