High
Security advisory
A stack-based buffer overflow in image_load_bmp() in HTMLDOC <= 1.9.13 results in remote code execution if the victim converts an HTML document linking to a crafted BMP file.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-43579
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 13:03 UTC · Revision 1
Source evidence
A stack-based buffer overflow in image_load_bmp() in HTMLDOC <= 1.9.13 results in remote code execution if the victim converts an HTML document linking to a crafted BMP file.
osv:CVE-2021-43579
Complete source record
{
"id": "bb2d1050f541c0f5fc300395f94154ce97100688997f31be5a0186488e5f142c",
"url": "https://osv.dev/vulnerability/CVE-2021-43579",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-43579",
"summary": "A stack-based buffer overflow in image_load_bmp() in HTMLDOC <= 1.9.13 results in remote code execution if the victim converts an HTML document linking to a crafted BMP file.",
"evidence": "osv:CVE-2021-43579",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-43579",
"aliases": [
"CVE-2021-43579"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/michaelrsweet/htmldoc",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "7ca2b30f9b3ae8f2ad429e222ebaa5be8764f409"
},
{
"fixed": "27d08989a5a567155d506ac870ae7d8cc88fa58b"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:htmldoc_project:htmldoc:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "1.9.13"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "27d08989a5a567155d506ac870ae7d8cc88fa58b"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v1.9.12",
"v1.9.11",
"v1.9.10",
"v1.9.9",
"v1.9.8",
"v1.9.7",
"v1.9.6",
"v1.9.5",
"v1.9.4",
"v1.9.3",
"v1.9.2",
"v1.9.1",
"v1.9",
"v1.8.30"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-43579.json",
"vanir_signatures": [
{
"id": "CVE-2021-43579-3dcf72e3",
"digest": {
"threshold": 0.9,
"line_hashes": [
"75444419729333380443052050884245593707",
"52953918717421753729251150082072149909",
"152886919627866368274563169380254036118",
"198152111810803722130400047947566870774",
"304108754680799189403228624423602673270",
"157781778164509291172586315901535516558",
"70669642789662802104105858184899219014",
"168806463103019594349885454995563723793"
]
},
"source": "https://github.com/michaelrsweet/htmldoc/commit/27d08989a5a567155d506ac870ae7d8cc88fa58b",
"target": {
"file": "htmldoc/image.cxx"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2021-43579-8b2b6b1d",
"digest": {
"length": 4321,
"function_hash": "79376633260742945387846236869644820982"
},
"source": "https://github.com/michaelrsweet/htmldoc/commit/27d08989a5a567155d506ac870ae7d8cc88fa58b",
"target": {
"file": "htmldoc/image.cxx",
"function": "image_load_bmp"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T14:34:27Z"
}
}
],
"modified": "2026-10-20T14:34:27.778981547Z",
"provider": "osv",
"references": [
"https://github.com/michaelrsweet/htmldoc/compare/v1.9.12...v1.9.13",
"https://lists.debian.org/debian-lts-announce/2022/02/msg00022.html",
"https://github.com/michaelrsweet/htmldoc/commit/27d08989a5a567155d506ac870ae7d8cc88fa58b",
"https://github.com/michaelrsweet/htmldoc/issues/453",
"https://github.com/michaelrsweet/htmldoc/issues/456"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"extracted_events": [
{
"range": [
{
"introduced": "9.0"
},
{
"last_affected": "9.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2021-43579",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 389721,
"published_at": "2022-01-10T14:10:24.167+00:00"
}