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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.96%, higher than 62% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-05-09T16:52:39.000Z
- Modified: 2026-06-17T04:36:22.620Z
- Weaknesses: CWE-190
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- htmldoc_project htmldoc: 1.9.16
- debian debian_linux: 9.0

## Every score

- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/michaelrsweet/htmldoc/issues/471> (exploit, issue-tracking, third-party-advisory)
- <https://github.com/michaelrsweet/htmldoc/commit/31f780487e5ddc426888638786cdc47631687275> (patch, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/05/msg00014.html> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2022-27114](https://www.cve.org/CVERecord?id=CVE-2022-27114), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2022-27114](https://nvd.nist.gov/vuln/detail/CVE-2022-27114), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-27114 · Whole record: https://cve.day/CVE-2022-27114.json · Rebuilt by cve.day 2026-11-25T22:58:11.516Z
