Skip to main content
Public proof of conceptFix available

CVE-2023-22485

A public proof of concept exists; no exploitation attested.

  • Published2023-01-24
  • Fixed in0.29.0.gfm.7
  • WeaknessCWE-125 · CWE-91

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2023-01-2401:15CVE publishedNVD

Versions per branch

NVD
Github cmark-gfm
BranchAffectedFixed in
0.29< 0.29.0.gfm.70.29.0.gfm.7

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • github cmark-gfm
    Affected
    • = < 0.29.0.gfm.7no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2023-01-24

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • cmark-gfmUbuntu:Pro:20.04:LTSall versions · no fixed version listed
  • cmark-gfmUbuntu:24.04:LTSall versions · no fixed version listed
  • cmark-gfmUbuntu:22.04:LTSall versions · no fixed version listed
  • cmark-gfmDebian:14all versions · fixed in 0.29.0.gfm.13-1
  • cmark-gfmDebian:13all versions · fixed in 0.29.0.gfm.13-1
  • cmark-gfmDebian:12all versions · no fixed version listedand 3 other packages
  • python-cmarkgfmDebian:14all versions · fixed in 2024.11.20-1
  • python-cmarkgfmDebian:13all versions · fixed in 2024.11.20-1

4 more package ranges on OSV.dev

Vendor advisories

Full record on NVD

Fix

  1. Update Github cmark-gfm to 0.29.0.gfm.7

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionpoc2025-03-10
  • CNACVSS 3.15.3known since 2026-10-23
  • NVDCVSS 3.15.3read 2026-10-23
  • CNAweakness (CWE)CWE-125known since 2026-10-23
  • NVDweakness (CWE)CWE-91read 2026-10-23
  • FIRST EPSSEPSS score0.7 %2026-11-18
  • OSVaffected packages—

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Published
2023-01-24
Last Modified
2026-06-17
NVD status
Modified

Frequently asked questions

What is CVE-2023-22485?

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.

Is CVE-2023-22485 actively exploited?

A proof-of-concept exploit exists for CVE-2023-22485, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2023-22485?

CVE-2023-22485 has a CVSS v3 base score of 5.3 (MEDIUM severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.

Running commonmark? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record