dxflib — security advisory
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.
- Products
- dxflib
- Affected versions
- 2.5.0.0-3, 2.5.0.0-4, 3.17.0-2, 3.17.0-3, 3.17.0-3build1, 3.26.4-1, 3.26.4-1build1, 3.26.4-2, 3.26.4-2build1, 3.26.4-3
- Fixed versions
- Not specified
- CVEs
- CVE-2021-21897
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 00:57 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2021-21897
dxflib
Fixed versions: Not specified
dxflib
Fixed versions: Not specified
dxflib
Fixed versions: Not specified
dxflib
Fixed versions: Not specified
dxflib
Fixed versions: Not specified
dxflib
Fixed versions: Not specified
dxflib
Fixed versions: Not specified
dxflib
Fixed versions: Not specified
Complete source record
{
"id": "1b57d8b47cff423fbd1273d614fdddb6fa6b7793d2a3a667c2f9aaec875a7c74",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-21897",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2021-21897",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2021-21897",
"products": [
{
"name": {
"value": "dxflib",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.5.0.0-3",
"evidence": "/affected/0/versions"
},
{
"value": "2.5.0.0-4",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "dxflib",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.17.0-2",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "dxflib",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.17.0-3",
"evidence": "/affected/2/versions"
},
{
"value": "3.17.0-3build1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "dxflib",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.17.0-3build1",
"evidence": "/affected/3/versions"
},
{
"value": "3.26.4-1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "dxflib",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.26.4-1",
"evidence": "/affected/4/versions"
},
{
"value": "3.26.4-1build1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "dxflib",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.26.4-2",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "dxflib",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.26.4-2build1",
"evidence": "/affected/6/versions"
},
{
"value": "3.26.4-3",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "dxflib",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.26.4-2",
"evidence": "/affected/7/versions"
},
{
"value": "3.26.4-2build1",
"evidence": "/affected/7/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2021-21897",
"aliases": [
"UBUNTU-CVE-2021-21897"
],
"metrics": [
{
"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"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "dxflib",
"purl": "pkg:deb/ubuntu/dxflib?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"2.5.0.0-3",
"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"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libdxflib-2.5.0.0v5",
"binary_version": "2.5.0.0-4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "dxflib",
"purl": "pkg:deb/ubuntu/dxflib?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"3.17.0-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21897.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libdxflib3",
"binary_version": "3.17.0-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "dxflib",
"purl": "pkg:deb/ubuntu/dxflib?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"3.17.0-3",
"3.17.0-3build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21897.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libdxflib3",
"binary_version": "3.17.0-3build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "dxflib",
"purl": "pkg:deb/ubuntu/dxflib?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"3.17.0-3build1",
"3.26.4-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21897.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libdxflib3",
"binary_version": "3.26.4-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "dxflib",
"purl": "pkg:deb/ubuntu/dxflib?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"3.26.4-1",
"3.26.4-1build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21897.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libdxflib3",
"binary_version": "3.26.4-1build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "dxflib",
"purl": "pkg:deb/ubuntu/dxflib?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"3.26.4-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21897.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libdxflib3",
"binary_version": "3.26.4-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "dxflib",
"purl": "pkg:deb/ubuntu/dxflib?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"3.26.4-2build1",
"3.26.4-3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21897.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libdxflib3",
"binary_version": "3.26.4-3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "dxflib",
"purl": "pkg:deb/ubuntu/dxflib?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"3.26.4-2",
"3.26.4-2build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21897.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libdxflib3",
"binary_version": "3.26.4-2build1"
}
]
}
}
],
"modified": "2026-10-17T12:56:18.956798127Z",
"provider": "osv",
"upstream": [
"CVE-2021-21897"
],
"references": [
"https://ubuntu.com/security/CVE-2021-21897",
"https://talosintelligence.com/vulnerability_reports/TALOS-2021-1346",
"https://www.cve.org/CVERecord?id=CVE-2021-21897"
]
},
"related_cves": [
{
"value": "CVE-2021-21897",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 355230,
"published_at": "2021-09-08T16:15:00+00:00"
}