{"id":"CVE-2021-23165","aliases":["DEBIAN-CVE-2021-23165","DLA-2700-1","DSA-4928-1","EUVD-2021-10275","GHSA-49mr-vrxv-hmwg","MGASA-2021-0332","UBUNTU-CVE-2021-23165","USN-5438-1","USN-5438-2"],"status":"published","title":"A flaw was found in htmldoc before v1.9.12. Heap buffer overflow in pspdf_prepare_outpages(), in...","description":"A flaw was found in htmldoc before v1.9.12. Heap buffer overflow in pspdf_prepare_outpages(), in ps-pdf.cxx may lead to execute arbitrary code and denial of service.","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.03512,"percentile":0.89357,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-122","CWE-787"],"published":"2021-06-09T00:00:00Z","modified":"2026-10-23T18:04:49Z","fixes":[{"ecosystem":"Debian:12","package":"htmldoc","fixed_in":["1.9.11-4"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"htmldoc","fixed_in":["1.9.11-4"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"htmldoc","fixed_in":["1.9.11-4"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:14.04:LTS","package":"htmldoc","fixed_in":["1.8.27-8ubuntu1+esm2"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"htmldoc","fixed_in":["1.8.27-8ubuntu1.1+esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:18.04:LTS","package":"htmldoc","fixed_in":["1.9.2-1ubuntu0.2"],"sources":["osv"]},{"ecosystem":"Ubuntu:20.04:LTS","package":"htmldoc","fixed_in":["1.9.7-1ubuntu0.3"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.11-4"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.11-4"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.11-4"}]}]},{"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":"Debian:10","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.3-1+deb10u2"}]}],"versions":["1.9.3-1","1.9.3-1+deb10u1"],"bundled":8},{"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":"Ubuntu:Pro:14.04:LTS","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.27-8ubuntu1+esm2"}]}],"versions":["1.8.27-8ubuntu1","1.8.27-8ubuntu1+esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.27-8ubuntu1.1+esm1"}]}],"versions":["1.8.27-8ubuntu1","1.8.27-8ubuntu1.1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.2-1ubuntu0.2"}]}],"versions":["1.8.27-8ubuntu2","1.8.27-8ubuntu3","1.9.2-1","1.9.2-1ubuntu0.1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.7-1ubuntu0.3"}]}],"versions":["1.9.3-1","1.9.7-1","1.9.7-1build1","1.9.7-1ubuntu0.2"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.2-1ubuntu0.2"}]}],"versions":["1.8.27-8ubuntu2","1.8.27-8ubuntu3","1.9.2-1","1.9.2-1ubuntu0.1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.7-1ubuntu0.3"}]}],"versions":["1.9.3-1","1.9.7-1","1.9.7-1build1","1.9.7-1ubuntu0.2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.27-8ubuntu1+esm2"}]}],"versions":["1.8.27-8ubuntu1","1.8.27-8ubuntu1+esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.27-8ubuntu1.1+esm1"}]}],"versions":["1.8.27-8ubuntu1","1.8.27-8ubuntu1.1"]}],"products":[{"vendor":"htmldoc_project","product":"htmldoc"},{"vendor":"michaelrsweet","product":"htmldoc"}],"references":[{"url":"https://github.com/michaelrsweet/htmldoc/issues/413","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Third Party Advisory","report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1967014","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","fix"]},{"url":"https://github.com/michaelrsweet/htmldoc/commit/6e8a95561988500b5b5ae4861b3b0cbf4fba517f","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://github.com/michaelrsweet/htmldoc/commit/6e8a95561988500b5b5ae4861b3b0cbf4fba517f.patch","tags":["x_refsource_MISC","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23165"},{"url":"https://github.com/advisories/GHSA-49mr-vrxv-hmwg"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-23165","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"]},{"url":"https://ubuntu.com/security/CVE-2021-23165","tags":["report"]},{"url":"https://github.com/michaelrsweet/htmldoc/commit/369b2ea1fd0d0537ba707f20a2f047b6afd2fbdc","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-5438-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-23165","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-5438-2","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2021-23165","description":"A flaw was found in htmldoc before v1.9.12. Heap buffer overflow in pspdf_prepare_outpages(), in ps-pdf.cxx may lead to execute arbitrary code and denial of service.","status":"published","published":"2022-03-16T14:12:29Z","modified":"2024-08-03T19:05:55.689Z","cwes":["CWE-122"],"updated_at":"2026-11-02T14:33:00.819444Z"}],"euvd":[{"id":"EUVD-2021-10275","description":"A flaw was found in htmldoc before v1.9.12. Heap buffer overflow in pspdf_prepare_outpages(), in ps-pdf.cxx may lead to execute arbitrary code and denial of service.","status":"published","published":"2022-03-16T14:12:29Z","modified":"2024-08-03T19:05:55Z","updated_at":"2026-11-03T03:25:00.126172Z"}],"ghsa":[{"id":"GHSA-49mr-vrxv-hmwg","title":"A flaw was found in htmldoc before v1.9.12. Heap buffer overflow in pspdf_prepare_outpages(), in...","description":"A flaw was found in htmldoc before v1.9.12. Heap buffer overflow in pspdf_prepare_outpages(), in ps-pdf.cxx may lead to execute arbitrary code and denial of service.","status":"published","published":"2022-03-17T00:00:43Z","modified":"2025-02-05T21:32:30Z","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"}],"cwes":["CWE-122","CWE-787"],"updated_at":"2026-11-02T14:59:48.779987Z"}],"nvd":[{"id":"CVE-2021-23165","description":"A flaw was found in htmldoc before v1.9.12. Heap buffer overflow in pspdf_prepare_outpages(), in ps-pdf.cxx may lead to execute arbitrary code and denial of service.","status":"published","published":"2022-03-16T15:15:10.157Z","modified":"2026-06-17T03:38:21.91Z","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":10,"vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-122","CWE-787"],"updated_at":"2026-11-02T14:07:05.198719Z"}],"osv":[{"id":"CVE-2021-23165","description":"A flaw was found in htmldoc before v1.9.12. Heap buffer overflow in pspdf_prepare_outpages(), in ps-pdf.cxx may lead to execute arbitrary code and denial of service.","status":"published","published":"2022-03-16T15:15:10.157Z","modified":"2026-10-20T14:23:31.246567958Z","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.367807Z"},{"id":"DEBIAN-CVE-2021-23165","description":"A flaw was found in htmldoc before v1.9.12. Heap buffer overflow in pspdf_prepare_outpages(), in ps-pdf.cxx may lead to execute arbitrary code and denial of service.","status":"published","published":"2022-03-16T15:15:10.157Z","modified":"2026-10-23T18:04:49.45757867Z","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-23165","description":"A flaw was found in htmldoc before v1.9.12. Heap buffer overflow in pspdf_prepare_outpages(), in ps-pdf.cxx may lead to execute arbitrary code and denial of service.","status":"published","published":"2022-03-16T15:15:00Z","modified":"2026-02-04T04:37:29.290697Z","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.779273Z"},{"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":"DSA-4928-1","title":"htmldoc - security update","status":"published","published":"2021-06-09T00:00:00Z","modified":"2026-03-09T02:08:45.935495Z","updated_at":"2026-11-02T15:46:17.19998Z"},{"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":"USN-5438-1","title":"htmldoc vulnerability","description":"It was discovered that HTMLDOC did not properly manage memory under certain\ncircumstances. If a user were tricked into opening a specially crafted HTML\nfile, a remote attacker could possibly use this issue to cause HTMLDOC to\ncrash, resulting in a denial of service, or possibly execute arbitrary code.\n","status":"published","published":"2022-05-23T22:20:37Z","modified":"2026-02-10T04:42:37Z","updated_at":"2026-11-02T16:58:16.20937Z"},{"id":"USN-5438-2","title":"htmldoc vulnerability","description":"USN-5438-1 fixed a vulnerability in HTMLDOC. This update provides the\ncorresponding update for Ubuntu 14.04 ESM and Ubuntu 16.04 ESM.\n\nOriginal advisory details:\n\n It was discovered that HTMLDOC did not properly manage memory under certain\n circumstances. If a user were tricked into opening a specially crafted HTML\n file, a remote attacker could possibly use this issue to cause HTMLDOC to\n crash, resulting in a denial of service, or possibly execute arbitrary code.\n","status":"published","published":"2022-05-24T20:02:41Z","modified":"2026-06-29T13:49:38.504349127Z","updated_at":"2026-11-02T16:58:16.20937Z"}]}}
