Every CVE Search/ Get API key

CVE-2022-28085

A flaw was found in htmldoc commit 31f7804. A heap buffer overflow in the function...

7.8 HighFix available

A flaw was found in htmldoc commit 31f7804. A heap buffer overflow in the function pdf_write_names in ps-pdf.cxx may lead to arbitrary code execution and Denial of Service (DoS).

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
High
Integrity
High
Availability
High

Exploit likelihood

1.19%Down 1.3 points since Apr 27, 2022
90%50%10%1%

What each source reports

NVD Score used 7.8

A flaw was found in htmldoc commit 31f7804. A heap buffer overflow in the function pdf_write_names in ps-pdf.cxx may lead to arbitrary code execution and Denial of Service (DoS).

Record
CVE-2022-28085
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.0
6.8 MediumAV:N/AC:M/Au:N/C:P/I:P/A:P
Weakness
CWE-787
Updated
2026-11-02
CVE List No score

A flaw was found in htmldoc commit 31f7804. A heap buffer overflow in the function pdf_write_names in ps-pdf.cxx may lead to arbitrary code execution and Denial of Service (DoS).

Record
CVE-2022-28085
Updated
2026-11-02
EUVDEUVD-2022-32570 No score

A flaw was found in htmldoc commit 31f7804. A heap buffer overflow in the function pdf_write_names in ps-pdf.cxx may lead to arbitrary code execution and Denial of Service (DoS).

Record
EUVD-2022-32570
Updated
2026-11-03
GitHub AdvisoriesGHSA-xhgj-p5p6-x24h 7.8

A flaw was found in htmldoc commit 31f7804. A heap buffer overflow in the function...

A flaw was found in htmldoc commit 31f7804. A heap buffer overflow in the function pdf_write_names in ps-pdf.cxx may lead to arbitrary code execution and Denial of Service (DoS).

Record
GHSA-xhgj-p5p6-x24h
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-787
Updated
2026-11-02
OSVDEBIAN-CVE-2022-28085 7.8

A flaw was found in htmldoc commit 31f7804. A heap buffer overflow in the function pdf_write_names in ps-pdf.cxx may lead to arbitrary code execution and Denial of Service (DoS).

Record
DEBIAN-CVE-2022-28085
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-03
OSVUBUNTU-CVE-2022-28085 7.8

A flaw was found in htmldoc commit 31f7804. A heap buffer overflow in the function pdf_write_names in ps-pdf.cxx may lead to arbitrary code execution and Denial of Service (DoS).

Record
UBUNTU-CVE-2022-28085
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSV No score

A flaw was found in htmldoc commit 31f7804. A heap buffer overflow in the function pdf_write_names in ps-pdf.cxx may lead to arbitrary code execution and Denial of Service (DoS).

Record
CVE-2022-28085
Updated
2026-11-02
OSVopenSUSE-SU-2024:12035-1 No score

htmldoc-1.9.15-2.1 on GA media

These are all security issues fixed in the htmldoc-1.9.15-2.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:12035-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

Affected packages
PackageAffectedFixed
htmldoc
Debian:12
before 1.9.15-2
1.9.15-2
htmldoc
Debian:13
before 1.9.15-2
1.9.15-2
htmldoc
Debian:14
before 1.9.15-2
1.9.15-2
htmldoc
Ubuntu: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
htmldoc
Ubuntu: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
htmldoc
Ubuntu: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
htmldoc
Ubuntu: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
htmldoc
Ubuntu:Pro:22.04:LTS
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
htmldoc
Ubuntu: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
htmldoc
Ubuntu: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
Show 5 moreShow less
Affected packages
PackageAffectedFixed
htmldoc
Ubuntu: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
htmldoc
Ubuntu: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
htmldoc
Ubuntu: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
htmldoc
Ubuntu: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
htmldoc
openSUSE:Tumbleweed
before 1.9.15-2.1
1.9.15-2.1

History

History
RecordedChangedSources
affected, factsOSV
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2022-28085 is a high vulnerability (CVSS 7.8) in Htmldoc Project Htmldoc, published April 27, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.19%, the 68th percentile. Fixed in htmldoc 1.9.15-2.

References

Show 12 moreShow less
MoveEnter Open