Integer overflow in Htmldoc Project
CVE-2022-27114
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.
Vulnerability class: Integer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.010, 62.2th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Htmldoc Project — versions 1.9.16
- Debian Linux — versions 9.0
Weakness classification (CWE)
References
- github.com/michaelrsweet/htmldoc/commit/31f780487e5ddc426888638786cdc47631687275 (Patch, Third Party Advisory)
- github.com/michaelrsweet/htmldoc/issues/471 (Exploit, Third Party Advisory, Issue Tracking)
- [debian-lts-announce] 20220513 [SECURITY] [DLA 3004-1] htmldoc security update (mailing-list, Mailing List, Third Party Advisory)