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).

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-2025-69264CRITICAL9.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69263HIGH8.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69262HIGH7.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-20807MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2026-21885MEDIUM6.5
  • NixOSNixOS
  • miniflux
NoYesJan 08, 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