CVE-2021-43579

HIGH

htmldoc <= 1.9.13 - Remote Code Execution via Crafted BMP File in image_load_bmp()

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2021-43579. PoCs published by wulfgarpro.

AI-analyzed exploit summary This exploit demonstrates a stack buffer overflow in HTMLDOC's BMP reader (`image_load_bmp`) by leveraging a negative `biClrUsed` value to overflow a fixed-size stack buffer. The payload overwrites the saved return address, leading to arbitrary code execution or a crash.

Description

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.

Exploits (1)

exploitdb WORKING POC
by wulfgarpro · pythonremotemultiple
https://www.exploit-db.com/exploits/52425

This exploit demonstrates a stack buffer overflow in HTMLDOC's BMP reader (`image_load_bmp`) by leveraging a negative `biClrUsed` value to overflow a fixed-size stack buffer. The payload overwrites the saved return address, leading to arbitrary code execution or a crash.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: HTMLDOC <= 1.9.13
No auth needed
Prerequisites: Ability to provide a malicious BMP file to the target system · Target system must process the BMP file using HTMLDOC
devstral-2 · analyzed Feb 18, 2026 Full analysis →

References (5)

Core 5
Core References
Exploit, Issue Tracking, Patch, Third Party Advisory x_refsource_misc
https://github.com/michaelrsweet/htmldoc/issues/453
Release Notes, Third Party Advisory x_refsource_misc
https://github.com/michaelrsweet/htmldoc/compare/v1.9.12...v1.9.13
Exploit, Issue Tracking, Patch, Third Party Advisory x_refsource_misc
https://github.com/michaelrsweet/htmldoc/issues/456
Mailing List, Third Party Advisory mailing-list x_refsource_mlist
https://lists.debian.org/debian-lts-announce/2022/02/msg00022.html

Scores

CVSS v3 7.8
EPSS 0.0735
EPSS Percentile 93.6%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Details

CWE
CWE-787
Status published
Products (2)
debian/debian_linux 9.0
htmldoc_project/htmldoc < 1.9.13
Published Jan 10, 2022
Tracked Since Feb 18, 2026