CVE-2022-0534
A vulnerability was found in htmldoc version 1.9.15 where the stack out-of-bounds read takes...
A vulnerability was found in htmldoc version 1.9.15 where the stack out-of-bounds read takes place in gif_get_code() and occurs when opening a malicious GIF file, which can result in a crash (segmentation fault).
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
5.5
A vulnerability was found in htmldoc version 1.9.15 where the stack out-of-bounds read takes place in gif_get_code() and occurs when opening a malicious GIF file, which can result in a crash (segmentation fault).
- Record
CVE-2022-0534- 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 - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:N/A:P - Weakness
- CWE-125
- Updated
- 2026-11-02
CVE List No score
A vulnerability was found in htmldoc version 1.9.15 where the stack out-of-bounds read takes place in gif_get_code() and occurs when opening a malicious GIF file, which can result in a crash (segmentation fault).
- Record
CVE-2022-0534- Weakness
- CWE-125
- Updated
- 2026-11-02
EUVDEUVD-2022-15659 No score
A vulnerability was found in htmldoc version 1.9.15 where the stack out-of-bounds read takes place in gif_get_code() and occurs when opening a malicious GIF file, which can result in a crash (segmentation fault).
- Record
EUVD-2022-15659- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-f9qm-5g8q-g45w
5.5
A vulnerability was found in htmldoc version 1.9.15 where the stack out-of-bounds read takes...
A vulnerability was found in htmldoc version 1.9.15 where the stack out-of-bounds read takes place in gif_get_code() and occurs when opening a malicious GIF file, which can result in a crash (segmentation fault).
- Record
GHSA-f9qm-5g8q-g45w- 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 - Weakness
- CWE-125
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2022-0534
5.5
A vulnerability was found in htmldoc version 1.9.15 where the stack out-of-bounds read takes place in gif_get_code() and occurs when opening a malicious GIF file, which can result in a crash (segmentation fault).
- Record
DEBIAN-CVE-2022-0534- 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 - Updated
- 2026-11-03
OSVUBUNTU-CVE-2022-0534
5.5
A vulnerability was found in htmldoc version 1.9.15 where the stack out-of-bounds read takes place in gif_get_code() and occurs when opening a malicious GIF file, which can result in a crash (segmentation fault).
- Record
UBUNTU-CVE-2022-0534- 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 - Updated
- 2026-11-02
Show 4 moreShow less
OSV No score
A vulnerability was found in htmldoc version 1.9.15 where the stack out-of-bounds read takes place in gif_get_code() and occurs when opening a malicious GIF file, which can result in a crash (segmentation fault).
- Record
CVE-2022-0534- Weakness
- CWE-125
- Updated
- 2026-11-02
OSVMGASA-2022-0082 No score
Updated htmldoc packages fix security vulnerability
A vulnerability was found in htmldoc version 1.9.15 where the stack out-of-bounds read takes place in gif_get_code() and occurs when opening a malicious GIF file, which can result in a crash (segmentation fault). (CVE-2022-0534)
- Record
MGASA-2022-0082- Updated
- 2026-11-02
OSVSUSE-SU-2022:14898-1 No score
Security update for htmldoc
This update for htmldoc fixes the following issues:
- CVE-2019-19630: Fixed stack-based buffer overflow in the hd_strlcpy() function in string.c via a crafted HTML document (bsc#1158802).
- CVE-2021-20308: Fixed integer overflow in image_load_gif() (bsc#1184424).
- CVE-2022-0534: Fixed stack out-of-bounds read in gif_get_code() when opening a malicious GIF file results in a segmentation fault (bsc#1195758).
- Record
SUSE-SU-2022:14898-1- Updated
- 2026-11-02
OSVUSN-7225-1 No score
HTMLDOC vulnerabilities
It was discovered that HTMLDOC incorrectly handled memory in the image_set_mask, git_read_lzw, write_header and write_node functions, which could lead to a heap buffer overflow. An attacker could possibly use this issue to cause a denial of service or execute arbitrary code. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. (CVE-2022-0137, CVE-2022-24191, CVE-2022-34033, CVE-2022-34035)
It was discovered that HTMLDOC incorrectly handled memory in the gif_get_code function, which could lead to a segmentation fault. If a user or application were tricked into opening a crafted GIF file, an attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. (CVE-2022-0534)
It was discovered that HTMLDOC did not perform proper bounds checks on image dimensions when loading JPEG images, which could lead to a buffer overflow. If a user or application were tricked into opening a crafted JPEG image, an attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2022-27114)
It was discovered that HTMLDOC incorrectly handled memory in the pdf_write_names function, which could lead to a heap buffer overflow. If a user or application were tricked into opening a specially crafted file, an attacker could possibly use this issue to cause a denial of service or leak sensitive information. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2022-28085)
It was discovered that HTMLDOC could be made to write out of bounds when attempting to strip whitespace. An attacker could use this issue to cause a denial of service or execute arbitrary code. (CVE-2024-45508)
It was discovered that HTMLDOC incorrectly handled memory in the parse_pre function, which could lead to a heap buffer overflow. If a user or application were tricked into opening a specially crafted file, an attacker could possibly use this issue to cause a denial of service or execute arbitrary code. (CVE-2024-46478)
- Record
USN-7225-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
htmldocDebian:12 |
before 1.9.15-1 | 1.9.15-1 |
htmldocDebian:13 |
before 1.9.15-1 | 1.9.15-1 |
htmldocDebian:14 |
before 1.9.15-1 | 1.9.15-1 |
htmldocDebian:9 From an advisory covering 3 CVEs |
before 1.8.27-8+deb9u2, plus listed versions 1.8.27-81.8.27-8+deb9u1 |
1.8.27-8+deb9u2 |
htmldocMageia:8 |
before 1.9.15-1.mga8 | 1.9.15-1.mga8 |
htmldocSUSE:Subscription Management Tool 11 SP3 From an advisory covering 3 CVEs |
before 1.8.27-170.4.9.1 | 1.8.27-170.4.9.1 |
htmldocUbuntu:Pro:14.04:LTS |
before 1.8.27-8ubuntu1+esm4, plus listed versions 1.8.27-8ubuntu11.8.27-8ubuntu1+esm11.8.27-8ubuntu1+esm21.8.27-8ubuntu1+esm3 |
1.8.27-8ubuntu1+esm4 |
htmldocUbuntu:Pro:16.04:LTS |
before 1.8.27-8ubuntu1.1+esm3, plus listed versions 1.8.27-8ubuntu11.8.27-8ubuntu1.11.8.27-8ubuntu1.1+esm11.8.27-8ubuntu1.1+esm2 |
1.8.27-8ubuntu1.1+esm3 |
htmldocUbuntu:Pro:18.04:LTS |
before 1.9.2-1ubuntu0.2+esm2, plus listed versions 1.8.27-8ubuntu21.8.27-8ubuntu31.9.2-11.9.2-1ubuntu0.11.9.2-1ubuntu0.21.9.2-1ubuntu0.2+esm1 |
1.9.2-1ubuntu0.2+esm2 |
htmldocUbuntu:Pro:20.04:LTS |
before 1.9.7-1ubuntu0.3+esm2, plus listed versions 1.9.3-11.9.7-11.9.7-1build11.9.7-1ubuntu0.21.9.7-1ubuntu0.31.9.7-1ubuntu0.3+esm1 |
1.9.7-1ubuntu0.3+esm2 |
Show 6 moreShow less
| Package | Affected | Fixed |
|---|---|---|
htmldocUbuntu:Pro:14.04:LTS From an advisory covering 9 CVEs |
before 1.8.27-8ubuntu1+esm4, plus listed versions 1.8.27-8ubuntu11.8.27-8ubuntu1+esm11.8.27-8ubuntu1+esm21.8.27-8ubuntu1+esm3 |
1.8.27-8ubuntu1+esm4 |
htmldocUbuntu:Pro:16.04:LTS From an advisory covering 9 CVEs |
before 1.8.27-8ubuntu1.1+esm3, plus listed versions 1.8.27-8ubuntu11.8.27-8ubuntu1.11.8.27-8ubuntu1.1+esm11.8.27-8ubuntu1.1+esm2 |
1.8.27-8ubuntu1.1+esm3 |
htmldocUbuntu:Pro:18.04:LTS From an advisory covering 9 CVEs |
before 1.9.2-1ubuntu0.2+esm2, plus listed versions 1.8.27-8ubuntu21.8.27-8ubuntu31.9.2-11.9.2-1ubuntu0.11.9.2-1ubuntu0.21.9.2-1ubuntu0.2+esm1 |
1.9.2-1ubuntu0.2+esm2 |
htmldocUbuntu:Pro:20.04:LTS From an advisory covering 9 CVEs |
before 1.9.7-1ubuntu0.3+esm2, plus listed versions 1.9.3-11.9.7-11.9.7-1build11.9.7-1ubuntu0.21.9.7-1ubuntu0.31.9.7-1ubuntu0.3+esm1 |
1.9.7-1ubuntu0.3+esm2 |
htmldocUbuntu:Pro:22.04:LTS From an advisory covering 9 CVEs |
before 1.9.15-1ubuntu0.1~esm1, plus listed versions 1.9.11-41.9.12-11.9.13-11.9.14-11.9.15-1 |
1.9.15-1ubuntu0.1~esm1 |
htmldocUbuntu:Pro:24.04:LTS From an advisory covering 9 CVEs |
before 1.9.17-1ubuntu0.1~esm1, plus listed versions 1.9.16-11.9.17-11.9.17-1build21.9.17-1build3 |
1.9.17-1ubuntu0.1~esm1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | OSV | |
| aliases, products | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-0534 is a medium vulnerability (CVSS 5.5) in Htmldoc Project Htmldoc, published February 9, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.94%, the 61st percentile. Fixed in htmldoc 1.9.15-1.
References
github.com/michaelrsweet/htmldoc/issues/463
github.com/michaelrsweet/htmldoc/commit/312f0f9c12f26fbe015cd0e6cefa40e4b99017d9
lists.debian.org/debian-lts-announce/2022/02/msg00022.html
nvd.nist.gov/vuln/detail/CVE-2022-0534
github.com/advisories/GHSA-f9qm-5g8q-g45w
github.com/CVEProject/cvelistV5/tree/main/cves/2022/0xxx/CVE-2022-0534.json
Show 22 moreShow less
security-tracker.debian.org/tracker/CVE-2022-0534
advisories.mageia.org/MGASA-2022-0082.html
bugs.mageia.org/show_bug.cgi?id=30077
lists.opensuse.org/archives/list/[email protected]/thread/3NVMNRQWPBYKG2XDRDYA4JPEMALW53MA
suse.com/support/update/announcement/2022/suse-su-202214898-1
bugzilla.suse.com/1158802
bugzilla.suse.com/1184424
bugzilla.suse.com/1195758
suse.com/security/cve/CVE-2019-19630
suse.com/security/cve/CVE-2021-20308
suse.com/security/cve/CVE-2022-0534
ubuntu.com/security/CVE-2022-0534
cve.org/CVERecord?id=CVE-2022-0534
ubuntu.com/security/notices/USN-7225-1
ubuntu.com/security/CVE-2022-0137
ubuntu.com/security/CVE-2022-24191
ubuntu.com/security/CVE-2022-27114
ubuntu.com/security/CVE-2022-28085
ubuntu.com/security/CVE-2022-34033
ubuntu.com/security/CVE-2022-34035
ubuntu.com/security/CVE-2024-45508
ubuntu.com/security/CVE-2024-46478