NULL pointer dereference in LibreCAD - CVE-2021-45343

 

NULL pointer dereference in LibreCAD - CVE-2021-45343

Published: June 1, 2022 / Updated: December 19, 2022


Vulnerability identifier: #VU63901
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-45343
CWE-ID: CWE-476
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to a NULL pointer dereference error in the HATCH handling of libdxfrw. A remote attacker can trick the victim into opening a specially crafted DXF document and perform a denial of service (DoS) attack.


Affected software

LibreCAD
Debian Linux
Gentoo Linux
Fedora
Ubuntu
librecad (Ubuntu package)
libdxfrw
media-gfx/librecad
librecad (Debian package)
librecad

How to mitigate CVE-2021-45343

Install update from vendor's website.

LibreCAD - update to 2.2.0 rc4
librecad (Ubuntu package) - addressed in versions Ubuntu Pro, 2.1.3-1.2+deb10u1build0.20.04.1
libdxfrw - addressed in versions 1.0.1-3.el7, 1.0.1-3.fc34, 1.0.1-3.fc35, 1.1.0-0.1.rc1.fc35
media-gfx/librecad - update to 2.1.3-r7
librecad (Debian package) - addressed in versions 2.1.3-1.2+deb10u1, 2.1.3-1.3+deb11u1
librecad - addressed in versions 2.2.0-0.13.rc3.el7, 2.2.0-0.13.rc3.fc34, 2.2.0-0.13.rc3.fc35, 2.2.0-0.15.rc4.fc35

External References

Related Security Bulletins