{"id":"UBUNTU-CVE-2021-31804","details":"LeoCAD before 21.03 sometimes allows a use-after-free during the opening of a new document.","modified":"2026-05-20T16:04:58.524838328Z","published":"2021-04-26T08:15:00Z","upstream":["CVE-2021-31804"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-31804"},{"type":"REPORT","url":"https://github.com/leozide/leocad/issues/645"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-31804"}],"affected":[{"package":{"name":"leocad","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/leocad?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.81+svn1775-1","0.81+svn1775-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"leocad","binary_version":"0.81+svn1775-1ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-31804.json"}},{"package":{"name":"leocad","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/leocad?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["17.07-1","17.07-2","18.01-1"],"ecosystem_specific":{"binaries":[{"binary_name":"leocad","binary_version":"18.01-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-31804.json"}},{"package":{"name":"leocad","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/leocad?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["19.07.1-1","19.07.1-1build1"],"ecosystem_specific":{"binaries":[{"binary_version":"19.07.1-1build1","binary_name":"leocad"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-31804.json"}},{"package":{"name":"leocad","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/leocad?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["19.07.1-1build1","21.06-1"],"ecosystem_specific":{"binaries":[{"binary_name":"leocad","binary_version":"21.06-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-31804.json"}},{"package":{"name":"leocad","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/leocad?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["21.06-1","21.06-1build1","21.06-1build2"],"ecosystem_specific":{"binaries":[{"binary_name":"leocad","binary_version":"21.06-1build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-31804.json"}},{"package":{"name":"leocad","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/leocad?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["21.06-1build2","23.03-3"],"ecosystem_specific":{"binaries":[{"binary_version":"23.03-3","binary_name":"leocad"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-31804.json"}},{"package":{"name":"leocad","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/leocad?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["23.03-3","25.09-1"],"ecosystem_specific":{"binaries":[{"binary_name":"leocad","binary_version":"25.09-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-31804.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}