CVE-2022-27114 json
There is a vulnerability in htmldoc 1.9.16.
published 2022-05-09 4 y ago modified 2026-06-17 4 mo ago also EUVD-2022-31653
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 61%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- htmldoc Debian 14, Debian 13, Debian 12 1.9.15-2
debian advisories DEBIAN-CVE-2022-27114
- htmldoc Ubuntu Pro 14.04 LTS 1.8.27-8ubuntu1+esm4
- htmldoc Ubuntu Pro 16.04 LTS 1.8.27-8ubuntu1.1+esm3
- htmldoc Ubuntu Pro 18.04 LTS 1.9.2-1ubuntu0.2+esm2
- htmldoc Ubuntu Pro 20.04 LTS 1.9.7-1ubuntu0.3+esm2
- htmldoc Ubuntu Pro 22.04 LTS 1.9.15-1ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2022-27114
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- htmldoc openSUSE Tumbleweed 1.9.15-3.1
opensuse advisories openSUSE-SU-2024:12071-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-27114 updated cvss 4.4
htmldoc: image_load_jpeg can cause integer overflow
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.96% chance of exploitation in the next 30 days, higher than 61% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/michaelrsweet/htmldoc/issues/471 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
Classification
- Weakness
-
- CWE-190 Integer Overflow or Wraparound
References
-
github.com
/michaelrsweet/htmldoc/commit/31f780487e5ddc426888638786cdc47631687275
patch, third-party-advisory
-
github.com
/michaelrsweet/htmldoc/issues/471
exploit, issue-tracking, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2022/05/msg00014.html
mailing-list, third-party-advisory
Sources
- CVE List CVE-2022-27114
- NVD CVE-2022-27114
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.