Description
HTMLDOC 1.9.7 allows a stack-based buffer overflow in the hd_strlcpy() function in string.c (when called from render_contents in ps-pdf.cxx) via a crafted HTML document.
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.7-1 | — |
| Debian 13 | htmldoc | 1.9.7-1 | — |
| Debian 12 | htmldoc | 1.9.7-1 | — |
| Debian 9 | htmldoc | 1.8.27-8+deb9u1 | DLA-2700-1 |
| Debian 8 | htmldoc | 1.8.27-8+deb8u1 | DLA-2026-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | htmldoc | 1.9.2-1ubuntu0.1 | USN-4696-1 |
| Ubuntu 16.04 LTS | htmldoc | 1.8.27-8ubuntu1.1 | USN-4696-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+esm1 | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Subscription Management Tool 11 SP3 | htmldoc | 1.8.27-170.4.9.1 | SUSE-SU-2022:14898-1 |
Advisories 4
- DLA-2026-1 htmldoc - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2700-1 htmldoc - security update Debian Security (DSA / DLA) · Mar 9, 2026
- USN-4696-1 htmldoc vulnerability Ubuntu Security Notices (USN) · Feb 10, 2026
- SUSE-SU-2022:14898-1 Security update for htmldoc SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://github.com/michaelrsweet/htmldoc/issues/370
- [debian-lts-announce] 20191209 [SECURITY] [DLA 2026-1] htmldoc security update mailing-list
- FEDORA-2019-e039dfaa30 vendor-advisory
- FEDORA-2019-e90a7032f2 vendor-advisory
- [debian-lts-announce] 20210701 [SECURITY] [DLA 2700-1] htmldoc security update mailing-list