CVE-2021-21898
Linux Debian vulnerability analysis and mitigation

Overview

A code execution vulnerability (CVE-2021-21898) was discovered in the dwgCompressor::decompress18() functionality of LibreCad libdxfrw 2.2.0-rc2-19-ge02f3580. The vulnerability allows an attacker to trigger an out-of-bounds write through a specially-crafted .dwg file (Talos Report, CVE Details).

Technical details

The vulnerability exists in the dwgCompressor::decompress18() function where there's no check on the size of the length from litLength18() function before copying data, leading to a heap buffer overflow. The vulnerability has a CVSSv3 score of 8.8 (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) and is classified under CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) (Talos Report).

Impact

If exploited, this vulnerability could lead to code execution through an out-of-bounds write when processing specially-crafted .dwg files. An attacker can trigger this vulnerability by providing a malicious file to the application (CVE Details, Talos Report).

Mitigation and workarounds

Multiple distributions have released patches to address this vulnerability. Debian released updates in version 2.1.3-1.2+deb10u1 for buster and 2.1.3-1.3+deb11u1 for bullseye. Fedora updated to libdxfrw-1.0.1 in both Fedora 34 and 35. Users are advised to upgrade to the latest version of the software (Debian Security, Fedora Update).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-11266MEDIUM6.8
  • Linux DebianLinux Debian
  • gdcm
NoNoDec 12, 2025
CVE-2025-67897MEDIUM5.3
  • Linux DebianLinux Debian
  • rust-sequoia-openpgp
NoYesDec 14, 2025
CVE-2025-14607MEDIUM5.3
  • Linux DebianLinux Debian
  • dcmtk
NoNoDec 13, 2025
CVE-2025-67749MEDIUM5.3
  • Linux DebianLinux Debian
  • pcsx2
NoNoDec 12, 2025
CVE-2025-40345N/AN/A
  • Linux KernelLinux Kernel
  • bpftool
NoYesDec 12, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management