Every CVE Search/ Get API key

CVE-2024-46478

HTMLDOC v1.9.18 contains a buffer overflow in parse_pre function,ps-pdf.cxx:5681.

9.8 CriticalFix available

HTMLDOC v1.9.18 contains a buffer overflow in parse_pre function,ps-pdf.cxx:5681.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

0.67%Up 0.6 points since Oct 25, 2024
90%50%10%1%

What each source reports

CVE List Score used 9.8

HTMLDOC v1.9.18 contains a buffer overflow in parse_pre function,ps-pdf.cxx:5681.

Record
CVE-2024-46478
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-120
Updated
2026-11-02
EUVDEUVD-2024-41855 9.8

HTMLDOC v1.9.18 contains a buffer overflow in parse_pre function,ps-pdf.cxx:5681.

Record
EUVD-2024-41855
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-03
GitHub AdvisoriesGHSA-p9jh-f6vr-wxj3 9.8

HTMLDOC v1.9.18 contains a buffer overflow in parse_pre function,ps-pdf.cxx:5681.

HTMLDOC v1.9.18 contains a buffer overflow in parse_pre function,ps-pdf.cxx:5681.

Record
GHSA-p9jh-f6vr-wxj3
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-120
Updated
2026-11-02
NVD 9.8

HTMLDOC v1.9.18 contains a buffer overflow in parse_pre function,ps-pdf.cxx:5681.

Record
CVE-2024-46478
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-120
Updated
2026-11-02
OSV 9.8

HTMLDOC v1.9.18 contains a buffer overflow in parse_pre function,ps-pdf.cxx:5681.

Record
CVE-2024-46478
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2024-46478 9.8

HTMLDOC v1.9.18 contains a buffer overflow in parse_pre function,ps-pdf.cxx:5681.

Record
DEBIAN-CVE-2024-46478
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 6 moreShow less
OSVUBUNTU-CVE-2024-46478 9.8

HTMLDOC v1.9.18 contains a buffer overflow in parse_pre function,ps-pdf.cxx:5681.

Record
UBUNTU-CVE-2024-46478
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVMGASA-2024-0353 No score

Updated htmldoc packages fix security vulnerabilities

HTMLDOC before 1.9.19 has an out-of-bounds write in parse_paragraph in ps-pdf.cxx because of an attempt to strip leading whitespace from a whitespace-only node. (CVE-2024-45508) HTMLDOC v1.9.18 contains a buffer overflow in parse_pre function,ps-pdf.cxx:5681. (CVE-2024-46478)

Record
MGASA-2024-0353
Updated
2026-11-02
OSVopenSUSE-SU-2024:0349-1 No score

Security update for htmldoc

This update for htmldoc fixes the following issues:

  • CVE-2024-46478: Fixed a buffer overflow when handling tabs through the parse_pre function (boo#1232380).
Record
openSUSE-SU-2024:0349-1
Updated
2026-11-02
OSVopenSUSE-SU-2024:14460-1 No score

htmldoc-1.9.18-3.1 on GA media

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

Record
openSUSE-SU-2024:14460-1
Updated
2026-11-02
OSVopenSUSE-SU-2026:20219-1 No score

Security update for htmldoc

This update for htmldoc fixes the following issues:

Changes in htmldoc:

  • CVE-2024-46478: Fixed buffer overflow when handling tabs through the parse_pre function (bsc#1232380).

  • version update to 1.9.23:

    • Fixed a regression in list handling that caused a crash for empty list items (Issue #553)
    • Fixed a regression in the number of rendered table of contents levels in PDF and PostScript output (Issue #554)
  • version update to 1.9.22:

    • Added a "--without-http" configure option to build without CUPS HTTP/HTTPS support (Issue #547)
    • Updated HTTP/HTTPS support to work with both CUPS 2.x and 3.x.
    • Updated the maximum image dimension to prevent integer overflow on 32-bit platforms (Issue #550)
    • Updated the HTML parser to correctly report the line number of errors in files with more than 2^32-1 lines (Issue #551)
    • Fixed a crash bug with certain markdown files (Issue #548)
    • Fixed an unrestricted recursion bug when reading and formatting HTML (Issue #552)
  • version update to 1.9.21

    • Updated HTTP/HTTPS connection error reporting to include the reason.
    • Updated markdown parser.
    • Updated the HTTP/HTTPS connection timeout to 5 minutes (Issue #541)
    • Fixed a bug in the new PDF link code (Issue #536)
    • Fixed a bug in the number-up code (Issue #539)
    • Fixed a regression in leading whitespace handling (Issue #540)
    • Fixed a bug in numbered heading support (Issue #543)
    • Fixed a bug with setting the header on the first page (Issue #544)
    • Fixed paths in the HTMLDOC snap (Issue #545)
  • update to 1.9.20:

    • Fix a regression that caused spaces to disappear between some words
    • Fix resolution of relative links within a document
  • includes changes from 1.9.19:

    • Add support for ‘file’ method in links
    • Update markdown support code to mmd
    • Fix hyperlinks to subfolders
    • Fix export of UTF-8 HTML
    • Fix handling of whitespace-only nodes
    • Fix case sensitivity of link targets
Record
openSUSE-SU-2026:20219-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
All versions, plus listed versions
1.9.16-11.9.17-11.9.18-11.9.18-21.9.18-3
Show 7 moreShow less
1.9.19-11.9.20-11.9.21-11.9.22-11.9.23-11.9.24-11.9.25-1
None known
htmldoc
Debian:13
before 1.9.18-3
1.9.18-3
htmldoc
Debian:14
before 1.9.18-3
1.9.18-3
htmldoc
Mageia:9
From an advisory covering 2 CVEs
before 1.9.15-3.1.mga9
1.9.15-3.1.mga9
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:24.04:LTS
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
Show 10 moreShow less
Affected packages
PackageAffectedFixed
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
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
SUSE:Package Hub 15 SP5
before 1.9.16-bp155.2.6.1
1.9.16-bp155.2.6.1
htmldoc
openSUSE:Leap 15.5
before 1.9.16-bp155.2.6.1
1.9.16-bp155.2.6.1
htmldoc
openSUSE:Tumbleweed
before 1.9.18-3.1
1.9.18-3.1
htmldoc
openSUSE:Leap 16.0
From an advisory covering 2 CVEs
before 1.9.23-bp160.1.1
1.9.23-bp160.1.1

History

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

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

In short

CVE-2024-46478 is a critical vulnerability (CVSS 9.8) in Htmldoc Project Htmldoc, published October 24, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.67%, the 52nd percentile. Fixed in htmldoc 1.9.18-3.

References

Show 19 moreShow less
MoveEnter Open