CVE-2021-43579
NixOS vulnerability analysis and mitigation

Overview

A stack-based buffer overflow vulnerability (CVE-2021-43579) was discovered in HTMLDOC versions 1.9.13 and earlier. The vulnerability exists in the image_load_bmp() function and can be triggered when a victim converts an HTML document that links to a specially crafted BMP file (NVD, Debian Security).

Technical details

The vulnerability resides in the image_load_bmp() function where the colors_used variable, read from the BMP file header, is directly used to read into a fixed-size buffer without proper bounds checking. The CVSS v3.1 base score is 7.8 (High) with vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. The vulnerability is classified as CWE-787 (Out-of-bounds Write) (NVD, GitHub Issue).

Impact

If successfully exploited, this vulnerability could lead to remote code execution by modifying the instruction pointer through buffer overflow. The attacker could potentially execute arbitrary code with the privileges of the application processing the malicious BMP file (GitHub Issue).

Exploitability

The vulnerability can be exploited by crafting a malicious BMP file with a specifically set colors_used value large enough to overflow the stack buffer. The exploitation requires user interaction as the victim must process an HTML document containing a link to the crafted BMP file (GitHub Issue).

Mitigation and workarounds

The vulnerability was patched in HTMLDOC version 1.9.13 by adding a check to validate that colors_used does not exceed 256 (GitHub Commit). Users are advised to upgrade to the latest version of HTMLDOC. Debian has also released security updates for affected versions in their distributions (Debian LTS).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-13097CRITICAL9.1
  • NixOS logoNixOS
  • python3-samba-test
NoYesAug 20, 2026
CVE-2026-11861HIGH8.1
  • NixOS logoNixOS
  • samba-common
NoYesAug 20, 2026
CVE-2026-73198HIGH7.5
  • NixOS logoNixOS
  • ctdb-ceph-mutex
NoYesAug 20, 2026
CVE-2026-73197HIGH7.5
  • NixOS logoNixOS
  • samba-test-libs-debuginfo
NoYesAug 20, 2026
CVE-2026-73196MEDIUM6.5
  • NixOS logoNixOS
  • samba-ldb-ldap-modules-debuginfo
NoYesAug 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management