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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | htmldoc | 1.9.13-1 | — |
| Debian 13 | htmldoc | 1.9.13-1 | — |
| Debian 12 | htmldoc | 1.9.13-1 | — |
| Debian 9 | htmldoc | 1.8.27-8+deb9u2 | DLA-2928-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | htmldoc | 1.9.7-1ubuntu0.3+esm1 | USN-7189-1 |
| Ubuntu Pro 18.04 LTS | htmldoc | 1.9.2-1ubuntu0.2+esm1 | USN-7189-1 |
| Ubuntu Pro 16.04 LTS | htmldoc | 1.8.27-8ubuntu1.1+esm2 | USN-7189-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 14.04 LTS | htmldoc | 1.8.27-8ubuntu1+esm3 | USN-7189-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Subscription Management Tool 11 SP3 | htmldoc | 1.8.27-170.4.6.1 | SUSE-SU-2022:14877-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | htmldoc | 1.9.14-1.1 | openSUSE-SU-2024:11741-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- HTMLDOC 1.9.13 - Stack Buffer Overflow EDB-52425 · remote · Sep 16, 2025
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 4
- USN-7189-1 HTMLDOC vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- DLA-2928-1 htmldoc - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:11741-1 htmldoc-1.9.14-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:14877-1 Security update for htmldoc SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://github.com/michaelrsweet/htmldoc/issues/453
- https://github.com/michaelrsweet/htmldoc/commit/27d08989a5a567155d506ac870ae7d8cc88fa58b
- https://github.com/michaelrsweet/htmldoc/compare/v1.9.12...v1.9.13
- https://github.com/michaelrsweet/htmldoc/issues/456
- [debian-lts-announce] 20220226 [SECURITY] [DLA 2928-1] htmldoc security update mailing-list