# CVE-2022-0137: A heap buffer overflow in imagesetmask function of HTMLDOC before 1.9.15 allows an attacker to write outside the buffer boundaries.

- Severity: High 7.5 (CVSS:3.1, scored by fedora) `CVSS:3.1/AV:N/AC:H/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): 0.70%, higher than 54% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-11-14T17:01:45.131Z
- Modified: 2026-06-17T04:20:02.040Z
- Weaknesses: CWE-119, CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: fedora

## Description

A heap buffer overflow in image_set_mask function of HTMLDOC before 1.9.15 allows an attacker to write outside the buffer boundaries.

(As written by CVE List.)

## Affected

- michaelrsweet htmldoc: 1.9.14 (not affected: 1.9.15)
- htmldoc_project htmldoc: before 1.9.15

## Every score

- fedora: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://github.com/michaelrsweet/htmldoc/issues/461> (exploit, issue-tracking, patch, third-party-advisory)
- <https://github.com/michaelrsweet/htmldoc/commit/71fe87878c9cbc3db429f5e5c70f28e4b3d96e3b> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2022-0137](https://www.cve.org/CVERecord?id=CVE-2022-0137), CVE Terms of Use, modified 2025-04-25
- NVD: [CVE-2022-0137](https://nvd.nist.gov/vuln/detail/CVE-2022-0137), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-0137 · Whole record: https://cve.day/CVE-2022-0137.json · Rebuilt by cve.day 2026-11-25T22:58:16.446Z
