{"id":"CVE-2021-43579","aliases":["DEBIAN-CVE-2021-43579","DLA-2928-1","EUVD-2021-30494","GHSA-999x-mjp8-5gfp","MGASA-2022-0033","SUSE-SU-2022:14877-1","UBUNTU-CVE-2021-43579","USN-7189-1","openSUSE-SU-2024:11741-1"],"status":"published","title":"A stack-based buffer overflow in image_load_bmp() in HTMLDOC \u003c= 1.9.13 results in remote code...","description":"A stack-based buffer overflow in image_load_bmp() in HTMLDOC \u003c= 1.9.13 results in remote code execution if the victim converts an HTML document linking to a crafted BMP file.","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-09","score":0.07349,"percentile":0.94442,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-787"],"published":"2021-11-12T17:49:37Z","modified":"2026-10-23T18:04:16Z","exploits":[{"source":"exploitdb","id":"EDB-52425","title":"HTMLDOC 1.9.13 - Stack Buffer Overflow","type":"remote","platform":"multiple","date":"2025-09-16","url":"https://www.exploit-db.com/exploits/52425"}],"fixes":[{"ecosystem":"Debian:12","package":"htmldoc","fixed_in":["1.9.13-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"htmldoc","fixed_in":["1.9.13-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"htmldoc","fixed_in":["1.9.13-1"],"sources":["osv"]},{"ecosystem":"Mageia:8","package":"htmldoc","fixed_in":["1.9.14-1.mga8"],"sources":["osv"]},{"ecosystem":"SUSE:Subscription Management Tool 11 SP3","package":"htmldoc","fixed_in":["1.8.27-170.4.6.1"],"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:Tumbleweed","package":"htmldoc","fixed_in":["1.9.14-1.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.13-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.13-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.13-1"}]}]},{"source":"osv","ecosystem":"Debian:9","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.27-8+deb9u2"}]}],"versions":["1.8.27-8","1.8.27-8+deb9u1"],"bundled":3},{"source":"osv","ecosystem":"Mageia:8","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.14-1.mga8"}]}]},{"source":"osv","ecosystem":"SUSE:Subscription Management Tool 11 SP3","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.27-170.4.6.1"}]}]},{"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:Tumbleweed","package":"htmldoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.14-1.1"}]}]}],"products":[{"vendor":"debian","product":"debian_linux"},{"vendor":"htmldoc_project","product":"htmldoc"}],"references":[{"url":"https://github.com/michaelrsweet/htmldoc/issues/453","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","fix","report"]},{"url":"https://github.com/michaelrsweet/htmldoc/commit/27d08989a5a567155d506ac870ae7d8cc88fa58b","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","report"]},{"url":"https://github.com/michaelrsweet/htmldoc/compare/v1.9.12...v1.9.13","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","advisory","report"]},{"url":"https://github.com/michaelrsweet/htmldoc/issues/456","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","fix"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/02/msg00022.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43579"},{"url":"https://github.com/advisories/GHSA-999x-mjp8-5gfp"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-43579","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2022-0033.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=29914","tags":["report"]},{"url":"https://lists.suse.com/pipermail/sle-security-updates/2022-January/010028.html","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2022/suse-su-202214877-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1194487","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2021-43579","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2021-43579","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-43579","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-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":"","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2021-43579","description":"A stack-based buffer overflow in image_load_bmp() in HTMLDOC \u003c= 1.9.13 results in remote code execution if the victim converts an HTML document linking to a crafted BMP file.","status":"published","published":"2021-11-12T17:49:37Z","modified":"2024-08-04T04:03:08.591Z","updated_at":"2026-11-02T14:32:57.033395Z"}],"euvd":[{"id":"EUVD-2021-30494","description":"A stack-based buffer overflow in image_load_bmp() in HTMLDOC \u003c= 1.9.13 results in remote code execution if the victim converts an HTML document linking to a crafted BMP file.","status":"published","published":"2021-11-12T17:49:37Z","modified":"2024-08-04T04:03:08Z","updated_at":"2026-11-03T03:24:13.772922Z"}],"ghsa":[{"id":"GHSA-999x-mjp8-5gfp","title":"A stack-based buffer overflow in image_load_bmp() in HTMLDOC \u003c= 1.9.13 results in remote code...","description":"A stack-based buffer overflow in image_load_bmp() in HTMLDOC \u003c= 1.9.13 results in remote code execution if the victim converts an HTML document linking to a crafted BMP file.","status":"published","published":"2022-01-11T00:01:15Z","modified":"2023-02-03T05:04:28Z","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-787"],"updated_at":"2026-11-02T14:53:33.273438Z"}],"nvd":[{"id":"CVE-2021-43579","description":"A stack-based buffer overflow in image_load_bmp() in HTMLDOC \u003c= 1.9.13 results in remote code execution if the victim converts an HTML document linking to a crafted BMP file.","status":"published","published":"2022-01-10T14:10:24.167Z","modified":"2026-06-17T04:11:10.26Z","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-787"],"updated_at":"2026-11-02T14:07:03.418194Z"}],"osv":[{"id":"CVE-2021-43579","description":"A stack-based buffer overflow in image_load_bmp() in HTMLDOC \u003c= 1.9.13 results in remote code execution if the victim converts an HTML document linking to a crafted BMP file.","status":"published","published":"2022-01-10T14:10:24.167Z","modified":"2026-10-20T14:34:27.778981547Z","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:21.877444Z"},{"id":"DEBIAN-CVE-2021-43579","description":"A stack-based buffer overflow in image_load_bmp() in HTMLDOC \u003c= 1.9.13 results in remote code execution if the victim converts an HTML document linking to a crafted BMP file.","status":"published","published":"2022-01-10T14:10:24.167Z","modified":"2026-10-23T18:04:16.513976357Z","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:35.799676Z"},{"id":"UBUNTU-CVE-2021-43579","description":"A stack-based buffer overflow in image_load_bmp() in HTMLDOC \u003c= 1.9.13 results in remote code execution if the victim converts an HTML document linking to a crafted BMP file.","status":"published","published":"2022-01-10T14:10:00Z","modified":"2026-02-05T03:03:06.115094Z","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:29.220315Z"},{"id":"DLA-2928-1","title":"htmldoc - security update","status":"published","published":"2022-02-26T00:00:00Z","modified":"2026-03-09T01:23:38.786801Z","updated_at":"2026-11-02T15:46:11.189256Z"},{"id":"MGASA-2022-0033","title":"Updated htmldoc packages fix security vulnerability","description":"The updated packages fix a crash when clicking the button \"Generate\" and a\nsecurity vulnerability:\n\nA stack-based buffer overflow in image_load_bmp() in HTMLDOC \u003c= 1.9.13\nresults in remote code execution if the victim converts an HTML document\nlinking to a crafted BMP file. (CVE-2021-43579)\n","status":"published","published":"2022-01-25T12:13:11Z","modified":"2026-04-16T04:43:45.232012011Z","updated_at":"2026-11-02T15:49:41.849028Z"},{"id":"openSUSE-SU-2024:11741-1","title":"htmldoc-1.9.14-1.1 on GA media","description":"These are all security issues fixed in the htmldoc-1.9.14-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T04:13:24.671067Z","updated_at":"2026-11-02T16:58:35.195147Z"},{"id":"SUSE-SU-2022:14877-1","title":"Security update for htmldoc","description":"This update for htmldoc fixes the following issues:\n\n- CVE-2021-43579: Fixed stack-based buffer overflow in image_load_bmp() resulting in remote code execution if the victim converts an HTML document linking to a crafted BMP file. (bsc#1194487)\n","status":"published","published":"2022-01-19T16:58:38Z","modified":"2026-02-04T03:39:16.490561Z","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"}]}}
