CVE-2021-21898

NameCVE-2021-21898
DescriptionA code execution vulnerability exists in the dwgCompressor::decompress18() functionality of LibreCad libdxfrw 2.2.0-rc2-19-ge02f3580. A specially-crafted .dwg file can lead to an out-of-bounds write. An attacker can provide a malicious file to trigger this vulnerability.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-2838-1, DSA-5077-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
librecad (PTS)jessie, jessie (lts)2.0.4-1+deb8u1vulnerable
stretch (security), stretch (lts), stretch2.1.2-1+deb9u4fixed
buster (security), buster2.1.3-1.2+deb10u1fixed
bullseye (security), bullseye2.1.3-1.3+deb11u1fixed
bookworm2.2.0-1fixed
sid, trixie2.2.0.2-1fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
librecadsourcejessie(unfixed)end-of-life
librecadsourcestretch2.1.2-1+deb9u2DLA-2838-1
librecadsourcebuster2.1.3-1.2+deb10u1DSA-5077-1
librecadsourcebullseye2.1.3-1.3+deb11u1DSA-5077-1
librecadsource(unstable)2.1.3-2

Notes

https://talosintelligence.com/vulnerability_reports/TALOS-2021-1349
librecad bundles libdxfrw
https://github.com/LibreCAD/libdxfrw/commit/ba3fa95648bef948e008dfbdd31a4d21badd71f0

Search for package or bug name: Reporting problems