CVE-2021-40985: Medium severity htmldoc vulnerability

Published Nov 3, 2021
·
Updated

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

Affected Software

3 affected componentsFixes available
debian/htmldoc
1.9.11-4+deb11u31.9.16-11.9.20-1
Htmldoc Project Htmldoc<1.9.12
Debian Debian Linux=9.0

Event History

Nov 3, 2021
CVE Published
via MITRE·04:08 PM
Data Sourced
via MITRE·04:08 PM
Description
Jan 8, 2025
Data Sourced
via Launchpad·04:22 AM
Description
Jan 12, 2025
Data Sourced
via Ubuntu·04:22 AM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-40985?

CVE-2021-40985 is a vulnerability in htmldoc before version 1.9.12 that allows attackers to cause a denial of service via a crafted BMP image.

2

What is the severity of CVE-2021-40985?

The severity of CVE-2021-40985 is medium, with a CVSS score of 5.5.

3

What software is affected by CVE-2021-40985?

The Htmldoc software version up to exclusive version 1.9.12 and Debian Linux version 9.0 are affected by CVE-2021-40985.

4

How can an attacker exploit CVE-2021-40985?

An attacker can exploit CVE-2021-40985 by sending a crafted BMP image to the 'image_load_bmp' function in htmldoc, causing a stack-based buffer under-read and resulting in a denial of service.

5

Are there any references for CVE-2021-40985?

Yes, you can refer to the following links for more information on CVE-2021-40985: [GitHub commit](https://github.com/michaelrsweet/htmldoc/commit/f12b9666e582a8e7b70f11b28e5ffc49ad625d43), [GitHub issue](https://github.com/michaelrsweet/htmldoc/issues/444), [Debian advisory](https://lists.debian.org/debian-lts-announce/2022/02/msg00022.html).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203