{"id":"CVE-2021-40985","details":"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.","modified":"2026-08-18T15:02:11.911389Z","published":"2021-11-03T17:15:08.387Z","related":["SUSE-SU-2021:14869-1","openSUSE-SU-2024:11611-1"],"database_specific":{"unresolved_ranges":[{"extracted_events":[{"introduced":"9.0"},{"last_affected":"9.0"}],"source":"CPE_STRING","vendor_product":"debian:debian_linux","cpes":["cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"]}]},"references":[{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2022/02/msg00022.html"},{"type":"FIX","url":"https://github.com/michaelrsweet/htmldoc/commit/f12b9666e582a8e7b70f11b28e5ffc49ad625d43"},{"type":"FIX","url":"https://github.com/michaelrsweet/htmldoc/issues/444"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/michaelrsweet/htmldoc","events":[{"introduced":"0"},{"fixed":"df5d3010151a506c5ca138548aac02b37fb421f9"},{"fixed":"f12b9666e582a8e7b70f11b28e5ffc49ad625d43"}],"database_specific":{"cpe":"cpe:2.3:a:htmldoc_project:htmldoc:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"1.9.12"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["v1.9.12","v1.9.11","v1.9.10","v1.9.9","v1.9.8","v1.9.7","v1.9.6","v1.9.5","v1.9.4","v1.9.3","v1.9.2","v1.9.1","v1.9","v1.8.30"],"database_specific":{"vanir_signatures":[{"id":"CVE-2021-40985-5711492f","signature_type":"Function","signature_version":"v1","source":"https://github.com/michaelrsweet/htmldoc/commit/f12b9666e582a8e7b70f11b28e5ffc49ad625d43","target":{"file":"htmldoc/image.cxx","function":"image_load_bmp"},"deprecated":false,"digest":{"function_hash":"235288188373485764838552579787458681969","length":4196}},{"signature_version":"v1","source":"https://github.com/michaelrsweet/htmldoc/commit/f12b9666e582a8e7b70f11b28e5ffc49ad625d43","target":{"file":"htmldoc/image.cxx"},"deprecated":false,"digest":{"line_hashes":["257141514835789531580371397587660108400","283175293527098262048020954610039308665","183847361107666746679610264155092227619","70669642789662802104105858184899219014","168806463103019594349885454995563723793","78063532877380292851353647147807482642","23937941108991224855156320071632840118","79038696367307572280894279184605094182","252027508351634483800230415675881158328","111665357732966115136306573663186122285","269559370259603800226433636181528946091"],"threshold":0.9},"id":"CVE-2021-40985-cf967adb","signature_type":"Line"}],"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-40985.json","vanir_signatures_modified":"2026-08-18T15:02:11Z"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"}]}