| Name | CVE-2021-21898 |
| Description | A code execution vulnerability exists in the dwgCompressor::decompress18() functionality of LibreCad libdxfrw 2.2.0-rc2-19-ge02f3580. A specially-crafted .dwg file can lead to an out-of-bounds write. An attacker can provide a malicious file to trigger this vulnerability. |
| Source | CVE (at NVD; CERT, 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-1349
librecad bundles libdxfrw
https://github.com/LibreCAD/libdxfrw/commit/ba3fa95648bef948e008dfbdd31a4d21badd71f0