# CVE-2021-21899: A code execution vulnerability exists in the dwgCompressor::copyCompBytes21 functionality of LibreCad libdxfrw 2.2.0-rc2-19-ge02f3580.

- Severity: High 8.8 (CVSS:3.0, scored by talos) `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.76%, higher than 86% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-11-19T00:00:00.000Z
- Modified: 2026-06-17T03:36:19.500Z
- Weaknesses: CWE-119, CWE-787
- Assigned by: talos

## 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.

(As written by CVE List.)

## Affected

- LibreCAD: LibreCad libdxfrw 2.2.0-rc2-19-ge02f3580
- librecad libdxfrw: 2.2.0-rc2-19-ge02f3580
- fedoraproject fedora: 34; 35
- debian debian_linux: 9.0; 10.0; 11.0

## Every score

- talos: CVSS:3.0 8.8 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://talosintelligence.com/vulnerability_reports/TALOS-2021-1350> (exploit, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RDI3HCTCACMIC7I4ILB3NRU6DCMADI5H/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZTIAMP7QJDKV4ADDLR4GVVX2TXYLHVOZ/> (vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2021/12/msg00002.html> (mailing-list, third-party-advisory)
- <https://www.debian.org/security/2022/dsa-5077> (third-party-advisory, vendor-advisory)
- <https://security.gentoo.org/glsa/202305-26> (vendor-advisory)

## Sources

- CVE List: [CVE-2021-21899](https://www.cve.org/CVERecord?id=CVE-2021-21899), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-21899](https://nvd.nist.gov/vuln/detail/CVE-2021-21899), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-21899 · Whole record: https://cve.day/CVE-2021-21899.json · Rebuilt by cve.day 2026-11-25T22:58:05.680Z
