| 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, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DLA-2838-1, DSA-5077-1 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| librecad (PTS) | bullseye (security), bullseye | 2.1.3-1.3+deb11u1 | fixed |
| bookworm | 2.2.0-1 | fixed | |
| trixie | 2.2.0.2-1 | fixed | |
| forky, sid | 2.2.0.2-2 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| librecad | source | stretch | 2.1.2-1+deb9u2 | DLA-2838-1 | ||
| librecad | source | buster | 2.1.3-1.2+deb10u1 | DSA-5077-1 | ||
| librecad | source | bullseye | 2.1.3-1.3+deb11u1 | DSA-5077-1 | ||
| librecad | source | (unstable) | 2.1.3-2 |
https://talosintelligence.com/vulnerability_reports/TALOS-2021-1350
librecad bundles libdxfrw
https://github.com/LibreCAD/libdxfrw/commit/6417118874333309aa10c4e59f954c3905a6e8b5