{"id":"CVE-2021-23180","aliases":["DEBIAN-CVE-2021-23180","DLA-2700-1","DSA-4928-1","EUVD-2021-10290","GHSA-77xx-wx8p-7pfj","MGASA-2021-0332","UBUNTU-CVE-2021-23180","USN-5198-1"],"status":"published","title":"A flaw was found in htmldoc in v1.9.12 and before. Null pointer dereference in file_extension()...","description":"A flaw was found in htmldoc in v1.9.12 and before. Null pointer dereference in file_extension(),in file.c may lead to execute arbitrary code and 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-11","score":0.01354,"percentile":0.71973,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-476"],"published":"2021-06-03T00: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:20.04:LTS","package":"htmldoc","fixed_in":["1.9.7-1ubuntu0.2"],"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"}]}],"versions":["1.8.27-8ubuntu1","1.8.27-8ubuntu1+esm1","1.8.27-8ubuntu1+esm2","1.8.27-8ubuntu1+esm3","1.8.27-8ubuntu1+esm4"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.8.27-8ubuntu1","1.8.27-8ubuntu1.1","1.8.27-8ubuntu1.1+esm1","1.8.27-8ubuntu1.1+esm2","1.8.27-8ubuntu1.1+esm3"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.7-1ubuntu0.2"}]}],"versions":["1.9.3-1","1.9.7-1","1.9.7-1build1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.7-1ubuntu0.2"}]}],"versions":["1.9.3-1","1.9.7-1","1.9.7-1build1"]}],"products":[{"vendor":"htmldoc_project","product":"htmldoc"},{"vendor":"michaelrsweet","product":"htmldoc"}],"references":[{"url":"https://github.com/michaelrsweet/htmldoc/issues/418","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Third Party Advisory","report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1967041","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix"]},{"url":"https://ubuntu.com/security/CVE-2021-23180","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","report"]},{"url":"https://github.com/michaelrsweet/htmldoc/commit/19c582fb32eac74b57e155cffbb529377a9e751a","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23180"},{"url":"https://github.com/advisories/GHSA-77xx-wx8p-7pfj"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-23180","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/notices/USN-5198-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-23180","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-23180","description":"A flaw was found in htmldoc in v1.9.12 and before. Null pointer dereference in file_extension(),in file.c may lead to execute arbitrary code and denial of service.","status":"published","published":"2022-03-02T22:29:49Z","modified":"2024-08-03T19:05:55.251Z","cwes":["CWE-476"],"updated_at":"2026-11-02T14:33:00.488332Z"}],"euvd":[{"id":"EUVD-2021-10290","description":"A flaw was found in htmldoc in v1.9.12 and before. Null pointer dereference in file_extension(),in file.c may lead to execute arbitrary code and denial of service.","status":"published","published":"2022-03-02T22:29:49Z","modified":"2024-08-03T19:05:55Z","updated_at":"2026-11-03T03:25:00.126172Z"}],"ghsa":[{"id":"GHSA-77xx-wx8p-7pfj","title":"A flaw was found in htmldoc in v1.9.12 and before. Null pointer dereference in file_extension()...","description":"A flaw was found in htmldoc in v1.9.12 and before. Null pointer dereference in file_extension(),in file.c may lead to execute arbitrary code and denial of service.","status":"published","published":"2022-03-04T00:00:23Z","modified":"2023-02-03T05:06:22Z","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:53.309122Z"}],"nvd":[{"id":"CVE-2021-23180","description":"A flaw was found in htmldoc in v1.9.12 and before. Null pointer dereference in file_extension(),in file.c may lead to execute arbitrary code and denial of service.","status":"published","published":"2022-03-02T23:15:08.283Z","modified":"2026-06-17T03:38:23.573Z","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-23180","description":"A flaw was found in htmldoc in v1.9.12 and before. Null pointer dereference in file_extension(),in file.c may lead to execute arbitrary code and denial of service.","status":"published","published":"2022-03-02T23:15:08.283Z","modified":"2026-10-20T14:18:22.869114193Z","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-23180","description":"A flaw was found in htmldoc in v1.9.12 and before. Null pointer dereference in file_extension(),in file.c may lead to execute arbitrary code and denial of service.","status":"published","published":"2022-03-02T23:15:08.283Z","modified":"2026-10-23T18:03:25.188608775Z","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-23180","description":"A flaw was found in htmldoc in v1.9.12 and before. Null pointer dereference in file_extension(),in file.c may lead to execute arbitrary code and denial of service.","status":"published","published":"2021-06-03T00:00:00Z","modified":"2026-02-04T04:37:14.201958Z","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-5198-1","title":"htmldoc vulnerability","description":"It was discovered that HTMLDOC improperly handled malformed URIs from an input\nhtml file.  An attacker could use this to cause a denial of service.\n","status":"published","published":"2021-12-16T19:32:27Z","modified":"2026-04-27T16:01:40.751044Z","updated_at":"2026-11-02T16:58:15.683829Z"}]}}
