CVE-2021-21899: A code execution vulnerability exists in the dwgCompressor::copyCompBytes21 functionality of LibreCad libdxfrw
CVE-2021-21899 is a high-severity flaw (CVSS 8.8) affecting libdxfrw, fedora, debian linux. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- High severity
- Public exploit reference
- On your watchlist
No fix is published yet: follow the downgrade or mitigation steps.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-21899?
libdxfrw: downgrade or apply the listed mitigation; fedora: mitigate or apply the listed mitigation; debian linux: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2021-21899 being exploited?
CVE-2021-21899 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-21899 affect?
CVE-2021-21899 affects libdxfrw, fedora, debian linux. Severity is high (CVSS 8.8). 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 fil
How urgent is CVE-2021-21899?
Priority 62/100. High severity; Public exploit reference; On your watchlist
Software pages
Related CVEs
- CVE-2021-21900 HIGH 8.8 DOWNGRADE MITIGATE A code execution vulnerability exists in the dxfRW::processLType() functionality of LibreCad libdxfrw 2.2.0-rc
- CVE-2021-21898 HIGH 8.8 DOWNGRADE MITIGATE A code execution vulnerability exists in the dwgCompressor::decompress18() functionality of LibreCad libdxfrw
- CVE-2018-14444 HIGH 7.5 DOWNGRADE libdxfrw 0.6.3 has an Integer Overflow in dwgCompressor::decompress18 in dwgutil.cpp, leading to an out-of-bou