Every CVE Search/ Get API key

CVE-2021-43579

A stack-based buffer overflow in image_load_bmp() in HTMLDOC <= 1.9.13 results in remote code...

7.8 HighPublic exploitFix available

A stack-based buffer overflow in image_load_bmp() in HTMLDOC <= 1.9.13 results in remote code execution if the victim converts an HTML document linking to a crafted BMP file.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

7.35%Up 5.5 points since Nov 13, 2021
90%50%10%1%

What each source reports

NVD Score used 7.8

A stack-based buffer overflow in image_load_bmp() in HTMLDOC <= 1.9.13 results in remote code execution if the victim converts an HTML document linking to a crafted BMP file.

Record
CVE-2021-43579
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.0
6.8 MediumAV:N/AC:M/Au:N/C:P/I:P/A:P
Weakness
CWE-787
Updated
2026-11-02
CVE List No score

A stack-based buffer overflow in image_load_bmp() in HTMLDOC <= 1.9.13 results in remote code execution if the victim converts an HTML document linking to a crafted BMP file.

Record
CVE-2021-43579
Updated
2026-11-02
EUVDEUVD-2021-30494 No score

A stack-based buffer overflow in image_load_bmp() in HTMLDOC <= 1.9.13 results in remote code execution if the victim converts an HTML document linking to a crafted BMP file.

Record
EUVD-2021-30494
Updated
2026-11-03
GitHub AdvisoriesGHSA-999x-mjp8-5gfp 7.8

A stack-based buffer overflow in image_load_bmp() in HTMLDOC <= 1.9.13 results in remote code...

A stack-based buffer overflow in image_load_bmp() in HTMLDOC <= 1.9.13 results in remote code execution if the victim converts an HTML document linking to a crafted BMP file.

Record
GHSA-999x-mjp8-5gfp
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-787
Updated
2026-11-02
OSV 7.8

A stack-based buffer overflow in image_load_bmp() in HTMLDOC <= 1.9.13 results in remote code execution if the victim converts an HTML document linking to a crafted BMP file.

Record
CVE-2021-43579
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2021-43579 7.8

A stack-based buffer overflow in image_load_bmp() in HTMLDOC <= 1.9.13 results in remote code execution if the victim converts an HTML document linking to a crafted BMP file.

Record
DEBIAN-CVE-2021-43579
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 5 moreShow less
OSVUBUNTU-CVE-2021-43579 7.8

A stack-based buffer overflow in image_load_bmp() in HTMLDOC <= 1.9.13 results in remote code execution if the victim converts an HTML document linking to a crafted BMP file.

Record
UBUNTU-CVE-2021-43579
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVMGASA-2022-0033 No score

Updated htmldoc packages fix security vulnerability

The updated packages fix a crash when clicking the button "Generate" and a security vulnerability:

A stack-based buffer overflow in image_load_bmp() in HTMLDOC <= 1.9.13 results in remote code execution if the victim converts an HTML document linking to a crafted BMP file. (CVE-2021-43579)

Record
MGASA-2022-0033
Updated
2026-11-02
OSVopenSUSE-SU-2024:11741-1 No score

htmldoc-1.9.14-1.1 on GA media

These are all security issues fixed in the htmldoc-1.9.14-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:11741-1
Updated
2026-11-02
OSVSUSE-SU-2022:14877-1 No score

Security update for htmldoc

This update for htmldoc fixes the following issues:

  • 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)
Record
SUSE-SU-2022:14877-1
Updated
2026-11-02
OSVUSN-7189-1 No score

HTMLDOC vulnerabilities

It was discovered that HTMLDOC incorrectly handled certain inputs, which could lead to an integer overflow. An attacker could potentially use this issue to cause a denial of service or execute arbitrary code. (CVE-2021-20308)

It was discovered that HTMLDOC incorrectly handled memory in pspdf_export, which could lead to a double-free. An attacker could potentially use this issue to cause a denial of service or execute arbitrary code. (CVE-2021-23158)

It was discovered that HTMLDOC incorrectly handled memory when loading a JPEG image, which could lead to a NULL pointer dereference. An attacker could potentially use this issue to cause a denial of service. (CVE-2021-23191, CVE-2021-26948)

It was discovered that HTMLDOC incorrectly handled certain inputs, which could lead to a stack buffer overflow. An attacker could potentially use this issue to cause a denial of service or execute arbitrary code. (CVE-2021-23206, CVE-2021-40985, CVE-2021-43579)

It was discovered that HTMLDOC incorrectly handled memory in pdpdf_prepare_page and render_table_row, which could lead to a heap buffer overflow. An attacker could potentially use this issue to cause a denial of service or execute arbitrary code. (CVE-2021-26252, CVE-2021-26259)

It was discovered that HTMLDOC incorrectly handled memory in parse_paragraph, which could lead to a heap buffer overflow. An attacker could potentially use this issue to cause a denial of service or execute arbitrary code. This issue only affected Ubuntu 20.04 LTS. (CVE-2021-34119)

It was discovered that HTMLDOC incorrectly handled memory in parse_tree. An attacker could potentially use this issue to leak sensitive information. (CVE-2021-34121)

Record
USN-7189-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
htmldoc
Debian:12
before 1.9.13-1
1.9.13-1
htmldoc
Debian:13
before 1.9.13-1
1.9.13-1
htmldoc
Debian:14
before 1.9.13-1
1.9.13-1
htmldoc
Debian:9
From an advisory covering 3 CVEs
before 1.8.27-8+deb9u2, plus listed versions
1.8.27-81.8.27-8+deb9u1
1.8.27-8+deb9u2
htmldoc
Mageia:8
before 1.9.14-1.mga8
1.9.14-1.mga8
htmldoc
SUSE:Subscription Management Tool 11 SP3
before 1.8.27-170.4.6.1
1.8.27-170.4.6.1
htmldoc
Ubuntu:Pro:14.04:LTS
before 1.8.27-8ubuntu1+esm3, plus listed versions
1.8.27-8ubuntu11.8.27-8ubuntu1+esm11.8.27-8ubuntu1+esm2
1.8.27-8ubuntu1+esm3
htmldoc
Ubuntu:Pro:16.04:LTS
before 1.8.27-8ubuntu1.1+esm2, plus listed versions
1.8.27-8ubuntu11.8.27-8ubuntu1.11.8.27-8ubuntu1.1+esm1
1.8.27-8ubuntu1.1+esm2
htmldoc
Ubuntu:Pro:18.04:LTS
before 1.9.2-1ubuntu0.2+esm1, plus listed versions
1.8.27-8ubuntu21.8.27-8ubuntu31.9.2-11.9.2-1ubuntu0.11.9.2-1ubuntu0.2
1.9.2-1ubuntu0.2+esm1
htmldoc
Ubuntu:Pro:20.04:LTS
before 1.9.7-1ubuntu0.3+esm1, plus listed versions
1.9.3-11.9.7-11.9.7-1build11.9.7-1ubuntu0.21.9.7-1ubuntu0.3
1.9.7-1ubuntu0.3+esm1
Show 5 moreShow less
Affected packages
PackageAffectedFixed
htmldoc
Ubuntu:Pro:14.04:LTS
From an advisory covering 11 CVEs
before 1.8.27-8ubuntu1+esm3, plus listed versions
1.8.27-8ubuntu11.8.27-8ubuntu1+esm11.8.27-8ubuntu1+esm2
1.8.27-8ubuntu1+esm3
htmldoc
Ubuntu:Pro:16.04:LTS
From an advisory covering 11 CVEs
before 1.8.27-8ubuntu1.1+esm2, plus listed versions
1.8.27-8ubuntu11.8.27-8ubuntu1.11.8.27-8ubuntu1.1+esm1
1.8.27-8ubuntu1.1+esm2
htmldoc
Ubuntu:Pro:18.04:LTS
From an advisory covering 11 CVEs
before 1.9.2-1ubuntu0.2+esm1, plus listed versions
1.8.27-8ubuntu21.8.27-8ubuntu31.9.2-11.9.2-1ubuntu0.11.9.2-1ubuntu0.2
1.9.2-1ubuntu0.2+esm1
htmldoc
Ubuntu:Pro:20.04:LTS
From an advisory covering 11 CVEs
before 1.9.7-1ubuntu0.3+esm1, plus listed versions
1.9.3-11.9.7-11.9.7-1build11.9.7-1ubuntu0.21.9.7-1ubuntu0.3
1.9.7-1ubuntu0.3+esm1
htmldoc
openSUSE:Tumbleweed
before 1.9.14-1.1
1.9.14-1.1

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
Exploit-DBHTMLDOC 1.9.13 - Stack Buffer Overflow2025-09-16

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, Exploit-DB, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-43579 is a high vulnerability (CVSS 7.8) in Htmldoc Project Htmldoc, published November 12, 2021. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 7.35%, the 94th percentile. Fixed in htmldoc 1.9.13-1.

References

Show 21 moreShow less
MoveEnter Open