{"id":"UBUNTU-CVE-2021-21900","details":"A code execution vulnerability exists in the dxfRW::processLType() functionality of LibreCad libdxfrw 2.2.0-rc2-19-ge02f3580. A specially-crafted .dxf file can lead to a use-after-free vulnerability. An attacker can provide a malicious file to trigger this vulnerability.","modified":"2026-05-20T16:06:26.190396561Z","published":"2021-11-19T19:15:00Z","related":["USN-5957-1"],"upstream":["CVE-2021-21900"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-21900"},{"type":"REPORT","url":"https://talosintelligence.com/vulnerability_reports/TALOS-2021-1351"},{"type":"REPORT","url":"https://github.com/LibreCAD/libdxfrw/commit/fcd977cc7f8f6cc7f012e5b72d33cf7d77b3fa69"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5957-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-21900"}],"affected":[{"package":{"name":"librecad","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/librecad?arch=source&distro=esm-apps%2Fxenial"},"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_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-21900.json"}},{"package":{"name":"librecad","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/librecad?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-21900.json"}},{"package":{"name":"librecad","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/librecad?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_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"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21900.json"}},{"package":{"name":"librecad","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/librecad?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.0-1","2.2.0.2-1","2.2.0.2-1build1","2.2.0.2-1build2","2.2.0.2-1build3"],"ecosystem_specific":{"binaries":[{"binary_name":"librecad","binary_version":"2.2.0.2-1build3"},{"binary_version":"2.2.0.2-1build3","binary_name":"librecad-data"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21900.json"}},{"package":{"name":"librecad","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/librecad?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.0.2-1build3"],"ecosystem_specific":{"binaries":[{"binary_name":"librecad","binary_version":"2.2.0.2-1build3"},{"binary_version":"2.2.0.2-1build3","binary_name":"librecad-data"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21900.json"}},{"package":{"name":"librecad","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/librecad?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.0.2-1build3"],"ecosystem_specific":{"binaries":[{"binary_name":"librecad","binary_version":"2.2.0.2-1build3"},{"binary_name":"librecad-data","binary_version":"2.2.0.2-1build3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21900.json"}}],"schema_version":"1.7.5","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"}]}