cve.bz

CVE-2023-26485 github cmark-gfm: Uncontrolled Resource Consumption

7.5 highExploit referenceEPSS 1.0%Fix available

High (7.5) in github cmark-gfm. EPSS 1.0% estimated probability of exploitation activity in the next 30 days.

On this page
cmark-gfm is GitHub's fork of cmark, a CommonMark parsing and rendering library and program in C. A polynomial time complexity issue in cmark-gfm may lead to unbounded resource exhaustion and subsequent denial of service. This CVE covers quadratic complexity issues when parsing text which leads with either large numbers of `_` characters. This issue has been addressed in version 0.29.0.gfm.10. Users are advised to upgrade. Users unable to upgrade should validate that their input comes from trusted sources. ### Impact A polynomial time complexity issue in cmark-gfm may lead to unbounded resource exhaustion and subsequent denial of service. ### Proof of concept ``` $ ~/cmark-gfm$ python3 -c 'pad = "_" * 100000; print(pad + "." + pad, end="")' | time ./build/src/cmark-gfm --to plaintext ``` Increasing the number 10000 in the above commands causes the running time to increase quadratically. ### Patches This vulnerability have been patched in 0.29.0.gfm.10. ### Note on cmark and cmark-gfm XXX: TBD [cmark-gfm](https://github.com/github/cmark-gfm) is a fork of [cmark](https://github.com/commonmark/cmark) that adds the GitHub Flavored Markdown extensions. The two codebases have diverged over time, but share a common core. These bugs affect both `cmark` and `cmark-gfm`. ### Credit We would like to thank @gravypod for reporting this vulnerability. ### References https://en.wikipedia.org/wiki/Time_complexity ### For more information If you have any questions or comments about this advisory: * Open an issue in [github/cmark-gfm](https://github.com/github/cmark-gfm)

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.0% (unchanged from 1.0% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 65th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2025-02-11. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-400 Uncontrolled Resource Consumption
CWE-407 Inefficient Algorithmic Complexity
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-26485 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-26485?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-26485?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-26485 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
github:cmark-gfmbefore 0.29.0.gfm.10

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12cmark-gfm, python-cmarkgfm, r-cran-commonmark and 1 moreno fix listedDEBIAN-CVE-2023-26485
Debian13, 14cmark-gfm0.29.0.gfm.13-1DEBIAN-CVE-2023-26485
Debian13, 14python-cmarkgfm2024.11.20-1DEBIAN-CVE-2023-26485
Debian13, 14r-cran-commonmark1.9.1-1DEBIAN-CVE-2023-26485
Debian13, 14ruby-commonmarker0.23.10-1DEBIAN-CVE-2023-26485
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTS and 4 morecmarkno fix listedUBUNTU-CVE-2023-26485
UbuntuPro:20.04:LTScmark-gfm0.29.0.gfm.0-4ubuntu0.1~esm1UBUNTU-CVE-2023-26485 USN-7319-1
UbuntuPro:22.04:LTScmark-gfm0.29.0.gfm.3-3ubuntu0.1~esm1UBUNTU-CVE-2023-26485 USN-7319-1
UbuntuPro:24.04:LTScmark-gfm0.29.0.gfm.6-6ubuntu0.24.04.1~esm1UBUNTU-CVE-2023-26485 USN-7319-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat 3scale API Management Platform 2commonmarkerAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-26485.

Attack patterns (CAPEC)

  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON