5.3medium
cmark-gfm out-of-bounds read in validate_protocol
- Severity
- 5.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.76% (higher than 52% of CVEs)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| github cmark-gfm | < 0.29.0.gfm.7, before 0.29.0.gfm.7 | CVE List, NVD |
All scores
| GitHub_M | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Classification
What each source says
CVE List
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.
NVD (es)
cmmark-gfm es la bifurcación de GitHub de cmark, una librería y programa de análisis y representación de CommonMark en C. En versiones anteriores a la 0.29.0.gfm.7, un documento de rebajas manipulado puede desencadenar una lectura fuera de los límites en la función `validate_protocol` . Creemos que este error es inofensivo en la práctica, porque la lectura fuera de los límites accede a los metadatos "malloc" sin causar ningún daño visible. Esta vulnerabilidad ha sido parcheada en 0.29.0.gfm.7.
References
| https://github.com/github/cmark-gfm/security/advisories/GHSA-c944-cv5f-hpvr | exploit, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-22485 changed 2025-03-10 | CVE Terms of Use |
| NVD | CVE-2023-22485 changed 2026-06-17 | Public domain |