# CVE-2022-27114: htmldoc: There is a vulnerability in htmldoc 1.9.16

CVE-2022-27114 is fixed in 2 products on 1 platform, first by DEBIAN-CVE-2022-27114, released May 9, 2022. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2022-27114
- Priority: Routine
- CVSS: 5.5 (medium)
- EPSS: 0.0096
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: May 9, 2022

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | htmldoc Debian 12.15 (bookworm) | 1.9.15-2 | [DEBIAN-CVE-2022-27114](https://patchblox.com/security/data/fix/linux/debian-cve-2022-27114.md) | May 9, 2022 |
| Linux | htmldoc Debian 13.5 (trixie) | 1.9.15-2 | [DEBIAN-CVE-2022-27114](https://patchblox.com/security/data/fix/linux/debian-cve-2022-27114.md) | May 9, 2022 |
| Linux | htmldoc Debian 14 | 1.9.15-2 | [DEBIAN-CVE-2022-27114](https://patchblox.com/security/data/fix/linux/debian-cve-2022-27114.md) | May 9, 2022 |
| Linux | htmldoc Ubuntu 18.04.6 LTS (bionic) | 1.9.2-1ubuntu0.2+esm2 | [htmldoc 1.9.2-1ubuntu0.2+esm2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-htmldoc-1.9.2-1ubuntu0.2-esm2.md) | Oct 24, 2024 |
| Linux | htmldoc Ubuntu 20.04 LTS (focal) | 1.9.7-1ubuntu0.3+esm2 | [htmldoc 1.9.7-1ubuntu0.3+esm2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-htmldoc-1.9.7-1ubuntu0.3-esm2.md) | Oct 24, 2024 |
| Linux | htmldoc Ubuntu 22.04.1 LTS (jammy) | 1.9.15-1ubuntu0.1~esm1 | [htmldoc 1.9.15-1ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-htmldoc-1.9.15-1ubuntu0.1-esm1.md) | Oct 24, 2024 |
| Linux | htmldoc-common Ubuntu 18.04.6 LTS (bionic) | 1.9.2-1ubuntu0.2+esm2 | [htmldoc-common 1.9.2-1ubuntu0.2+esm2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-htmldoc-common-1.9.2-1ubuntu0.2-esm2.md) | Oct 24, 2024 |
| Linux | htmldoc-common Ubuntu 20.04 LTS (focal) | 1.9.7-1ubuntu0.3+esm2 | [htmldoc-common 1.9.7-1ubuntu0.3+esm2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-htmldoc-common-1.9.7-1ubuntu0.3-esm2.md) | Oct 24, 2024 |
| Linux | htmldoc-common Ubuntu 22.04.1 LTS (jammy) | 1.9.15-1ubuntu0.1~esm1 | [htmldoc-common 1.9.15-1ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-htmldoc-common-1.9.15-1ubuntu0.1-esm1.md) | Oct 24, 2024 |

---

Data as of 2026-11-09T01:18:40Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
