CVE-2024-45508
HTMLDOC before 1.9.19 has an out-of-bounds write in parse_paragraph in ps-pdf.cxx because of an...
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.
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
What each source reports
NVD Score used
9.8
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.
- Record
CVE-2024-45508- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-787
- Updated
- 2026-11-02
CVE List
9.8
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.
- Record
CVE-2024-45508- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-787
- Updated
- 2026-11-02
EUVDEUVD-2024-41517
9.8
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.
- Record
EUVD-2024-41517- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-jmwj-mmwj-qm9h
9.8
HTMLDOC before 1.9.19 has an out-of-bounds write in parse_paragraph in ps-pdf.cxx because of an...
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.
- Record
GHSA-jmwj-mmwj-qm9h- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-787
- Updated
- 2026-11-02
OSV
9.8
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.
- Record
CVE-2024-45508- CVSS 3.1
- 9.8 Critical
CVSS: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-45508
9.8
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.
- Record
DEBIAN-CVE-2024-45508- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 7 moreShow less
OSVUBUNTU-CVE-2024-45508
9.8
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.
- Record
UBUNTU-CVE-2024-45508- CVSS 3.1
- 9.8 Critical
CVSS: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:0303-1 No score
Security update for htmldoc
This update for htmldoc fixes the following issues:
- CVE-2024-45508: Fixed 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 [boo#1230022].
- Record
openSUSE-SU-2024:0303-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:0304-1 No score
Security update for htmldoc
This update for htmldoc fixes the following issues:
- CVE-2024-45508: Fixed 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 [boo#1230022].
- Record
openSUSE-SU-2024:0304-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:14308-1 No score
htmldoc-1.9.18-2.1 on GA media
These are all security issues fixed in the htmldoc-1.9.18-2.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:14308-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
| Package | Affected | Fixed |
|---|---|---|
htmldocDebian: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 less1.9.19-11.9.20-11.9.21-11.9.22-11.9.23-11.9.24-11.9.25-1 |
None known |
htmldocDebian:13 |
before 1.9.18-2 | 1.9.18-2 |
htmldocDebian:14 |
before 1.9.18-2 | 1.9.18-2 |
htmldocMageia:9 From an advisory covering 2 CVEs |
before 1.9.15-3.1.mga9 | 1.9.15-3.1.mga9 |
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 |
htmldocUbuntu: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 |
htmldocUbuntu: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 12 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 |
htmldocSUSE:Package Hub 15 SP6 |
before 1.9.16-bp156.3.3.1 | 1.9.16-bp156.3.3.1 |
htmldocopenSUSE:Leap 15.6 |
before 1.9.16-bp156.3.3.1 | 1.9.16-bp156.3.3.1 |
htmldocSUSE:Package Hub 15 SP5 |
before 1.9.16-bp155.2.3.1 | 1.9.16-bp155.2.3.1 |
htmldocopenSUSE:Leap 15.5 |
before 1.9.16-bp155.2.3.1 | 1.9.16-bp155.2.3.1 |
htmldocopenSUSE:Tumbleweed |
before 1.9.18-2.1 | 1.9.18-2.1 |
htmldocopenSUSE:Leap 16.0 From an advisory covering 2 CVEs |
before 1.9.23-bp160.1.1 | 1.9.23-bp160.1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-45508 is a critical vulnerability (CVSS 9.8) in Htmldoc, published September 1, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.70%, the 53rd percentile. Fixed in htmldoc 1.9.18-2.
References
github.com/michaelrsweet/htmldoc/issues/528
github.com/michaelrsweet/htmldoc/commit/2d5b2ab9ddbf2aee2209010cebc11efdd1cab6e2
github.com/michaelrsweet/htmldoc/blob/2d5b2ab9ddbf2aee2209010cebc11efdd1cab6e2/CHANGES.md
nvd.nist.gov/vuln/detail/CVE-2024-45508
github.com/advisories/GHSA-jmwj-mmwj-qm9h
github.com/CVEProject/cvelistV5/tree/main/cves/2024/45xxx/CVE-2024-45508.json
Show 21 moreShow less
security-tracker.debian.org/tracker/CVE-2024-45508
advisories.mageia.org/MGASA-2024-0353.html
bugs.mageia.org/show_bug.cgi?id=33737
lists.opensuse.org/archives/list/[email protected]/message/RNU4P4P7ZCF5TYOAPMGGBX2KSE6IHZFT
ubuntu.com/security/CVE-2024-45508
cve.org/CVERecord?id=CVE-2024-45508
ubuntu.com/security/notices/USN-7225-1
ubuntu.com/security/CVE-2022-0137
ubuntu.com/security/CVE-2022-0534
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-46478
lists.opensuse.org/archives/list/[email protected]/thread/ZGODTNNF6WAHIUNECA2R4KRIX7DLALG7
bugzilla.suse.com/1230022
suse.com/security/cve/CVE-2024-45508
lists.opensuse.org/archives/list/[email protected]/thread/PS3VK5JTDY5FTLYYYSQWM5OBYO27JOKV
bugzilla.suse.com/1232380
suse.com/security/cve/CVE-2024-46478