
CVE catalog
CVE-2021-21899
librecad: CVE-2021-21899
- Severity
- High · CVSS 8.8
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 2.76% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | librecad | sid | 2.2.0.2-3 | fixed |
| Debian | librecad | forky | 2.2.0.2-3 | fixed |
| Debian | librecad | trixie | 2.2.0.2-1 | fixed |
| Debian | librecad | bookworm | 2.2.0-1 | fixed |
| Ubuntu | librecad | pro | 2.1.2-1 | vulnerable |
| Ubuntu | librecad | pro | 2.1.2-1ubuntu0.1~esm1 | fixed |
| Ubuntu | librecad | 18.04 | 2.1.2-1 | vulnerable |
| Ubuntu | librecad | 18.04 | 2.1.2-1ubuntu0.1 | fixed |
| Ubuntu | librecad | 20.04 | 2.1.3-1.2 | vulnerable |
| Ubuntu | librecad | 20.04 | 2.1.3-1.2build1 | vulnerable |
| Ubuntu | librecad | 20.04 | 2.1.3-1.2+deb10u1build0.20.04.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | librecad | source | sid | 2.1.3-2 | not yet assigned | Not reported | Not reported |
| Debian | librecad | source | forky | 2.1.3-2 | not yet assigned | Not reported | Not reported |
| Debian | librecad | source | trixie | 2.1.3-2 | not yet assigned | Not reported | Not reported |
| Debian | librecad | source | bookworm | 2.1.3-2 | not yet assigned | Not reported | Not reported |
| Ubuntu | librecad | deb | pro | 2.1.2-1ubuntu0.1~esm1 | Not reported | UBUNTU-CVE-2021-21899 | Not reported |
| Ubuntu | librecad | deb | 18.04 | 2.1.2-1ubuntu0.1 | Not reported | UBUNTU-CVE-2021-21899 | Not reported |
| Ubuntu | librecad | deb | 20.04 | 2.1.3-1.2+deb10u1build0.20.04.1 | Not reported | UBUNTU-CVE-2021-21899 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [librecad]Fixed
Details (2)
2.2.0-1· amd64 · bookwormFixed · Fixed:
2.1.3-2dsa · librecad · debian · bookworm; dsa · librecad · debian · 12
2.2.0-1· arm64 · bookwormFixed · Fixed:
2.1.3-2dsa · librecad · debian · bookworm; dsa · librecad · debian · 12
- [librecad-data]Fixed
Source package: [librecad]
Details (2)
2.2.0-1· all · bookwormFixed · Fixed:
2.1.3-2dsa · librecad · debian · bookworm; dsa · librecad · debian · 12
2.2.0-1· all · bookwormFixed · Fixed:
2.1.3-2dsa · librecad · debian · bookworm; dsa · librecad · debian · 12
[Debian 13 (Trixie)]
- [librecad]Fixed
Source package: [librecad]
Details (2)
2.2.0.2-1+b1· amd64 · trixieFixed · Fixed:
2.1.3-2dsa · librecad · debian · 13
2.2.0.2-1+b2· arm64 · trixieFixed · Fixed:
2.1.3-2dsa · librecad · debian · 13
- [librecad-data]Fixed
Source package: [librecad]
Details (2)
2.2.0.2-1· all · trixieFixed · Fixed:
2.1.3-2dsa · librecad · debian · 13
2.2.0.2-1· all · trixieFixed · Fixed:
2.1.3-2dsa · librecad · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2022_0067-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-21899]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2021-21899]
- [https://security-tracker.debian.org/tracker/CVE-2021-21899]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [SUSE security advisories and VEX]