CVE-2021-40985: htmldoc - Buffer Overflow
- Cve: CVE-2021-40985
- Name: htmldoc - Buffer Overflow
- 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.
- Impact: Attackers can cause a denial of service by crashing the application through crafted BMP images.
- Remediation: Update to version 1.9.12 or later.
- Vulnerability type: buffer_overflow
- Vulnerability impact: denial_of_service
- Requirement type: user_interaction
- Requirements: Attacker needs to provide a crafted BMP image
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.5
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- Epss score: 0.00937
- Epss percentile: 0.61745
- Assignee: [email protected]
- Published at: 2021-11-03T17:15:08Z
- Age in days: 1847
- Modified at: 2026-06-17T04:07:42Z
- Patch available: yes
- Public exploits total: 1
- References total: 3
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-40985
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-125 | Out-of-bounds Read |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/michaelrsweet/htmldoc/issues/444 | nvd | 2021-11-03 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/michaelrsweet/htmldoc/commit/f12b9666e582a8e7b70f11b28e5ffc49ad625d43 | Patch, Third Party Advisory |
| https://github.com/michaelrsweet/htmldoc/issues/444 | Exploit, Issue Tracking, Patch, Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2022/02/msg00022.html | Mailing List, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| htmldoc_project:htmldoc | < 1.9.12 | no | nvd | /v1/products/htmldoc_project/htmldoc |
| debian:debian_linux | = 9.0 | no | nvd | /v1/products/debian/debian_linux |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| michaelrsweet/htmldoc | commit, issues | yes | /v1/repositories/michaelrsweet/htmldoc |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2021-11-03
- Exposed hosts: 4739835
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports