CVE-2021-21899

NameCVE-2021-21899
DescriptionA 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
ReferencesDLA-2838-1
NVD severitymedium

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
librecad (PTS)stretch2.1.2-1+deb9u1vulnerable
stretch (security)2.1.2-1+deb9u2fixed
buster2.1.3-1.2vulnerable
bookworm, sid, bullseye2.1.3-1.3vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
librecadsourcestretch2.1.2-1+deb9u2DLA-2838-1
librecadsource(unstable)(unfixed)

Notes

https://talosintelligence.com/vulnerability_reports/TALOS-2021-1350
librecad bundles libdxfrw
https://github.com/LibreCAD/libdxfrw/commit/6417118874333309aa10c4e59f954c3905a6e8b5

Search for package or bug name: Reporting problems