# CVE-2021-40647: In man2html 1.6g, a specific string being read in from a file will overwrite the size parameter in the top chunk of the heap.

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/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.34%, higher than 28% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-09-09T17:57:28.000Z
- Modified: 2026-06-17T04:07:12.840Z
- Weaknesses: CWE-787
- Assigned by: mitre

## Description

In man2html 1.6g, a specific string being read in from a file will overwrite the size parameter in the top chunk of the heap. This at least causes the program to segmentation abort if the heap size parameter isn't aligned correctly. In version before GLIBC version 2.29 and aligned correctly, it allows arbitrary write anywhere in the programs memory.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- man2html_project man2html: 1.6g

## References

- <https://gist.github.com/untaman/cb58123fe89fc65e3984165db5d40933> (exploit, third-party-advisory)

## Sources

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

---

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