# CVE-2021-23180: A flaw was found in htmldoc in v1.9.12 and before.

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.35%, higher than 72% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-03-02T22:29:49.000Z
- Modified: 2026-06-17T03:38:23.573Z
- Weaknesses: CWE-476
- Assigned by: redhat

## Description

A flaw was found in htmldoc in v1.9.12 and before. Null pointer dereference in file_extension(),in file.c may lead to execute arbitrary code and denial of service.

(As written by CVE List.)

## Affected

- htmldoc: Fixed in htmldoc v1.9.12 and above.
- htmldoc_project htmldoc: up to 1.9.12

## Every score

- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/michaelrsweet/htmldoc/issues/418> (exploit, issue-tracking, third-party-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=1967041> (issue-tracking, patch, third-party-advisory)
- <https://ubuntu.com/security/CVE-2021-23180> (third-party-advisory)
- <https://github.com/michaelrsweet/htmldoc/commit/19c582fb32eac74b57e155cffbb529377a9e751a> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2021-23180](https://www.cve.org/CVERecord?id=CVE-2021-23180), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-23180](https://nvd.nist.gov/vuln/detail/CVE-2021-23180), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-23180 · Whole record: https://cve.day/CVE-2021-23180.json · Rebuilt by cve.day 2026-11-25T22:58:07.098Z
