What’s Vulnerable › Vulnerabilities
CVE-2021-40985
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.9% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-11-03 · updated 2026-06-17
- Weakness: CWE-125
Description
A stack-based buffer under-read in htmldoc before 1.9.12, allows attackers to cause a denial of service via a crafted BMP image to image_load_bmp.
Affected products
- Debian Linux: 9.0
- htmldoc: before 1.9.12 — fixed in 1.9.12
How to fix
Upgrade to a fixed version: htmldoc 1.9.12. Check the vendor advisory for mitigations.
References
- https://github.com/michaelrsweet/htmldoc/commit/f12b9666e582a8e7b70f11b28e5ffc49ad625d43
- https://github.com/michaelrsweet/htmldoc/issues/444
- https://lists.debian.org/debian-lts-announce/2022/02/msg00022.html
- https://github.com/michaelrsweet/htmldoc/commit/f12b9666e582a8e7b70f11b28e5ffc49ad625d43
- https://github.com/michaelrsweet/htmldoc/issues/444
- https://lists.debian.org/debian-lts-announce/2022/02/msg00022.html
Get alerted when CVE-2021-40985 or the next vulnerability affects your stack