Name | CVE-2021-21899 |
Description | A code execution vulnerability exists in the dwgCompressor::copyCompBytes21 functionality of LibreCad libdxfrw 2.2.0-rc2-19-ge02f3580. A specially-crafted .dwg file can lead to a heap buffer overflow. An attacker can provide a malicious file to trigger this vulnerability. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-2838-1, DSA-5077-1 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
librecad (PTS) | jessie, jessie (lts) | 2.0.4-1+deb8u1 | vulnerable |
| stretch (security), stretch (lts), stretch | 2.1.2-1+deb9u4 | fixed |
| buster (security), buster | 2.1.3-1.2+deb10u1 | fixed |
| bullseye (security), bullseye | 2.1.3-1.3+deb11u1 | fixed |
| bookworm | 2.2.0-1 | fixed |
| sid, trixie | 2.2.0.2-1 | fixed |
The information below is based on the following data on fixed versions.
Notes
https://talosintelligence.com/vulnerability_reports/TALOS-2021-1350
librecad bundles libdxfrw
https://github.com/LibreCAD/libdxfrw/commit/6417118874333309aa10c4e59f954c3905a6e8b5