Description
There is a vulnerability in htmldoc 1.9.16. In image_load_jpeg function image.cxx when it calls malloc,'img->width' and 'img->height' they are large enough to cause an integer overflow. So, the malloc function may return a heap blosmaller than the expected size, and it will cause a buffer overflow/Address boundary error in the jpeg_read_scanlines function.
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.15-2 | — |
| Debian 13 | htmldoc | 1.9.15-2 | — |
| Debian 12 | htmldoc | 1.9.15-2 | — |
| Debian 9 | htmldoc | 1.8.27-8+deb9u3 | DLA-3004-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | htmldoc | 1.9.17-1ubuntu0.1~esm1 | USN-7225-1 |
| Ubuntu Pro 22.04 LTS | htmldoc | 1.9.15-1ubuntu0.1~esm1 | USN-7225-1 |
| Ubuntu Pro 20.04 LTS | htmldoc | 1.9.7-1ubuntu0.3+esm2 | USN-7225-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | htmldoc | 1.9.2-1ubuntu0.2+esm2 | USN-7225-1 |
| Ubuntu Pro 16.04 LTS | htmldoc | 1.8.27-8ubuntu1.1+esm3 | USN-7225-1 |
| Ubuntu Pro 14.04 LTS | htmldoc | 1.8.27-8ubuntu1+esm4 | USN-7225-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | htmldoc | 1.9.15-3.1 | openSUSE-SU-2024:12071-1 |
Advisories 3
- USN-7225-1 HTMLDOC vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- DLA-3004-1 htmldoc - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:12071-1 htmldoc-1.9.15-3.1 on GA media SUSE / openSUSE Security Updates · May 7, 2025