{"id":"CVE-2021-23191","aliases":["DEBIAN-CVE-2021-23191","DLA-2700-1","DSA-4928-1","EUVD-2021-10298","GHSA-rh6g-g88g-qmfg","MGASA-2021-0332","UBUNTU-CVE-2021-23191","USN-7189-1"],"status":"published","title":"A security issue was found in htmldoc v1.9.12 and before. A NULL pointer dereference in the...","description":"A security issue was found in htmldoc v1.9.12 and before. A NULL pointer dereference in the function image_load_jpeg() in image.cxx may result in denial of service.","severity":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.011,"percentile":0.65949,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-476"],"published":"2021-06-09T00:00:00Z","modified":"2026-10-23T18:03:25Z","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+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"]}],"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+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}],"products":[{"vendor":"htmldoc_project","product":"htmldoc"},{"vendor":"michaelrsweet","product":"htmldoc"}],"references":[{"url":"https://github.com/michaelrsweet/htmldoc/issues/415","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Third Party Advisory","report"]},{"url":"https://github.com/michaelrsweet/htmldoc/commit/369b2ea1fd0d0537ba707f20a2f047b6afd2fbdc","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1967022","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix"]},{"url":"https://ubuntu.com/security/CVE-2021-23191","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23191"},{"url":"https://github.com/advisories/GHSA-rh6g-g88g-qmfg"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-23191","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://www.cve.org/CVERecord?id=CVE-2021-23191","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-7189-1","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-20308","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-23158","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"]}],"sources":{"cve":[{"id":"CVE-2021-23191","description":"A security issue was found in htmldoc v1.9.12 and before. A NULL pointer dereference in the function image_load_jpeg() in image.cxx may result in denial of service.","status":"published","published":"2022-03-02T22:28:10Z","modified":"2024-08-03T19:05:54.542Z","cwes":["CWE-476"],"updated_at":"2026-11-02T14:33:00.488332Z"}],"euvd":[{"id":"EUVD-2021-10298","description":"A security issue was found in htmldoc v1.9.12 and before. A NULL pointer dereference in the function image_load_jpeg() in image.cxx may result in denial of service.","status":"published","published":"2022-03-02T22:28:10Z","modified":"2024-08-03T19:05:54Z","updated_at":"2026-11-03T03:25:00.126172Z"}],"ghsa":[{"id":"GHSA-rh6g-g88g-qmfg","title":"A security issue was found in htmldoc v1.9.12 and before. A NULL pointer dereference in the...","description":"A security issue was found in htmldoc v1.9.12 and before. A NULL pointer dereference in the function image_load_jpeg() in image.cxx may result in denial of service.","status":"published","published":"2022-03-04T00:00:23Z","modified":"2023-02-03T05:06:47Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-476"],"updated_at":"2026-11-02T14:53:56.97591Z"}],"nvd":[{"id":"CVE-2021-23191","description":"A security issue was found in htmldoc v1.9.12 and before. A NULL pointer dereference in the function image_load_jpeg() in image.cxx may result in denial of service.","status":"published","published":"2022-03-02T23:15:08.347Z","modified":"2026-06-17T03:38:24.11Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-476"],"updated_at":"2026-11-02T14:07:05.198719Z"}],"osv":[{"id":"CVE-2021-23191","description":"A security issue was found in htmldoc v1.9.12 and before. A NULL pointer dereference in the function image_load_jpeg() in image.cxx may result in denial of service.","status":"published","published":"2022-03-02T23:15:08.347Z","modified":"2026-10-20T14:18:23.25668273Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:18.367807Z"},{"id":"DEBIAN-CVE-2021-23191","description":"A security issue was found in htmldoc v1.9.12 and before. A NULL pointer dereference in the function image_load_jpeg() in image.cxx may result in denial of service.","status":"published","published":"2022-03-02T23:15:08.347Z","modified":"2026-10-23T18:03:25.25364407Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:34.637046Z"},{"id":"UBUNTU-CVE-2021-23191","description":"A security issue was found in htmldoc v1.9.12 and before. A NULL pointer dereference in the function image_load_jpeg() in image.cxx may result in denial of service.","status":"published","published":"2022-03-02T23:15:00Z","modified":"2026-02-04T04:11:56.099768Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"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-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"}]}}
