# CVE-2023-22485: cmark-gfm out-of-bounds read in validate_protocol

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- 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.76%, higher than 52% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-01-24T00:26:57.671Z
- Modified: 2026-06-17T05:35:33.767Z
- Weaknesses: CWE-91, CWE-125
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

cmark-gfm is GitHub's fork of cmark, a CommonMark parsing and rendering library and program in C. In versions prior 0.29.0.gfm.7, a crafted markdown document can trigger an out-of-bounds read in the `validate_protocol` function. We believe this bug is harmless in practice, because the out-of-bounds read accesses `malloc` metadata without causing any visible damage.This vulnerability has been patched in 0.29.0.gfm.7.

(As written by CVE List.)

## Affected

- github cmark-gfm: < 0.29.0.gfm.7; before 0.29.0.gfm.7

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://github.com/github/cmark-gfm/security/advisories/GHSA-c944-cv5f-hpvr> (exploit, third-party-advisory)

## Sources

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

---

Page: https://cve.day/CVE-2023-22485 · Whole record: https://cve.day/CVE-2023-22485.json · Rebuilt by cve.day 2026-11-25T22:58:21.708Z
