CVE-2021-21899
published high CVSS 3.0 · 8.8librecad: heap out-of-bounds write in dwgCompressor:copyCompBytes21
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | LibreCADLibreCad libdxfrw 2.2.0-rc2-19-ge02f3580 | Affected | Not stated | talos |
| Debian | bullseye | librecad | Advisory build | 2.1.3-1.3+deb11u1 | DSA-5077-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libdxfrw-develaarch64 | Advisory build | 1.0.1+git.20220109-bp153.2.3.1 | OPENSUSE-SU-2022:0067-1 |
| Ubuntu | bionic | librecad | Advisory build | 2.1.2-1ubuntu0.1~esm1 | USN-5957-1 |
| Debian | buster | librecad | Advisory build | 2.1.3-1.2+deb10u1 | DSA-5077-1 |
| Debian | stretch | librecad | Advisory build | 2.1.2-1+deb9u2 | DLA-2838-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libdxfrw-develi586 | Advisory build | 1.0.1+git.20220109-bp153.2.3.1 | OPENSUSE-SU-2022:0067-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libdxfrw-develppc64le | Advisory build | 1.0.1+git.20220109-bp153.2.3.1 | OPENSUSE-SU-2022:0067-1 |
Show 34 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Leap-15.3 | libdxfrw-devels390x | Advisory build | 1.0.1+git.20220109-bp153.2.3.1 | OPENSUSE-SU-2022:0067-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libdxfrw-develx86_64 | Advisory build | 1.0.1+git.20220109-bp153.2.3.1 | OPENSUSE-SU-2022:0067-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libdxfrw-toolsaarch64 | Advisory build | 1.0.1+git.20220109-bp153.2.3.1 | OPENSUSE-SU-2022:0067-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libdxfrw-toolsi586 | Advisory build | 1.0.1+git.20220109-bp153.2.3.1 | OPENSUSE-SU-2022:0067-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libdxfrw-toolsppc64le | Advisory build | 1.0.1+git.20220109-bp153.2.3.1 | OPENSUSE-SU-2022:0067-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libdxfrw-toolss390x | Advisory build | 1.0.1+git.20220109-bp153.2.3.1 | OPENSUSE-SU-2022:0067-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libdxfrw-toolsx86_64 | Advisory build | 1.0.1+git.20220109-bp153.2.3.1 | OPENSUSE-SU-2022:0067-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libdxfrw1aarch64 | Advisory build | 1.0.1+git.20220109-bp153.2.3.1 | OPENSUSE-SU-2022:0067-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libdxfrw1i586 | Advisory build | 1.0.1+git.20220109-bp153.2.3.1 | OPENSUSE-SU-2022:0067-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libdxfrw1ppc64le | Advisory build | 1.0.1+git.20220109-bp153.2.3.1 | OPENSUSE-SU-2022:0067-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libdxfrw1s390x | Advisory build | 1.0.1+git.20220109-bp153.2.3.1 | OPENSUSE-SU-2022:0067-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libdxfrw1x86_64 | Advisory build | 1.0.1+git.20220109-bp153.2.3.1 | OPENSUSE-SU-2022:0067-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | librecadaarch64 | Advisory build | 2.2.0~rc3-bp153.2.3.1 | OPENSUSE-SU-2022:0067-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | librecadppc64le | Advisory build | 2.2.0~rc3-bp153.2.3.1 | OPENSUSE-SU-2022:0067-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | librecads390x | Advisory build | 2.2.0~rc3-bp153.2.3.1 | OPENSUSE-SU-2022:0067-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | librecadx86_64 | Advisory build | 2.2.0~rc3-bp153.2.3.1 | OPENSUSE-SU-2022:0067-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | librecad-partsnoarch | Advisory build | 2.2.0~rc3-bp153.2.3.1 | OPENSUSE-SU-2022:0067-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libdxfrw-develaarch64 | Advisory build | 1.0.1+git.20211110-1.1 | OPENSUSE-SU-2024:11697-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libdxfrw-develppc64le | Advisory build | 1.0.1+git.20211110-1.1 | OPENSUSE-SU-2024:11697-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libdxfrw-devels390x | Advisory build | 1.0.1+git.20211110-1.1 | OPENSUSE-SU-2024:11697-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libdxfrw-develx86_64 | Advisory build | 1.0.1+git.20211110-1.1 | OPENSUSE-SU-2024:11697-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libdxfrw-toolsaarch64 | Advisory build | 1.0.1+git.20211110-1.1 | OPENSUSE-SU-2024:11697-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libdxfrw-toolsppc64le | Advisory build | 1.0.1+git.20211110-1.1 | OPENSUSE-SU-2024:11697-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libdxfrw-toolss390x | Advisory build | 1.0.1+git.20211110-1.1 | OPENSUSE-SU-2024:11697-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libdxfrw-toolsx86_64 | Advisory build | 1.0.1+git.20211110-1.1 | OPENSUSE-SU-2024:11697-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libdxfrw1aarch64 | Advisory build | 1.0.1+git.20211110-1.1 | OPENSUSE-SU-2024:11697-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libdxfrw1ppc64le | Advisory build | 1.0.1+git.20211110-1.1 | OPENSUSE-SU-2024:11697-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libdxfrw1s390x | Advisory build | 1.0.1+git.20211110-1.1 | OPENSUSE-SU-2024:11697-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libdxfrw1x86_64 | Advisory build | 1.0.1+git.20211110-1.1 | OPENSUSE-SU-2024:11697-1 |
| Ubuntu | bionic | librecad-data | Advisory build | 2.1.2-1ubuntu0.1~esm1 | USN-5957-1 |
| Ubuntu | focal | librecad | Advisory build | 2.1.3-1.2+deb10u1build0.20.04.1 | USN-5957-1 |
| Ubuntu | focal | librecad-data | Advisory build | 2.1.3-1.2+deb10u1build0.20.04.1 | USN-5957-1 |
| Ubuntu | xenial | librecad | Advisory build | 2.0.9-2ubuntu0.1~esm1 | USN-5957-1 |
| Ubuntu | xenial | librecad-data | Advisory build | 2.0.9-2ubuntu0.1~esm1 | USN-5957-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- talos · cna
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | LibreCAD | LibreCad libdxfrw 2.2.0-rc2-19-ge02f3580 (affected) | talos · cna |
Weaknesses
1- CWE-119 CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
References
6- [debian-lts-announce] 20211203 [SECURITY] [DLA 2838-1] librecad security update https://lists.debian.org/debian-lts-announce/2021/12/msg00002.html
- FEDORA-2021-fa9e3c23f2 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RDI3HCTCACMIC7I4ILB3NRU6DCMADI5H/
- FEDORA-2021-67c946a9f3 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZTIAMP7QJDKV4ADDLR4GVVX2TXYLHVOZ/
- GLSA-202305-26 https://security.gentoo.org/glsa/202305-26
- https://talosintelligence.com/vulnerability_reports/TALOS-2021-1350
- DSA-5077 https://www.debian.org/security/2022/dsa-5077
Provider assertions
2talos · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 27fca72147bede83597221adb748c86f1770534592b5f5ca32c621aea1ad7e59
- Ingested
- 23 Sep 2026, 07:52:37 UTC
- Source record
- Official CVE record