Buffer overflow in libdxfrw - CVE-2021-21899
Published: June 1, 2022 / Updated: December 19, 2022
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the system.
The vulnerability exists due to a boundary error in the dwgCompressor::copyCompBytes21 function. A remote attacker can trick the victim into opening a specially crafted .dwg file, trigger heap buffer overflow, and execute arbitrary code on the target system.
Affected software
Gentoo Linux
Debian Linux
Fedora
Ubuntu
librecad (Ubuntu package)
librecad (Debian package)
libdxfrw
librecad
media-gfx/librecad
How to mitigate CVE-2021-21899
librecad (Ubuntu package) - addressed in versions 2.0.9-2ubuntu0.1~esm1, 2.1.2-1ubuntu0.1~esm1, 2.1.3-1.2+deb10u1build0.20.04.1
librecad (Debian package) - addressed in versions 2.1.2-1+deb9u2, 2.1.3-1.2+deb10u1, 2.1.3-1.3+deb11u1
libdxfrw - addressed in versions 1.0.1-1.el7, 1.0.1-1.fc33, 1.0.1-1.fc34, 1.0.1-1.fc35
librecad - addressed in versions 2.2.0-0.11.rc2.el7, 2.2.0-0.11.rc2.fc33, 2.2.0-0.11.rc2.fc34, 2.2.0-0.11.rc2.fc35
media-gfx/librecad - update to 2.1.3-r7
External References
Related Security Bulletins
- Debian update for librecad
- Multiple vulnerabilities in LibreCAD libdxfrw
- Ubuntu update for librecad
- Gentoo update for LibreCAD
- Fedora 35 update for libdxfrw, librecad
- Fedora 33 update for libdxfrw, librecad
- Fedora 34 update for libdxfrw, librecad
- Fedora EPEL 7 update for libdxfrw, librecad
- Debian update for librecad