{"id":"UBUNTU-CVE-2021-21899","details":"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.","modified":"2026-02-04T02:31:29.869910Z","published":"2021-11-19T19:15:00Z","related":["USN-5957-1"],"upstream":["CVE-2021-21899"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-21899"},{"type":"REPORT","url":"https://talosintelligence.com/vulnerability_reports/TALOS-2021-1350"},{"type":"REPORT","url":"https://github.com/LibreCAD/libdxfrw/commit/6417118874333309aa10c4e59f954c3905a6e8b5"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5957-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-21899"}],"affected":[{"package":{"name":"librecad","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/librecad@2.0.9-2ubuntu0.1~esm1?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.9-2ubuntu0.1~esm1"}]}],"versions":["2.0.4-1build1","2.0.8-1","2.0.9-2"],"ecosystem_specific":{"binaries":[{"binary_name":"librecad","binary_version":"2.0.9-2ubuntu0.1~esm1"},{"binary_name":"librecad-data","binary_version":"2.0.9-2ubuntu0.1~esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21899.json"}},{"package":{"name":"librecad","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/librecad@2.1.2-1ubuntu0.1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.2-1ubuntu0.1"}]}],"versions":["2.1.2-1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"librecad","binary_version":"2.1.2-1ubuntu0.1"},{"binary_name":"librecad-data","binary_version":"2.1.2-1ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21899.json"}},{"package":{"name":"librecad","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/librecad@2.1.2-1ubuntu0.1~esm1?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.2-1ubuntu0.1~esm1"}]}],"versions":["2.1.2-1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"librecad","binary_version":"2.1.2-1ubuntu0.1~esm1"},{"binary_name":"librecad-data","binary_version":"2.1.2-1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21899.json"}},{"package":{"name":"librecad","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/librecad@2.1.3-1.2+deb10u1build0.20.04.1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.3-1.2+deb10u1build0.20.04.1"}]}],"versions":["2.1.3-1.2","2.1.3-1.2build1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"librecad","binary_version":"2.1.3-1.2+deb10u1build0.20.04.1"},{"binary_name":"librecad-data","binary_version":"2.1.3-1.2+deb10u1build0.20.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21899.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}