libgetdata — security advisory
A heap memory corruption problem (use after free) can be triggered in libgetdata v0.10.0 when processing maliciously crafted dirfile databases. This degrades the confidentiality, integrity and availability of third-party software that uses libgetdata as a library. This vulnerability may lead to arbitrary code execution or privilege escalation depending on input/skills of attacker.
- Products
- libgetdata
- Affected versions
- 0.10.0-10, 0.10.0-3build2, 0.10.0-6, 0.10.0-6build2, 0.10.0-6build3, 0.11.0-1, 0.11.0-10, 0.11.0-11, 0.11.0-12, 0.11.0-12build1, 0.11.0-12build3, 0.11.0-13, 0.11.0-15, 0.11.0-16, 0.11.0-17, 0.11.0-17build1, 0.11.0-17build2, 0.11.0-2, 0.11.0-2build1, 0.11.0-3ubuntu1, 0.11.0-6, 0.11.0-7, 0.11.0-7ubuntu1, 0.7.3-6.2ubuntu1, 0.9.0-2, 0.9.0-2.1, 0.9.0-2.2
- Fixed versions
- Not specified
- CVEs
- CVE-2021-20204
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 00:59 UTC · Revision 1
Source evidence
A heap memory corruption problem (use after free) can be triggered in libgetdata v0.10.0 when processing maliciously crafted dirfile databases. This degrades the confidentiality, integrity and availability of third-party software that uses libgetdata as a library. This vulnerability may lead to arbitrary code execution or privilege escalation depending on input/skills of attacker.
osv:UBUNTU-CVE-2021-20204
libgetdata
Fixed versions: Not specified
libgetdata
Fixed versions: Not specified
libgetdata
Fixed versions: Not specified
libgetdata
Fixed versions: Not specified
libgetdata
Fixed versions: Not specified
libgetdata
Fixed versions: Not specified
libgetdata
Fixed versions: Not specified
libgetdata
Fixed versions: Not specified
Complete source record
{
"id": "71cefff2d89c5073eef91c3075a382d18a268531a17d47a9bd834c8c717fef9f",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-20204",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2021-20204",
"summary": "A heap memory corruption problem (use after free) can be triggered in libgetdata v0.10.0 when processing maliciously crafted dirfile databases. This degrades the confidentiality, integrity and availability of third-party software that uses libgetdata as a library. This vulnerability may lead to arbitrary code execution or privilege escalation depending on input/skills of attacker.",
"evidence": "osv:UBUNTU-CVE-2021-20204",
"products": [
{
"name": {
"value": "libgetdata",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.7.3-6.2ubuntu1",
"evidence": "/affected/0/versions"
},
{
"value": "0.9.0-2",
"evidence": "/affected/0/versions"
},
{
"value": "0.9.0-2.1",
"evidence": "/affected/0/versions"
},
{
"value": "0.9.0-2.2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "libgetdata",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.10.0-3build2",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "libgetdata",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.10.0-6",
"evidence": "/affected/2/versions"
},
{
"value": "0.10.0-6build2",
"evidence": "/affected/2/versions"
},
{
"value": "0.10.0-6build3",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "libgetdata",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.10.0-10",
"evidence": "/affected/3/versions"
},
{
"value": "0.11.0-1",
"evidence": "/affected/3/versions"
},
{
"value": "0.11.0-2",
"evidence": "/affected/3/versions"
},
{
"value": "0.11.0-2build1",
"evidence": "/affected/3/versions"
},
{
"value": "0.11.0-3ubuntu1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "libgetdata",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.11.0-6",
"evidence": "/affected/4/versions"
},
{
"value": "0.11.0-7",
"evidence": "/affected/4/versions"
},
{
"value": "0.11.0-7ubuntu1",
"evidence": "/affected/4/versions"
},
{
"value": "0.11.0-10",
"evidence": "/affected/4/versions"
},
{
"value": "0.11.0-11",
"evidence": "/affected/4/versions"
},
{
"value": "0.11.0-12",
"evidence": "/affected/4/versions"
},
{
"value": "0.11.0-12build1",
"evidence": "/affected/4/versions"
},
{
"value": "0.11.0-12build3",
"evidence": "/affected/4/versions"
},
{
"value": "0.11.0-13",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "libgetdata",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.11.0-15",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "libgetdata",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.11.0-17build1",
"evidence": "/affected/6/versions"
},
{
"value": "0.11.0-17build2",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "libgetdata",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.11.0-15",
"evidence": "/affected/7/versions"
},
{
"value": "0.11.0-16",
"evidence": "/affected/7/versions"
},
{
"value": "0.11.0-17",
"evidence": "/affected/7/versions"
},
{
"value": "0.11.0-17build1",
"evidence": "/affected/7/versions"
}
]
}
],
"severity": "critical",
"structured": {
"id": "UBUNTU-CVE-2021-20204",
"aliases": [
"UBUNTU-CVE-2021-20204"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libgetdata",
"purl": "pkg:deb/ubuntu/libgetdata?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"0.7.3-6.2ubuntu1",
"0.9.0-2",
"0.9.0-2.1",
"0.9.0-2.2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-20204.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libf95getdata2",
"binary_version": "0.9.0-2.2"
},
{
"binary_name": "libfgetdata2",
"binary_version": "0.9.0-2.2"
},
{
"binary_name": "libgetdata++3",
"binary_version": "0.9.0-2.2"
},
{
"binary_name": "libgetdata-perl",
"binary_version": "0.9.0-2.2"
},
{
"binary_name": "libgetdata-tools",
"binary_version": "0.9.0-2.2"
},
{
"binary_name": "libgetdata5",
"binary_version": "0.9.0-2.2"
},
{
"binary_name": "python-pygetdata",
"binary_version": "0.9.0-2.2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libgetdata",
"purl": "pkg:deb/ubuntu/libgetdata?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"0.10.0-3build2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-20204.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libf95getdata7",
"binary_version": "0.10.0-3build2"
},
{
"binary_name": "libfgetdata6",
"binary_version": "0.10.0-3build2"
},
{
"binary_name": "libgetdata++7",
"binary_version": "0.10.0-3build2"
},
{
"binary_name": "libgetdata-perl",
"binary_version": "0.10.0-3build2"
},
{
"binary_name": "libgetdata-tools",
"binary_version": "0.10.0-3build2"
},
{
"binary_name": "libgetdata8",
"binary_version": "0.10.0-3build2"
},
{
"binary_name": "python-pygetdata",
"binary_version": "0.10.0-3build2"
},
{
"binary_name": "python3-pygetdata",
"binary_version": "0.10.0-3build2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libgetdata",
"purl": "pkg:deb/ubuntu/libgetdata?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"0.10.0-6",
"0.10.0-6build2",
"0.10.0-6build3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-20204.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libf95getdata7",
"binary_version": "0.10.0-6build3"
},
{
"binary_name": "libfgetdata6",
"binary_version": "0.10.0-6build3"
},
{
"binary_name": "libgetdata++7",
"binary_version": "0.10.0-6build3"
},
{
"binary_name": "libgetdata-perl",
"binary_version": "0.10.0-6build3"
},
{
"binary_name": "libgetdata-tools",
"binary_version": "0.10.0-6build3"
},
{
"binary_name": "libgetdata8",
"binary_version": "0.10.0-6build3"
},
{
"binary_name": "python3-pygetdata",
"binary_version": "0.10.0-6build3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libgetdata",
"purl": "pkg:deb/ubuntu/libgetdata?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"0.10.0-10",
"0.11.0-1",
"0.11.0-2",
"0.11.0-2build1",
"0.11.0-3ubuntu1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-20204.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libf95getdata7",
"binary_version": "0.11.0-3ubuntu1"
},
{
"binary_name": "libfgetdata6",
"binary_version": "0.11.0-3ubuntu1"
},
{
"binary_name": "libgetdata++7",
"binary_version": "0.11.0-3ubuntu1"
},
{
"binary_name": "libgetdata-perl",
"binary_version": "0.11.0-3ubuntu1"
},
{
"binary_name": "libgetdata-tools",
"binary_version": "0.11.0-3ubuntu1"
},
{
"binary_name": "libgetdata8",
"binary_version": "0.11.0-3ubuntu1"
},
{
"binary_name": "python3-pygetdata",
"binary_version": "0.11.0-3ubuntu1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libgetdata",
"purl": "pkg:deb/ubuntu/libgetdata?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"0.11.0-6",
"0.11.0-7",
"0.11.0-7ubuntu1",
"0.11.0-10",
"0.11.0-11",
"0.11.0-12",
"0.11.0-12build1",
"0.11.0-12build3",
"0.11.0-13"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-20204.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libf95getdata7",
"binary_version": "0.11.0-13"
},
{
"binary_name": "libfgetdata6",
"binary_version": "0.11.0-13"
},
{
"binary_name": "libgetdata++7",
"binary_version": "0.11.0-13"
},
{
"binary_name": "libgetdata-perl",
"binary_version": "0.11.0-13"
},
{
"binary_name": "libgetdata-tools",
"binary_version": "0.11.0-13"
},
{
"binary_name": "libgetdata8",
"binary_version": "0.11.0-13"
},
{
"binary_name": "python3-pygetdata",
"binary_version": "0.11.0-13"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libgetdata",
"purl": "pkg:deb/ubuntu/libgetdata?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"0.11.0-15"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-20204.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libf95getdata7",
"binary_version": "0.11.0-15"
},
{
"binary_name": "libfgetdata6",
"binary_version": "0.11.0-15"
},
{
"binary_name": "libgetdata++7",
"binary_version": "0.11.0-15"
},
{
"binary_name": "libgetdata-perl",
"binary_version": "0.11.0-15"
},
{
"binary_name": "libgetdata-tools",
"binary_version": "0.11.0-15"
},
{
"binary_name": "libgetdata8",
"binary_version": "0.11.0-15"
},
{
"binary_name": "python3-pygetdata",
"binary_version": "0.11.0-15"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libgetdata",
"purl": "pkg:deb/ubuntu/libgetdata?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"0.11.0-17build1",
"0.11.0-17build2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-20204.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libf95getdata7",
"binary_version": "0.11.0-17build2"
},
{
"binary_name": "libfgetdata6",
"binary_version": "0.11.0-17build2"
},
{
"binary_name": "libgetdata++7",
"binary_version": "0.11.0-17build2"
},
{
"binary_name": "libgetdata-perl",
"binary_version": "0.11.0-17build2"
},
{
"binary_name": "libgetdata-tools",
"binary_version": "0.11.0-17build2"
},
{
"binary_name": "libgetdata8",
"binary_version": "0.11.0-17build2"
},
{
"binary_name": "python3-pygetdata",
"binary_version": "0.11.0-17build2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libgetdata",
"purl": "pkg:deb/ubuntu/libgetdata?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"0.11.0-15",
"0.11.0-16",
"0.11.0-17",
"0.11.0-17build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-20204.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libf95getdata7",
"binary_version": "0.11.0-17build1"
},
{
"binary_name": "libfgetdata6",
"binary_version": "0.11.0-17build1"
},
{
"binary_name": "libgetdata++7",
"binary_version": "0.11.0-17build1"
},
{
"binary_name": "libgetdata-perl",
"binary_version": "0.11.0-17build1"
},
{
"binary_name": "libgetdata-tools",
"binary_version": "0.11.0-17build1"
},
{
"binary_name": "libgetdata8",
"binary_version": "0.11.0-17build1"
},
{
"binary_name": "python3-pygetdata",
"binary_version": "0.11.0-17build1"
}
]
}
}
],
"modified": "2026-10-17T12:56:19.935447219Z",
"provider": "osv",
"upstream": [
"CVE-2021-20204"
],
"references": [
"https://ubuntu.com/security/CVE-2021-20204",
"https://www.cve.org/CVERecord?id=CVE-2021-20204"
]
},
"related_cves": [
{
"value": "CVE-2021-20204",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 355302,
"published_at": "2021-05-06T15:15:00+00:00"
}