CVE-2023-22485 cmark-gfm out-of-bounds read in validate_protocol
MediumCVSS 5.3
EPSS 0.73%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
16 packages: 9 fixed, 7 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/cmark-gfm(Debian 12) | = 0.29.0.gfm.6-6; = 0.29.0.gfm.13-1; = 0.29.0.gfm.13-2; = 0.29.0.gfm.13-3 +4 more | No fix listed | No fix yet |
| debian/python-cmarkgfm(Debian 12) | = 0.8.0-3; = 2024.11.20-1; = 2025.10.22-1; = 2025.10.22-2 +1 more | No fix listed | No fix yet |
| debian/r-cran-commonmark(Debian 12) | = 1.8.1-1; = 1.9.0-1; = 1.9.1-1; = 1.9.2-1 +6 more | No fix listed | No fix yet |
| debian/ruby-commonmarker(Debian 12) | = 0.23.6-1; = 0.23.9-1; = 0.23.10-1; = 2.8.3-1 +7 more | No fix listed | No fix yet |
| ubuntu/cmark-gfm(Ubuntu 22.04) | = 0.29.0.gfm.0-6; = 0.29.0.gfm.2-1; = 0.29.0.gfm.2-1+really.0.29.0.gfm.0ubuntu1; = 0.29.0.gfm.2-2 +2 more | No fix listed | No fix yet |
| ubuntu/cmark-gfm(Ubuntu 24.04) | = 0.29.0.gfm.6-6; = 0.29.0.gfm.6-6build1; All versions | No fix listed | No fix yet |
| ubuntu/cmark-gfm(Ubuntu Pro 20.04) | = 0.28.3.gfm.20-3; = 0.29.0.gfm.0-3; = 0.29.0.gfm.0-4; = 0.29.0.gfm.0-4ubuntu0.1~esm1 +1 more | No fix listed | No fix yet |
| debian/cmark-gfm(Debian 13) | < 0.29.0.gfm.13-1 | 0.29.0.gfm.13-1 | Fixed |
| debian/cmark-gfm(Debian 14) | < 0.29.0.gfm.13-1 | 0.29.0.gfm.13-1 | Fixed |
| debian/python-cmarkgfm(Debian 13) | < 2024.11.20-1 | 2024.11.20-1 | Fixed |
| debian/python-cmarkgfm(Debian 14) | < 2024.11.20-1 | 2024.11.20-1 | Fixed |
| debian/r-cran-commonmark(Debian 13) | < 1.9.0-1 | 1.9.0-1 | Fixed |
| debian/r-cran-commonmark(Debian 14) | < 1.9.0-1 | 1.9.0-1 | Fixed |
| debian/ruby-commonmarker(Debian 13) | < 0.23.10-1 | 0.23.10-1 | Fixed |
| debian/ruby-commonmarker(Debian 14) | < 0.23.10-1 | 0.23.10-1 | Fixed |
| GitHub cmark-gfm | < 0.29.0.gfm.7; = < 0.29.0.gfm.7 | 0.29.0.gfm.7 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/cmark-gfm(Debian:12) | All versions | No fix listed |
| debian/cmark-gfm(Debian:12) | = 0.29.0.gfm.13-1 | No fix listed |
| debian/cmark-gfm(Debian:12) | = 0.29.0.gfm.13-2 | No fix listed |
| debian/cmark-gfm(Debian:12) | = 0.29.0.gfm.13-3 | No fix listed |
| debian/cmark-gfm(Debian:12) | = 0.29.0.gfm.13-4 | No fix listed |
| debian/cmark-gfm(Debian:12) | = 0.29.0.gfm.13-7 | No fix listed |
| debian/cmark-gfm(Debian:12) | = 0.29.0.gfm.13-7.1 | No fix listed |
| debian/cmark-gfm(Debian:12) | = 0.29.0.gfm.6-6 | No fix listed |
| debian/cmark-gfm(Debian:13) | < 0.29.0.gfm.13-1 | 0.29.0.gfm.13-1 |
| debian/cmark-gfm(Debian:14) | < 0.29.0.gfm.13-1 | 0.29.0.gfm.13-1 |
| debian/python-cmarkgfm(Debian:12) | All versions | No fix listed |
| debian/python-cmarkgfm(Debian:12) | = 0.8.0-3 | No fix listed |
| debian/python-cmarkgfm(Debian:12) | = 2024.11.20-1 | No fix listed |
| debian/python-cmarkgfm(Debian:12) | = 2025.10.22-1 | No fix listed |
| debian/python-cmarkgfm(Debian:12) | = 2025.10.22-2 | No fix listed |
| debian/python-cmarkgfm(Debian:13) | < 2024.11.20-1 | 2024.11.20-1 |
| debian/python-cmarkgfm(Debian:14) | < 2024.11.20-1 | 2024.11.20-1 |
| debian/r-cran-commonmark(Debian:12) | All versions | No fix listed |
| debian/r-cran-commonmark(Debian:12) | = 1.8.1-1 | No fix listed |
| debian/r-cran-commonmark(Debian:12) | = 1.9.0-1 | No fix listed |
| debian/r-cran-commonmark(Debian:12) | = 1.9.1-1 | No fix listed |
| debian/r-cran-commonmark(Debian:12) | = 1.9.2-1 | No fix listed |
| debian/r-cran-commonmark(Debian:12) | = 1.9.2-2 | No fix listed |
| debian/r-cran-commonmark(Debian:12) | = 1.9.5-1 | No fix listed |
| debian/r-cran-commonmark(Debian:12) | = 2.0.0-1 | No fix listed |
Show 33 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/r-cran-commonmark(Debian:12) | = 2.0.0-2 | No fix listed |
| debian/r-cran-commonmark(Debian:12) | = 2.0.0-3 | No fix listed |
| debian/r-cran-commonmark(Debian:13) | < 1.9.0-1 | 1.9.0-1 |
| debian/r-cran-commonmark(Debian:14) | < 1.9.0-1 | 1.9.0-1 |
| debian/ruby-commonmarker(Debian:12) | All versions | No fix listed |
| debian/ruby-commonmarker(Debian:12) | = 0.23.10-1 | No fix listed |
| debian/ruby-commonmarker(Debian:12) | = 0.23.6-1 | No fix listed |
| debian/ruby-commonmarker(Debian:12) | = 0.23.9-1 | No fix listed |
| debian/ruby-commonmarker(Debian:12) | = 2.10.0-1 | No fix listed |
| debian/ruby-commonmarker(Debian:12) | = 2.10.0-2 | No fix listed |
| debian/ruby-commonmarker(Debian:12) | = 2.10.1-1 | No fix listed |
| debian/ruby-commonmarker(Debian:12) | = 2.8.3-1 | No fix listed |
| debian/ruby-commonmarker(Debian:12) | = 2.8.3-2 | No fix listed |
| debian/ruby-commonmarker(Debian:12) | = 2.8.3-3 | No fix listed |
| debian/ruby-commonmarker(Debian:12) | = 2.8.3-4 | No fix listed |
| debian/ruby-commonmarker(Debian:13) | < 0.23.10-1 | 0.23.10-1 |
| debian/ruby-commonmarker(Debian:14) | < 0.23.10-1 | 0.23.10-1 |
| GitHub cmark-gfm | = < 0.29.0.gfm.7 | No fix listed |
| ubuntu/cmark-gfm(Ubuntu:22.04) | All versions | No fix listed |
| GitHub cmark-gfm | < 0.29.0.gfm.7 | 0.29.0.gfm.7 |
| ubuntu/cmark-gfm(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/cmark-gfm(Ubuntu:Pro:20.04) | All versions | No fix listed |
| ubuntu/cmark-gfm(Ubuntu:Pro:20.04) | = 0.28.3.gfm.20-3 | No fix listed |
| ubuntu/cmark-gfm(Ubuntu:Pro:20.04) | = 0.29.0.gfm.0-3 | No fix listed |
| ubuntu/cmark-gfm(Ubuntu:Pro:20.04) | = 0.29.0.gfm.0-4 | No fix listed |
| ubuntu/cmark-gfm(Ubuntu:Pro:20.04) | = 0.29.0.gfm.0-4ubuntu0.1~esm1 | No fix listed |
| ubuntu/cmark-gfm(Ubuntu:22.04) | = 0.29.0.gfm.0-6 | No fix listed |
| ubuntu/cmark-gfm(Ubuntu:22.04) | = 0.29.0.gfm.2-1 | No fix listed |
| ubuntu/cmark-gfm(Ubuntu:22.04) | = 0.29.0.gfm.2-1+really.0.29.0.gfm.0ubuntu1 | No fix listed |
| ubuntu/cmark-gfm(Ubuntu:22.04) | = 0.29.0.gfm.2-2 | No fix listed |
| ubuntu/cmark-gfm(Ubuntu:22.04) | = 0.29.0.gfm.3-3 | No fix listed |
| ubuntu/cmark-gfm(Ubuntu:24.04) | = 0.29.0.gfm.6-6 | No fix listed |
| ubuntu/cmark-gfm(Ubuntu:24.04) | = 0.29.0.gfm.6-6build1 | No fix listed |
References
- Debian Security Tracker CVE-2023-22485 vendor-advisory
- https://github.com/github/cmark-gfm/security/advisories/GHSA-c944-cv5f-hpvr exploit issue-tracking third-party-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking
- bugs.debian.org issue-tracking
- bugs.debian.org issue-tracking
- bugs.debian.org issue-tracking
- bugs.debian.org issue-tracking