CVE-2021-43579

Source
https://cve.org/CVERecord?id=CVE-2021-43579
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-43579.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-43579
Downstream
Related
Published
2022-01-10T14:10:24Z
Modified
2026-10-20T14:34:27Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

Database specific
{
    "unresolved_ranges":  [
        {
            "cpes":  [
                "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "range":  [
                        {
                            "introduced":  "9.0"
                        },
                        {
                            "last_affected":  "9.0"
                        }
                    ],
                    "source":  "CPE_STRING"
                }
            ],
            "vendor_product":  "debian:debian_linux"
        }
    ]
}
References

Affected packages

Git / github.com/michaelrsweet/htmldoc

Affected ranges

Type
GIT
Repo
https://github.com/michaelrsweet/htmldoc
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last Affected
Fixed
Database specific
Show details
{
    "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"
        }
    ]
}

Affected versions

v1.*
v1.8.30
v1.9
v1.9.1
v1.9.10
v1.9.11
v1.9.12
v1.9.2
v1.9.3
v1.9.4
v1.9.5
v1.9.6
v1.9.7
v1.9.8
v1.9.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-43579.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "75444419729333380443052050884245593707",
                "52953918717421753729251150082072149909",
                "152886919627866368274563169380254036118",
                "198152111810803722130400047947566870774",
                "304108754680799189403228624423602673270",
                "157781778164509291172586315901535516558",
                "70669642789662802104105858184899219014",
                "168806463103019594349885454995563723793"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2021-43579-3dcf72e3",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/michaelrsweet/htmldoc/commit/27d08989a5a567155d506ac870ae7d8cc88fa58b",
        "target":  {
            "file":  "htmldoc/image.cxx"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "79376633260742945387846236869644820982",
            "length":  4321
        },
        "id":  "CVE-2021-43579-8b2b6b1d",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/michaelrsweet/htmldoc/commit/27d08989a5a567155d506ac870ae7d8cc88fa58b",
        "target":  {
            "file":  "htmldoc/image.cxx",
            "function":  "image_load_bmp"
        }
    }
]
vanir_signatures_modified
"2026-10-20T14:34:27Z"