{"id":"UBUNTU-CVE-2021-21897","details":"A code execution vulnerability exists in the DL_Dxf::handleLWPolylineData functionality of Ribbonsoft dxflib 3.17.0. A specially-crafted .dxf file can lead to a heap buffer overflow. An attacker can provide a malicious file to trigger this vulnerability.","modified":"2026-05-20T16:04:45.073651936Z","published":"2021-09-08T16:15:00Z","upstream":["CVE-2021-21897"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-21897"},{"type":"REPORT","url":"https://talosintelligence.com/vulnerability_reports/TALOS-2021-1346"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-21897"}],"affected":[{"package":{"name":"dxflib","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/dxflib?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.5.0.0-3","2.5.0.0-4"],"ecosystem_specific":{"binaries":[{"binary_name":"libdxflib-2.5.0.0v5","binary_version":"2.5.0.0-4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21897.json"}},{"package":{"name":"dxflib","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/dxflib?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.17.0-2"],"ecosystem_specific":{"binaries":[{"binary_name":"libdxflib3","binary_version":"3.17.0-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21897.json"}},{"package":{"name":"dxflib","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/dxflib?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.17.0-3","3.17.0-3build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libdxflib3","binary_version":"3.17.0-3build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21897.json"}},{"package":{"name":"dxflib","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/dxflib?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.17.0-3build1","3.26.4-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libdxflib3","binary_version":"3.26.4-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21897.json"}},{"package":{"name":"dxflib","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/dxflib?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.26.4-1","3.26.4-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libdxflib3","binary_version":"3.26.4-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21897.json"}},{"package":{"name":"dxflib","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/dxflib?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.26.4-2"],"ecosystem_specific":{"binaries":[{"binary_name":"libdxflib3","binary_version":"3.26.4-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21897.json"}},{"package":{"name":"dxflib","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/dxflib?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.26.4-2","3.26.4-2build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libdxflib3","binary_version":"3.26.4-2build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21897.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"}]}