CVE-2023-22485
published 2023-01-24CVE-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…
PriorityP426medium5.3CVSS 3.1
AVNACLPRNUINSUCLINAN
EPSS
0.72%
49.4th percentile
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.
Affected
7 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.7 | 0.29.0.gfm.7 |
| 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 |
CVSS provenance
nvdv3.15.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
ghsa7.5HIGH
osv7.5HIGH
vendor_debian5.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
CVE-2023-22485: cmark-gfm is GitHub's fork of cmark, a CommonMark parsing and rendering library and program in C
osv·2023-01-24·CVSS 5.3
CVE-2023-22485 [MEDIUM] CVE-2023-22485: 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. 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.
OSV
Several quadratic complexity bugs may lead to denial of service in Commonmarker
osv·2023-01-24·CVSS 7.5
CVE-2023-22483 [HIGH] Several quadratic complexity bugs may lead to denial of service in Commonmarker
Several quadratic complexity bugs may lead to denial of service in Commonmarker
## 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-22483](https://github.com/github/cmark-gfm/security/advisories/GHSA-29g3-96g3-jg6c)
* [CVE-2023-22484](https://github.com/github/cmark-gfm/security/advisories/GHSA-24f7-9frr-5h2r)
* [CVE-2023-22485](https://github.com/github/cmark-gfm/security/advisories/GHSA-c944-cv5f-hpvr)
* [CVE-2023-22486](https://github.com/github/cmark-gfm/security/advisories/GHSA-r572-jvj2-3m8p)
For more information, consult the release notes for version [`0.23.0.gfm.7`](
GHSA
Several quadratic complexity bugs may lead to denial of service in Commonmarker
ghsa·2023-01-24·CVSS 7.5
CVE-2023-22483 [HIGH] CWE-400 Several quadratic complexity bugs may lead to denial of service in Commonmarker
Several quadratic complexity bugs may lead to denial of service in Commonmarker
## 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-22483](https://github.com/github/cmark-gfm/security/advisories/GHSA-29g3-96g3-jg6c)
* [CVE-2023-22484](https://github.com/github/cmark-gfm/security/advisories/GHSA-24f7-9frr-5h2r)
* [CVE-2023-22485](https://github.com/github/cmark-gfm/security/advisories/GHSA-c944-cv5f-hpvr)
* [CVE-2023-22486](https://github.com/github/cmark-gfm/security/advisories/GHSA-r572-jvj2-3m8p)
For more information, consult the release notes for version [`0.23.0.gfm.7`](
Debian
CVE-2023-22485: cmark-gfm - cmark-gfm is GitHub's fork of cmark, a CommonMark parsing and rendering library ...
vendor_debian·2023·CVSS 5.3
CVE-2023-22485 [MEDIUM] CVE-2023-22485: 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. 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.
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.
2023-01-24
Published