CVE-2023-24824
published 2023-03-31CVE-2023-24824: 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…
PriorityP336high7.5CVSS 3.1
AVNACLPRNUINSUCNINAH
EPSS
1.03%
59.3th percentile
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 `>` or `-` 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.
Affected
9 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | cmark-gfm | < cmark-gfm 0.29.0.gfm.13-1 (forky) | cmark-gfm 0.29.0.gfm.13-1 (forky) |
| debian | python-cmarkgfm | < cmark-gfm 0.29.0.gfm.13-1 (forky) | cmark-gfm 0.29.0.gfm.13-1 (forky) |
| debian | r-cran-commonmark | < cmark-gfm 0.29.0.gfm.13-1 (forky) | cmark-gfm 0.29.0.gfm.13-1 (forky) |
| debian | ruby-commonmarker | < cmark-gfm 0.29.0.gfm.13-1 (forky) | cmark-gfm 0.29.0.gfm.13-1 (forky) |
| github | cmark-gfm | < 0.29.0.gfm.10 | 0.29.0.gfm.10 |
| github | cmark-gfm | < 0.29.0.gfm.10. | 0.29.0.gfm.10. |
| github | cmark-gfm | >= 0 < 0.29.0.gfm.13-1 | 0.29.0.gfm.13-1 |
| github | cmark-gfm | >= 0 < 0.29.0.gfm.13-1 | 0.29.0.gfm.13-1 |
| github | cmark-gfm | >= 0.1.0 < 0.2.6 | 0.2.6 |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
ghsa7.5HIGH
osv7.5HIGH
vendor_debian5.3MEDIUM
vendor_redhat5.3MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
cmark-gfm: resource exhaustion due to quadratic complexity in parser
osv·2025-12-27
CVE-2023-24824 cmark-gfm: resource exhaustion due to quadratic complexity in parser
cmark-gfm: resource exhaustion due to quadratic complexity in parser
# cmark-gfm: resource exhaustion due to quadratic complexity in parser
*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, due to quadratic complexity issues
when parsing text which leads with either large numbers of `>` or
`-` characters.
The Haskell *cmark-gfm* package bundles the C sources and was
affected by this issue. This fix was released in the upstream C
package at version `0.29.0.gfm.10`. Version `0.2.6` of the Haskell
package adopted the fix (moving from `0.29.0.gfm.6` to
`0.29.0.gfm.13`). Packages that depend on *cmark-gfm* should updat
GHSA
Commonmarker vulnerable to to several quadratic complexity bugs that may lead to denial of service
ghsa·2023-04-11·CVSS 7.5
CVE-2023-24824 [HIGH] Commonmarker vulnerable to to several quadratic complexity bugs that may lead to denial of service
Commonmarker vulnerable to to several quadratic complexity bugs that may lead to denial of service
## Impact
Several quadratic complexity bugs in commonmarker's underlying [`cmark-gfm`](https://github.com/github/cmark-gfm) library may lead to unbounded resource exhaustion and subsequent denial of service.
The following vulnerabilities were addressed:
* [CVE-2023-24824](https://github.com/github/cmark-gfm/security/advisories/GHSA-66g8-4hjf-77xh)
* [CVE-2023-26485](https://github.com/github/cmark-gfm/security/advisories/GHSA-r8vr-c48j-fcc5)
For more information, consult the release notes for version [`0.23.0.gfm.10`](https://github.com/github/cmark-gfm/releases/tag/0.29.0.gfm.10) and [`0.23.0.gfm.11`](https://github.com/github/cmark-gfm/releases/tag/0.29.0.gfm.11).
## Mitigation
Users
OSV
Commonmarker vulnerable to to several quadratic complexity bugs that may lead to denial of service
osv·2023-04-11·CVSS 7.5
CVE-2023-24824 [HIGH] Commonmarker vulnerable to to several quadratic complexity bugs that may lead to denial of service
Commonmarker vulnerable to to several quadratic complexity bugs that may lead to denial of service
## Impact
Several quadratic complexity bugs in commonmarker's underlying [`cmark-gfm`](https://github.com/github/cmark-gfm) library may lead to unbounded resource exhaustion and subsequent denial of service.
The following vulnerabilities were addressed:
* [CVE-2023-24824](https://github.com/github/cmark-gfm/security/advisories/GHSA-66g8-4hjf-77xh)
* [CVE-2023-26485](https://github.com/github/cmark-gfm/security/advisories/GHSA-r8vr-c48j-fcc5)
For more information, consult the release notes for version [`0.23.0.gfm.10`](https://github.com/github/cmark-gfm/releases/tag/0.29.0.gfm.10) and [`0.23.0.gfm.11`](https://github.com/github/cmark-gfm/releases/tag/0.29.0.gfm.11).
## Mitigation
Users
OSV
CVE-2023-24824: cmark-gfm is GitHub's fork of cmark, a CommonMark parsing and rendering library and program in C
osv·2023-03-31·CVSS 7.5
CVE-2023-24824 [HIGH] CVE-2023-24824: cmark-gfm is GitHub's fork of cmark, a CommonMark parsing and rendering library and program in C
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 `>` or `-` 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.
Red Hat
cmark-gfm: Quadratic complexity bugs may lead to a denial of service
vendor_redhat·2023-04-01·CVSS 5.3
CVE-2023-24824 [MEDIUM] CWE-400 cmark-gfm: Quadratic complexity bugs may lead to a denial of service
cmark-gfm: Quadratic complexity bugs may lead to a denial of service
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 `>` or `-` 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.
A flaw was found in CommonMarker. A polynomial time complexity issue in cmark-gfm may lead to unbounded resource exhaustion and subsequent denial of service.
Statement: This vulnerability can cause a potential
Debian
CVE-2023-24824: cmark-gfm - cmark-gfm is GitHub's fork of cmark, a CommonMark parsing and rendering library ...
vendor_debian·2023·CVSS 5.3
CVE-2023-24824 [MEDIUM] CVE-2023-24824: cmark-gfm - cmark-gfm is GitHub's fork of cmark, a CommonMark parsing and rendering library ...
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 `>` or `-` 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.
Scope: local
bookworm: open
bullseye: open
forky: resolved (fixed in 0.29.0.gfm.13-1)
sid: resolved (fixed in 0.29.0.gfm.13-1)
trixie: resolved (fixed in 0.29.0.gfm.13-1)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/github/cmark-gfm/commit/2300c1bd2c8226108885bf019655c4159cf26b59https://github.com/github/cmark-gfm/security/advisories/GHSA-66g8-4hjf-77xhhttps://github.com/github/cmark-gfm/commit/2300c1bd2c8226108885bf019655c4159cf26b59https://github.com/github/cmark-gfm/security/advisories/GHSA-66g8-4hjf-77xh
2023-03-31
Published