Medium
leocad — security advisory
LeoCAD before 21.03 sometimes allows a use-after-free during the opening of a new document.
- Products
- leocad
- Affected versions
- 0.81+svn1775-1, 0.81+svn1775-1ubuntu1, 17.07-1, 17.07-2, 18.01-1, 19.07.1-1, 19.07.1-1build1, 21.06-1, 21.06-1build1, 21.06-1build2, 23.03-3, 25.09-1
- Fixed versions
- Not specified
- CVEs
- CVE-2021-31804
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 00:34 UTC · Revision 1
Source evidence
LeoCAD before 21.03 sometimes allows a use-after-free during the opening of a new document.
osv:UBUNTU-CVE-2021-31804
leocad
Fixed versions: Not specified
leocad
Fixed versions: Not specified
leocad
Fixed versions: Not specified
leocad
Fixed versions: Not specified
leocad
Fixed versions: Not specified
leocad
Fixed versions: Not specified
leocad
Fixed versions: Not specified
leocad
Fixed versions: Not specified
Complete source record
{
"id": "3aa575c47325de936aec7dce4d9ca1293b80e9d80041b6983bde333de91c1b41",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-31804",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2021-31804",
"summary": "LeoCAD before 21.03 sometimes allows a use-after-free during the opening of a new document.",
"evidence": "osv:UBUNTU-CVE-2021-31804",
"products": [
{
"name": {
"value": "leocad",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.81+svn1775-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.81+svn1775-1ubuntu1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "leocad",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "17.07-1",
"evidence": "/affected/1/versions"
},
{
"value": "17.07-2",
"evidence": "/affected/1/versions"
},
{
"value": "18.01-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "leocad",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "19.07.1-1",
"evidence": "/affected/2/versions"
},
{
"value": "19.07.1-1build1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "leocad",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "19.07.1-1build1",
"evidence": "/affected/3/versions"
},
{
"value": "21.06-1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "leocad",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "21.06-1",
"evidence": "/affected/4/versions"
},
{
"value": "21.06-1build1",
"evidence": "/affected/4/versions"
},
{
"value": "21.06-1build2",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "leocad",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "21.06-1build2",
"evidence": "/affected/5/versions"
},
{
"value": "23.03-3",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "leocad",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "25.09-1",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "leocad",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "23.03-3",
"evidence": "/affected/7/versions"
},
{
"value": "25.09-1",
"evidence": "/affected/7/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2021-31804",
"aliases": [
"UBUNTU-CVE-2021-31804"
],
"metrics": [
{
"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"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "leocad",
"purl": "pkg:deb/ubuntu/leocad?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"0.81+svn1775-1",
"0.81+svn1775-1ubuntu1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-31804.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "leocad",
"binary_version": "0.81+svn1775-1ubuntu1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "leocad",
"purl": "pkg:deb/ubuntu/leocad?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"17.07-1",
"17.07-2",
"18.01-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-31804.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "leocad",
"binary_version": "18.01-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "leocad",
"purl": "pkg:deb/ubuntu/leocad?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"19.07.1-1",
"19.07.1-1build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-31804.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "leocad",
"binary_version": "19.07.1-1build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "leocad",
"purl": "pkg:deb/ubuntu/leocad?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"19.07.1-1build1",
"21.06-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-31804.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "leocad",
"binary_version": "21.06-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "leocad",
"purl": "pkg:deb/ubuntu/leocad?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"21.06-1",
"21.06-1build1",
"21.06-1build2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-31804.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "leocad",
"binary_version": "21.06-1build2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "leocad",
"purl": "pkg:deb/ubuntu/leocad?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"21.06-1build2",
"23.03-3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-31804.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "leocad",
"binary_version": "23.03-3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "leocad",
"purl": "pkg:deb/ubuntu/leocad?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"25.09-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-31804.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "leocad",
"binary_version": "25.09-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "leocad",
"purl": "pkg:deb/ubuntu/leocad?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"23.03-3",
"25.09-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-31804.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "leocad",
"binary_version": "25.09-1"
}
]
}
}
],
"modified": "2026-10-17T12:55:46.205090395Z",
"provider": "osv",
"upstream": [
"CVE-2021-31804"
],
"references": [
"https://ubuntu.com/security/CVE-2021-31804",
"https://github.com/leozide/leocad/issues/645",
"https://www.cve.org/CVERecord?id=CVE-2021-31804"
]
},
"related_cves": [
{
"value": "CVE-2021-31804",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 354042,
"published_at": "2021-04-26T08:15:00+00:00"
}