{"id":"CVE-2021-20308","aliases":["DEBIAN-CVE-2021-20308","DLA-2700-1","EUVD-2021-7733","GHSA-pmv7-7c58-mhrx","MGASA-2021-0332","SUSE-SU-2022:14898-1","UBUNTU-CVE-2021-20308","USN-7189-1","openSUSE-SU-2021:0882-1","openSUSE-SU-2021:0893-1","openSUSE-SU-2021:0895-1","openSUSE-SU-2021:1266-1","openSUSE-SU-2024:10848-1"],"status":"published","title":"Integer overflow in the htmldoc 1.9.11 and before may allow attackers to execute arbitrary code...","description":"Integer overflow in the htmldoc 1.9.11 and before may allow attackers to execute arbitrary code and cause a denial of service that is similar to CVE-2017-9181.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.02477,"percentile":0.84769,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-190"],"published":"2021-04-05T21:32:58Z","modified":"2026-10-23T18:03:10Z","fixes":[{"ecosystem":"Debian:12","package":"htmldoc","fixed_in":["1.9.11-3"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"htmldoc","fixed_in":["1.9.11-3"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"htmldoc","fixed_in":["1.9.11-3"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:14.04:LTS","package":"htmldoc","fixed_in":["1.8.27-8ubuntu1+esm3"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"htmldoc","fixed_in":["1.8.27-8ubuntu1.1+esm2"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:18.04:LTS","package":"htmldoc","fixed_in":["1.9.2-1ubuntu0.2+esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"htmldoc","fixed_in":["1.9.7-1ubuntu0.3+esm1"],"sources":["osv"]},{"ecosystem":"openSUSE:Leap 15.2","package":"htmldoc","fixed_in":["1.9.12-lp152.4.3.1"],"sources":["osv"]},{"ecosystem":"SUSE:Package Hub 15 SP2","package":"htmldoc","fixed_in":["1.9.12-bp152.4.3.1"],"sources":["osv"]},{"ecosystem":"SUSE:Package Hub 15 SP1","package":"htmldoc","fixed_in":["1.9.12-bp151.4.3.1"],"sources":["osv"]},{"ecosystem":"SUSE:Package Hub 12 SP1","package":"htmldoc","fixed_in":["1.8.28-6.1"],"sources":["osv"]},{"ecosystem":"openSUSE:Tumbleweed","package":"htmldoc","fixed_in":["1.9.12-1.2"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.11-3"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.11-3"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.11-3"}]}]},{"source":"osv","ecosystem":"Debian:9","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.27-8+deb9u1"}]}],"versions":["1.8.27-8"],"bundled":10},{"source":"osv","ecosystem":"Mageia:7","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.3-2.3.mga7"}]}],"bundled":9},{"source":"osv","ecosystem":"Mageia:8","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.8-1.2.mga8"}]}],"bundled":9},{"source":"osv","ecosystem":"SUSE:Subscription Management Tool 11 SP3","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.27-170.4.9.1"}]}],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.27-8ubuntu1+esm3"}]}],"versions":["1.8.27-8ubuntu1","1.8.27-8ubuntu1+esm1","1.8.27-8ubuntu1+esm2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.27-8ubuntu1.1+esm2"}]}],"versions":["1.8.27-8ubuntu1","1.8.27-8ubuntu1.1","1.8.27-8ubuntu1.1+esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.2-1ubuntu0.2+esm1"}]}],"versions":["1.8.27-8ubuntu2","1.8.27-8ubuntu3","1.9.2-1","1.9.2-1ubuntu0.1","1.9.2-1ubuntu0.2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.7-1ubuntu0.3+esm1"}]}],"versions":["1.9.3-1","1.9.7-1","1.9.7-1build1","1.9.7-1ubuntu0.2","1.9.7-1ubuntu0.3"]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.27-8ubuntu1+esm3"}]}],"versions":["1.8.27-8ubuntu1","1.8.27-8ubuntu1+esm1","1.8.27-8ubuntu1+esm2"],"bundled":11},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.27-8ubuntu1.1+esm2"}]}],"versions":["1.8.27-8ubuntu1","1.8.27-8ubuntu1.1","1.8.27-8ubuntu1.1+esm1"],"bundled":11},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.2-1ubuntu0.2+esm1"}]}],"versions":["1.8.27-8ubuntu2","1.8.27-8ubuntu3","1.9.2-1","1.9.2-1ubuntu0.1","1.9.2-1ubuntu0.2"],"bundled":11},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.7-1ubuntu0.3+esm1"}]}],"versions":["1.9.3-1","1.9.7-1","1.9.7-1build1","1.9.7-1ubuntu0.2","1.9.7-1ubuntu0.3"],"bundled":11},{"source":"osv","ecosystem":"openSUSE:Leap 15.2","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.12-lp152.4.3.1"}]}]},{"source":"osv","ecosystem":"SUSE:Package Hub 15 SP2","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.12-bp152.4.3.1"}]}]},{"source":"osv","ecosystem":"SUSE:Package Hub 15 SP1","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.12-bp151.4.3.1"}]}]},{"source":"osv","ecosystem":"SUSE:Package Hub 12 SP1","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.28-6.1"}]}]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.12-1.2"}]}]}],"products":[{"vendor":"debian","product":"debian_linux"},{"vendor":"htmldoc_project","product":"htmldoc"},{"vendor":"michaelrsweet","product":"htmldoc"}],"references":[{"url":"https://github.com/michaelrsweet/htmldoc/issues/423","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Third Party Advisory","report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1946289","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Third Party Advisory","report"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/07/msg00000.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20308"},{"url":"https://github.com/advisories/GHSA-pmv7-7c58-mhrx"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-20308","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2021-0332.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=29161","tags":["report"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=29101","tags":["report"]},{"url":"https://www.debian.org/security/2021/dsa-4928","tags":["web"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/RXMQHLXPNKTCGM4HNTMLHF7NWL3ZXKIO/","tags":["web","advisory"]},{"url":"https://www.suse.com/support/update/announcement/2022/suse-su-202214898-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1158802","tags":["report"]},{"url":"https://bugzilla.suse.com/1184424","tags":["report"]},{"url":"https://bugzilla.suse.com/1195758","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2019-19630","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2021-20308","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-0534","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2021-20308","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-20308","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-7189-1","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-23158","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-23191","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-23206","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-26252","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-26259","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-26948","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-34119","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-34121","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-40985","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-43579","tags":["report"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/JPXU4F6ZSTM4YH5LRPXTC4IKPPHYHIMX/","tags":["advisory"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/SBHXPTEDODFUJSSP4XPVQOKK5PUKOPN6/","tags":["advisory"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/CULAAKX3HOT4A6XWUQNE3XVTQ7FRWP5M/","tags":["advisory"]},{"url":"","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2021-20308","description":"Integer overflow in the htmldoc 1.9.11 and before may allow attackers to execute arbitrary code and cause a denial of service that is similar to CVE-2017-9181.","status":"published","published":"2021-04-05T21:32:58Z","modified":"2024-08-03T17:37:23.687Z","cwes":["CWE-190"],"updated_at":"2026-11-02T14:32:55.564736Z"}],"euvd":[{"id":"EUVD-2021-7733","description":"Integer overflow in the htmldoc 1.9.11 and before may allow attackers to execute arbitrary code and cause a denial of service that is similar to CVE-2017-9181.","status":"published","published":"2021-04-05T21:32:58Z","modified":"2024-08-03T17:37:23Z","updated_at":"2026-11-03T03:25:08.888273Z"}],"ghsa":[{"id":"GHSA-pmv7-7c58-mhrx","title":"Integer overflow in the htmldoc 1.9.11 and before may allow attackers to execute arbitrary code...","description":"Integer overflow in the htmldoc 1.9.11 and before may allow attackers to execute arbitrary code and cause a denial of service that is similar to CVE-2017-9181.","status":"published","published":"2022-05-24T17:46:36Z","modified":"2023-01-29T05:06:15Z","cwes":["CWE-190"],"updated_at":"2026-11-02T14:45:59.056416Z"}],"nvd":[{"id":"CVE-2021-20308","description":"Integer overflow in the htmldoc 1.9.11 and before may allow attackers to execute arbitrary code and cause a denial of service that is similar to CVE-2017-9181.","status":"published","published":"2021-04-05T22:15:12.947Z","modified":"2026-06-17T03:33:38.797Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T14:06:51.610648Z"}],"osv":[{"id":"CVE-2021-20308","description":"Integer overflow in the htmldoc 1.9.11 and before may allow attackers to execute arbitrary code and cause a denial of service that is similar to CVE-2017-9181.","status":"published","published":"2021-04-05T22:15:12.947Z","modified":"2026-10-20T10:54:27.125351465Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:18.004149Z"},{"id":"DEBIAN-CVE-2021-20308","description":"Integer overflow in the htmldoc 1.9.11 and before may allow attackers to execute arbitrary code and cause a denial of service that is similar to CVE-2017-9181.","status":"published","published":"2021-04-05T22:15:12.947Z","modified":"2026-10-23T18:03:10.904210178Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:34.637046Z"},{"id":"UBUNTU-CVE-2021-20308","description":"Integer overflow in the htmldoc 1.9.11 and before may allow attackers to execute arbitrary code and cause a denial of service that is similar to CVE-2017-9181.","status":"published","published":"2021-04-05T22:15:00Z","modified":"2026-02-04T03:41:39.597112Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:54:26.29421Z"},{"id":"DLA-2700-1","title":"htmldoc - security update","status":"published","published":"2021-07-01T00:00:00Z","modified":"2026-03-09T01:17:59.597184Z","updated_at":"2026-11-02T15:46:10.712745Z"},{"id":"MGASA-2021-0332","title":"Updated htmldoc packages fix security vulnerabilities","description":"Updated htmldoc packages fix security vulnerabilities:\n\nInteger overflow in the htmldoc 1.9.11 and before may allow attackers to\nexecute arbitrary code and cause a denial of service that is similar to\nCVE-2017-9181 (CVE-2021-20308).\n\nAddressSanitizer: double-free in function pspdf_export ps-pdf.cxx\n(CVE-2021-23158).\n\nAddressSanitizer: heap-buffer-overflow in pspdf_prepare_outpages() in\nps-pdf.cxx (CVE-2021-23165).\n\nAddressSanitizer: SEGV in file_extension file.c (CVE-2021-23180).\n\nAddressSanitizer: SEGV on unknown address 0x000000000014 (CVE-2021-23191).\n\nAddressSanitizer: stack-buffer-overflow in parse_table ps-pdf.cxx\n(CVE-2021-23206).\n\nAddressSanitizer: heap-buffer-overflow in pspdf_prepare_page(int)\nps-pdf.cxx (CVE-2021-26252).\n\nAddressSanitizer: heap-buffer-overflow on render_table_row() ps-pdf.cxx\n(CVE-2021-26259).\n\nSEGV on unknown address 0x000000000000 (CVE-2021-26948).\n","status":"published","published":"2021-07-10T12:56:54Z","modified":"2026-04-16T04:43:53.915278517Z","updated_at":"2026-11-02T15:49:41.509337Z"},{"id":"openSUSE-SU-2021:0882-1","title":"Security update for htmldoc","description":"This update for htmldoc fixes the following issues:\n\nhtmldoc was updated to version 1.9.12:\n\n* Fixed buffer-overflow CVE-2021-20308 ( boo#1184424 )\n* Fixed a crash bug with 'data:' URIs and EPUB output\n* Fixed several other crash bugs\n* Fixed JPEG error handling\n* Fixed some minor issues\n* Removed the bundled libjpeg, libpng, and zlib.\n\nupdate to 1.9.11:\n\n- Added high-resolution desktop icons for Linux.\n- Updated the internal HTTP library to fix truncation of redirection URLs\n- Fixed a regression in the handling of character entities for UTF-8 input\n- The `--numbered` option did not work when the table-of-contents was disabled\n- Updated local zlib to v1.2.11.\n- Updated local libpng to v1.6.37.\n- Fixed packaging issues on macOS and Windows\n- Now ignore sRGB profile errors in PNG files\n- The GUI would crash when saving\n- Page comments are now allowed in `pre` text\n\nupdate to 1.9.9:\n\n- Added support for a `HTMLDOC.filename` META keyword that controls the filename\n  reported in CGI mode; the default remains 'htmldoc.pdf' (Issue #367)\n- Fixed a paragraph formatting issue with large inline images (Issue #369)\n- Fixed a buffer underflow issue (Issue #370)\n- Fixed PDF page numbers (Issue #371)\n- Added support for a new `L` header/footer format (`$LETTERHEAD`), which\n  inserts a letterhead image at its full size (Issue #372, Issue #373,\n  Issue #375)\n- Updated the build documentation (Issue #374)\n- Refactored the PRE rendering code to work around compiler optimization bugs\n- Added support for links with targets (Issue #351)\n- Fixed a table rowspan + valign bug (Issue #360)\n- Added support for data URIs (Issue #340)\n- HTMLDOC no longer includes a PDF table of contents when converting a single\n  web page (Issue #344)\n- Updated the markdown support with external links, additional inline markup,\n  and hard line breaks.\n- Links in markdown text no longer render with a leading space as part of the\n  link (Issue #346)\n- Fixed a buffer underflow bug discovered by AddressSanitizer.\n- Fixed a bug in UTF-8 support (Issue #348)\n- PDF output now includes the base language of the input document(s)\n- Optimized the loading of font widths (Issue #354)\n- Optimized PDF page resources (Issue #356)\n- Optimized the base memory used for font widths (Issue #357)\n- Added proper `\u0026shy;` support (Issue #361)\n- Title files can now be markdown.\n- The GUI did not support EPUB output.\n- Empty markdown table cells were not rendered in PDF or PostScript output.\n- The automatically-generated title page now supports both 'docnumber' and\n  'version' metadata.\n- Added support for dc:subject and dc:language metadata in EPUB output from the\n  HTML keywords and lang values.\n- Added support for the subject and language metadata in markdown input.\n- Fixed a buffer underflow bug (Issue #338)\n- `htmldoc --help` now reports whether HTTPS URLs are supported (Issue #339)\n- Fixed an issue with HTML title pages and EPUB output.\n- Inline fixed-width text is no longer reduced in size automatically\n- Optimized initialization of font width data (Issue #334)\n- Fixed formatting bugs with aligned images (Issue #322, Issue #324)\n- Fixed support for three digit '#RGB' color values (Issue #323)\n- Fixed character set support for markdown metadata.\n- Updated libpng to v1.6.34 (Issue #326)\n- The makefiles did not use the CPPFLAGS value (Issue #328)\n- Added Markdown table support.\n- Fixed parsing of TBODY, TFOOT, and THEAD elements in HTML files.\n","status":"published","published":"2021-06-16T13:54:44Z","modified":"2026-02-04T03:49:19.346763Z","updated_at":"2026-11-02T16:58:31.879684Z"},{"id":"openSUSE-SU-2021:0893-1","title":"Security update for htmldoc","description":"This update for htmldoc fixes the following issues:\n\nhtmldoc was updated to version 1.9.12\n\n* Fixed buffer-overflow CVE-2021-20308 ( boo#1184424 )\n* Fixed a crash bug with 'data:' URIs and EPUB output\n* Fixed several other crash bugs\n* Fixed JPEG error handling\n* Fixed some minor issues\n* Removed the bundled libjpeg, libpng, and zlib.\n\nupdate to 1.9.11:\n\n- Added high-resolution desktop icons for Linux.\n- Updated the internal HTTP library to fix truncation of redirection URLs\n- Fixed a regression in the handling of character entities for UTF-8 input\n- The `--numbered` option did not work when the table-of-contents was disabled\n- Updated local zlib to v1.2.11.\n- Updated local libpng to v1.6.37.\n- Fixed packaging issues on macOS and Windows\n- Now ignore sRGB profile errors in PNG files\n- The GUI would crash when saving\n- Page comments are now allowed in `pre` text\n\nupdate to 1.9.9:\n\n- Added support for a `HTMLDOC.filename` META keyword that controls the filename\n  reported in CGI mode; the default remains 'htmldoc.pdf' (Issue #367)\n- Fixed a paragraph formatting issue with large inline images (Issue #369)\n- Fixed a buffer underflow issue (Issue #370)\n- Fixed PDF page numbers (Issue #371)\n- Added support for a new `L` header/footer format (`$LETTERHEAD`), which\n  inserts a letterhead image at its full size (Issue #372, Issue #373,\n  Issue #375)\n- Updated the build documentation (Issue #374)\n- Refactored the PRE rendering code to work around compiler optimization bugs\n- Added support for links with targets (Issue #351)\n- Fixed a table rowspan + valign bug (Issue #360)\n- Added support for data URIs (Issue #340)\n- HTMLDOC no longer includes a PDF table of contents when converting a single\n  web page (Issue #344)\n- Updated the markdown support with external links, additional inline markup,\n  and hard line breaks.\n- Links in markdown text no longer render with a leading space as part of the\n  link (Issue #346)\n- Fixed a buffer underflow bug discovered by AddressSanitizer.\n- Fixed a bug in UTF-8 support (Issue #348)\n- PDF output now includes the base language of the input document(s)\n- Optimized the loading of font widths (Issue #354)\n- Optimized PDF page resources (Issue #356)\n- Optimized the base memory used for font widths (Issue #357)\n- Added proper `\u0026shy;` support (Issue #361)\n- Title files can now be markdown.\n- The GUI did not support EPUB output.\n- Empty markdown table cells were not rendered in PDF or PostScript output.\n- The automatically-generated title page now supports both 'docnumber' and\n  'version' metadata.\n- Added support for dc:subject and dc:language metadata in EPUB output from the\n  HTML keywords and lang values.\n- Added support for the subject and language metadata in markdown input.\n- Fixed a buffer underflow bug (Issue #338)\n- `htmldoc --help` now reports whether HTTPS URLs are supported (Issue #339)\n- Fixed an issue with HTML title pages and EPUB output.\n- Inline fixed-width text is no longer reduced in size automatically\n- Optimized initialization of font width data (Issue #334)\n- Fixed formatting bugs with aligned images (Issue #322, Issue #324)\n- Fixed support for three digit '#RGB' color values (Issue #323)\n- Fixed character set support for markdown metadata.\n- Updated libpng to v1.6.34 (Issue #326)\n- The makefiles did not use the CPPFLAGS value (Issue #328)\n- Added Markdown table support.\n- Fixed parsing of TBODY, TFOOT, and THEAD elements in HTML files.\n","status":"published","published":"2021-06-17T18:06:10Z","modified":"2026-02-04T04:08:54.307227Z","updated_at":"2026-11-02T16:58:31.879684Z"},{"id":"openSUSE-SU-2021:0895-1","title":"Security update for htmldoc","description":"This update for htmldoc fixes the following issues:\n\nUpdate to version 1.9.12\n\n* Fixed buffer-overflow CVE-2021-20308 ( boo#1184424 )\n* Fixed a crash bug with 'data:' URIs and EPUB output\n* Fixed several other crash bugs\n* Fixed JPEG error handling\n* Fixed some minor issues\n* Removed the bundled libjpeg, libpng, and zlib.\n\nupdate to 1.9.11:\n\n- Added high-resolution desktop icons for Linux.\n- Updated the internal HTTP library to fix truncation of redirection URLs\n- Fixed a regression in the handling of character entities for UTF-8 input\n- The `--numbered` option did not work when the table-of-contents was disabled\n- Updated local zlib to v1.2.11.\n- Updated local libpng to v1.6.37.\n- Fixed packaging issues on macOS and Windows\n- Now ignore sRGB profile errors in PNG files\n- The GUI would crash when saving\n- Page comments are now allowed in `pre` text\n\nupdate to 1.9.9:\n\n- Added support for a `HTMLDOC.filename` META keyword that controls the filename\n  reported in CGI mode; the default remains 'htmldoc.pdf' (Issue #367)\n- Fixed a paragraph formatting issue with large inline images (Issue #369)\n- Fixed a buffer underflow issue (Issue #370)\n- Fixed PDF page numbers (Issue #371)\n- Added support for a new `L` header/footer format (`$LETTERHEAD`), which\n  inserts a letterhead image at its full size (Issue #372, Issue #373,\n  Issue #375)\n- Updated the build documentation (Issue #374)\n- Refactored the PRE rendering code to work around compiler optimization bugs\n- Added support for links with targets (Issue #351)\n- Fixed a table rowspan + valign bug (Issue #360)\n- Added support for data URIs (Issue #340)\n- HTMLDOC no longer includes a PDF table of contents when converting a single\n  web page (Issue #344)\n- Updated the markdown support with external links, additional inline markup,\n  and hard line breaks.\n- Links in markdown text no longer render with a leading space as part of the\n  link (Issue #346)\n- Fixed a buffer underflow bug discovered by AddressSanitizer.\n- Fixed a bug in UTF-8 support (Issue #348)\n- PDF output now includes the base language of the input document(s)\n- Optimized the loading of font widths (Issue #354)\n- Optimized PDF page resources (Issue #356)\n- Optimized the base memory used for font widths (Issue #357)\n- Added proper `\u0026shy;` support (Issue #361)\n- Title files can now be markdown.\n- The GUI did not support EPUB output.\n- Empty markdown table cells were not rendered in PDF or PostScript output.\n- The automatically-generated title page now supports both 'docnumber' and\n  'version' metadata.\n- Added support for dc:subject and dc:language metadata in EPUB output from the\n  HTML keywords and lang values.\n- Added support for the subject and language metadata in markdown input.\n- Fixed a buffer underflow bug (Issue #338)\n- `htmldoc --help` now reports whether HTTPS URLs are supported (Issue #339)\n- Fixed an issue with HTML title pages and EPUB output.\n- Inline fixed-width text is no longer reduced in size automatically\n- Optimized initialization of font width data (Issue #334)\n- Fixed formatting bugs with aligned images (Issue #322, Issue #324)\n- Fixed support for three digit '#RGB' color values (Issue #323)\n- Fixed character set support for markdown metadata.\n- Updated libpng to v1.6.34 (Issue #326)\n- The makefiles did not use the CPPFLAGS value (Issue #328)\n- Added Markdown table support.\n- Fixed parsing of TBODY, TFOOT, and THEAD elements in HTML files.\n","status":"published","published":"2021-06-18T16:06:41Z","modified":"2026-02-04T02:12:48.719657Z","updated_at":"2026-11-02T16:58:31.879684Z"},{"id":"openSUSE-SU-2021:1266-1","title":"Security update for htmldoc","description":"This update for htmldoc fixes the following issues:\n\n- CVE-2021-20308: Fixed crash bug with bad GIFs, ( boo#1184424 )\n\n- Fixed license, package is GPL 2+ not LGPL\n","status":"published","published":"2021-09-15T07:29:41Z","modified":"2026-02-04T04:37:26.952282Z","updated_at":"2026-11-02T16:58:32.266854Z"},{"id":"openSUSE-SU-2024:10848-1","title":"htmldoc-1.9.12-1.2 on GA media","description":"These are all security issues fixed in the htmldoc-1.9.12-1.2 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T02:13:43.57782Z","updated_at":"2026-11-02T16:58:34.894275Z"},{"id":"SUSE-SU-2022:14898-1","title":"Security update for htmldoc","description":"This update for htmldoc fixes the following issues:\n\n- CVE-2019-19630: Fixed stack-based buffer overflow in the hd_strlcpy() function in string.c  via a crafted HTML document (bsc#1158802).\n- CVE-2021-20308: Fixed integer overflow in image_load_gif() (bsc#1184424).\n- 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).\n","status":"published","published":"2022-02-28T13:33:19Z","modified":"2026-02-04T04:31:39.952462Z","updated_at":"2026-11-02T15:53:50.513981Z"},{"id":"USN-7189-1","title":"HTMLDOC vulnerabilities","description":"It was discovered that HTMLDOC incorrectly handled certain inputs, which\ncould lead to an integer overflow. An attacker could potentially use this\nissue to cause a denial of service or execute arbitrary code.\n(CVE-2021-20308)\n\nIt was discovered that HTMLDOC incorrectly handled memory in pspdf_export,\nwhich could lead to a double-free. An attacker could potentially use this\nissue to cause a denial of service or execute arbitrary code.\n(CVE-2021-23158)\n\nIt was discovered that HTMLDOC incorrectly handled memory when loading a\nJPEG image, which could lead to a NULL pointer dereference. An attacker\ncould potentially use this issue to cause a denial of service.\n(CVE-2021-23191, CVE-2021-26948)\n\nIt was discovered that HTMLDOC incorrectly handled certain inputs, which\ncould lead to a stack buffer overflow. An attacker could potentially use\nthis issue to cause a denial of service or execute arbitrary code.\n(CVE-2021-23206, CVE-2021-40985, CVE-2021-43579)\n\nIt was discovered that HTMLDOC incorrectly handled memory in\npdpdf_prepare_page and render_table_row, which could lead to a heap buffer\noverflow. An attacker could potentially use this issue to cause a denial\nof service or execute arbitrary code. (CVE-2021-26252, CVE-2021-26259)\n\nIt was discovered that HTMLDOC incorrectly handled memory in\nparse_paragraph, which could lead to a heap buffer overflow. An attacker\ncould potentially use this issue to cause a denial of service or execute\narbitrary code. This issue only affected Ubuntu 20.04 LTS. (CVE-2021-34119)\n\nIt was discovered that HTMLDOC incorrectly handled memory in parse_tree.\nAn attacker could potentially use this issue to leak sensitive\ninformation. (CVE-2021-34121)\n","status":"published","published":"2025-01-08T01:23:50Z","modified":"2026-06-25T13:32:29.997721461Z","updated_at":"2026-11-02T16:58:18.876384Z"}]}}
