CVEfocus › CVE database › CVE-2023-22486

CVE-2023-22486cmark-gfm Quadratic complexity bug in handle_close_bracket may lead to a denial of service

CVSS 3.5 LowEPSS 1.0% (higher than 62% of CVEs)Published 2023-01-24Updated 2025-03-10Assigner: GitHub_M

cmark-gfm is GitHub's fork of cmark, a CommonMark parsing and rendering library and program in C. Versions prior to 0.29.0.gfm.7 contain a polynomial time complexity issue in handle_close_bracket that may lead to unbounded resource exhaustion and subsequent denial of service. This vulnerability has been patched in 0.29.0.gfm.7.

CWE-400CWE-407

What to do

Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

16Fixed
8Fix pending
3Under investigation
3Will not fix
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10cmarkFix pendingUBUNTU-CVE-2023-22486
Ubuntu 26.04cmarkUnder investigationUBUNTU-CVE-2023-22486
Ubuntu 26.04cmark-gfmNot affected
vulnerable_code_not_present
Ubuntu 25.10cmarkWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2023-22486
Ubuntu 25.10cmark-gfmNot affected
vulnerable_code_not_present
Ubuntu 24.04cmarkUnder investigationUBUNTU-CVE-2023-22486
Ubuntu 24.04cmark-gfmFix pending0.29.0.gfm.6-6ubuntu0.24.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2023-22486
Ubuntu 22.04cmarkUnder investigationUBUNTU-CVE-2023-22486
Ubuntu 22.04cmark-gfmFix pending0.29.0.gfm.3-3ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2023-22486
Ubuntu 20.04cmarkWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2023-22486
Ubuntu 20.04cmark-gfmFix pending0.29.0.gfm.0-4ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2023-22486
Ubuntu 18.04cmarkWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2023-22486
Debian 14cmark-gfmFixed0.29.0.gfm.13-1DEBIAN-CVE-2023-22486
Debian 14python-cmarkgfmFixed2024.11.20-1DEBIAN-CVE-2023-22486
Debian 14r-cran-commonmarkFixed1.9.0-1DEBIAN-CVE-2023-22486
Debian 14ruby-commonmarkerFixed0.23.10-1DEBIAN-CVE-2023-22486
Debian 13cmark-gfmFixed0.29.0.gfm.13-1DEBIAN-CVE-2023-22486
Debian 13python-cmarkgfmFixed2024.11.20-1DEBIAN-CVE-2023-22486
Debian 13r-cran-commonmarkFixed1.9.0-1DEBIAN-CVE-2023-22486
Debian 13ruby-commonmarkerFixed0.23.10-1DEBIAN-CVE-2023-22486
Debian 12cmark-gfmFix pendingDEBIAN-CVE-2023-22486
Debian 12python-cmarkgfmFix pendingDEBIAN-CVE-2023-22486
Debian 12r-cran-commonmarkFix pendingDEBIAN-CVE-2023-22486
Debian 12ruby-commonmarkerFix pendingDEBIAN-CVE-2023-22486
Alpine Linux 3.24cmarkFixed0.30.3-r0ALPINE-CVE-2023-22486
Alpine Linux 3.23cmarkFixed0.30.3-r0ALPINE-CVE-2023-22486
Alpine Linux 3.22cmarkFixed0.30.3-r0ALPINE-CVE-2023-22486
Alpine Linux 3.21cmarkFixed0.30.3-r0ALPINE-CVE-2023-22486
Alpine Linux 3.20cmarkFixed0.30.3-r0ALPINE-CVE-2023-22486
Alpine Linux 3.19cmarkFixed0.30.3-r0ALPINE-CVE-2023-22486
Alpine Linux 3.18cmarkFixed0.30.3-r0ALPINE-CVE-2023-22486
Alpine Linux 3.17cmarkFixed0.30.3-r0ALPINE-CVE-2023-22486

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.