CVE-2021-40985
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.
Affects 2 products across 2 vendors.
Software reads data past the boundary of an allocated buffer, leaking sensitive information or causing crashes.
Mapping is CWE-to-CAPEC per MITRE CAPEC 3.9.
A stack-based buffer under-read vulnerability in htmldoc versions prior to 1.9.12 can be exploited by attackers to cause a denial of service through a specially crafted BMP image.
BSID: BS-2021-GLOBAL-073597-M • Model: /workspace/models/qwen2.5-coder-32b-instruct-bf16 • Confidence: MEDIUM
Is this CVE in your environment?
BreachSpider monitors your ICS/OT environment for vulnerabilities like this one. No agents or network access required. Free to start.
Check My Environment →What is CVE-2021-40985?
What is the CVSS score for CVE-2021-40985?
Is CVE-2021-40985 actively exploited?
How do I remediate CVE-2021-40985?
What systems are affected by CVE-2021-40985?
| CVE ID | CVE-2021-40985 |
|---|---|
| BSID | BS-2021-GLOBAL-073597-M BreachSpider Global ID |
| CVSS Vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| Published | 2021-11-03 |
| Last Modified | 2024-11-21 |
| ICS Relevance | 15% |
| Weakness (CWE) | |
| Source | NVD |
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.
Source: NIST NVD / MITRE CVE Database
The vulnerability exists in the image_load_bmp function of htmldoc, where a crafted BMP image can lead to a stack-based buffer under-read, potentially causing the application to crash or behave unpredictably.
Exploitation Likelihood: MEDIUM
| Vendor | Product | Affected Versions |
|---|---|---|
| Debian | Debian Linux | 9.0 |
| Htmldoc Project | Htmldoc | < 1.9.12 |
No official vendor advisory link on record. See the CVE record →
| CISA known-exploited | Not in KEV catalog |
|---|---|
| Public Exploit | Not confirmed |
| PoC Code | Not confirmed |
AI Enrichment Record — provenance & audit hash
| Model | /workspace/models/qwen2.5-coder-32b-instruct-bf16 |
|---|---|
| Confidence | MEDIUM |
| Enriched At | 2026-05-24 |
| SHA-512 Audit Hash | 023e2f4596c78422da4feb154c0149cf9430a71d6e6555856f279a55c064c6259408346213551eb347e68d17a110a9c47d029c79d6206558499f4a9e091d9ae2 |
ICS/OT Vulnerability Intelligence for Your Environment
BreachSpider tracks 384,000+ CVEs and matches them to your ICS/OT assets by exact version, with AI analysis, NERC CIP mapping, and vendor PSIRT contacts.
Create a free account →