CVE-2023-22485: github cmark-gfm Out-of-bounds Read
Vulnerability summary
CVE-2023-22485 is a medium (CVSS 5.3) Out-of-bounds Read vulnerability in github cmark-gfm. EPSS estimates a 0.72% chance of exploitation in the next 30 days, higher than 53.4% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 24-01-2023PublishedVulnerability first disclosed.
- 10-03-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- OSV · DebianEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- NVDNIST5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
EPSS trend
Probability
0.72%
Chance of exploitation in the next 30 days
Percentile
53%
Versus all other CVEs
30-day change
0.00 pp
From 0.72% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundCmark Gfm
Maturity: poc
Weaknesses
CWE · root cause- CWE-125Out-of-bounds ReadThe product reads data past the end, or before the beginning, of the intended buffer.
- CWE-91XML Injection (aka Blind XPath Injection)The product does not properly neutralize special elements that are used in XML, allowing attackers to modify the syntax, content, or commands of the XML before it is processed by an end system.
Affected systems
Debian4 products
- cmark-gfmAll versions (No fix recorded) | < 0.29.0.gfm.13-1
- python-cmarkgfmAll versions (No fix recorded) | < 2024.11.20-1
- r-cran-commonmarkAll versions (No fix recorded) | < 1.9.0-1
- ruby-commonmarkerAll versions (No fix recorded) | < 0.23.10-1
Github1 product
- cmark-gfm< 0.29.0.gfm.7
Ubuntu1 product
- cmark-gfmAll versions (No fix recorded)
3 vendors · 6 products
References
4 links- github.com/github/cmark-gfm/security/advisories/GHSA-c944-cv5f-hpvrX Refsource CONFIRMREPORTExploitThird Party Advisory