{"id":"UBUNTU-CVE-2021-21898","details":"A 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.","modified":"2026-02-04T04:07:35.213809Z","published":"2021-11-19T20:15:00Z","related":["USN-5957-1"],"upstream":["CVE-2021-21898"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-21898"},{"type":"REPORT","url":"https://talosintelligence.com/vulnerability_reports/TALOS-2021-1349"},{"type":"REPORT","url":"https://github.com/LibreCAD/libdxfrw/commit/ba3fa95648bef948e008dfbdd31a4d21badd71f0"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5957-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-21898"}],"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_version":"2.0.9-2ubuntu0.1~esm1","binary_name":"librecad"},{"binary_version":"2.0.9-2ubuntu0.1~esm1","binary_name":"librecad-data"}],"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-21898.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":{"binaries":[{"binary_version":"2.1.2-1ubuntu0.1","binary_name":"librecad"},{"binary_version":"2.1.2-1ubuntu0.1","binary_name":"librecad-data"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21898.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":{"binaries":[{"binary_version":"2.1.2-1ubuntu0.1~esm1","binary_name":"librecad"},{"binary_version":"2.1.2-1ubuntu0.1~esm1","binary_name":"librecad-data"}],"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-21898.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":{"binaries":[{"binary_version":"2.1.3-1.2+deb10u1build0.20.04.1","binary_name":"librecad"},{"binary_version":"2.1.3-1.2+deb10u1build0.20.04.1","binary_name":"librecad-data"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21898.json"}},{"package":{"name":"librecad","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/librecad@2.1.3-3?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.3-3"}]}],"versions":["2.1.3-1.3"],"ecosystem_specific":{"binaries":[{"binary_version":"2.1.3-3","binary_name":"librecad"},{"binary_version":"2.1.3-3","binary_name":"librecad-data"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21898.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"}]}