CVE & CISA-KEV Catalog

CVE-2023-26485

MEDIUM
5.3
CVSS v3
NVD

Description

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 is a fork of 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

How to fix

Remediation Available
cmark-gfmDebian
Fixed in:0.29.0.gfm.13-1CVE-2023-26485
Fixed in:0.29.0.gfm.13-1CVE-2023-26485
cmark-gfmUbuntu
Fixed in:0.29.0.gfm.0-4ubuntu0.1~esm1USN-7319-1
Fixed in:0.29.0.gfm.3-3ubuntu0.1~esm1USN-7319-1
Fixed in:0.29.0.gfm.6-6ubuntu0.24.04.1~esm1USN-7319-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityLow

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Exploit Intelligence

1.03%probability of exploitation in 30 days
59thpercentile

Moderate risk: more likely to be exploited than 59% of all known CVEs.

References

Exploit1
Embed a live status badge for CVE-2023-26485
CVE-2023-26485 severity badge

Markdown

[![CVE-2023-26485](https://tridentstack.com/cve/badge/CVE-2023-26485.svg)](https://tridentstack.com/cve/CVE-2023-26485)

HTML

<a href="https://tridentstack.com/cve/CVE-2023-26485"><img src="https://tridentstack.com/cve/badge/CVE-2023-26485.svg" alt="CVE-2023-26485"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.