Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS04aHFmLXhqd3AtcDY3ds4AAyXm
Comrak vulnerable to quadratic runtime issues when parsing Markdown (GHSL-2023-047)
Impact
A range of quadratic parsing issues from cmark
/cmark-gfm
are also present in Comrak. These can be used to craft denial-of-service attacks on services that use Comrak to parse Markdown.
Patches
0.17.0 contains fixes to known quadratic parsing issues.
Workarounds
n/a
References
- https://github.com/commonmark/cmark/issues/255
- https://github.com/commonmark/cmark/issues/389
- https://github.com/commonmark/cmark/issues/373
- https://github.com/commonmark/cmark/issues/299
- https://github.com/commonmark/cmark/issues/388
- https://github.com/commonmark/cmark/issues/284
- https://github.com/commonmark/cmark/issues/218
- https://github.com/commonmark/cmark/pull/232
- https://github.com/github/cmark-gfm/blob/c32ef78bae851cb83b7ad52d0fbff880acdcd44a/test/pathological_tests.py#L63-L65
- https://github.com/github/cmark-gfm/blob/c32ef78bae851cb83b7ad52d0fbff880acdcd44a/test/pathological_tests.py#L87-L89
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS04aHFmLXhqd3AtcDY3ds4AAyXm
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: about 1 year ago
Updated: about 1 year ago
CVSS Score: 5.3
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Identifiers: GHSA-8hqf-xjwp-p67v, CVE-2023-28626
References:
- https://github.com/kivikakk/comrak/security/advisories/GHSA-8hqf-xjwp-p67v
- https://github.com/commonmark/cmark/issues/218
- https://github.com/commonmark/cmark/issues/255
- https://github.com/commonmark/cmark/issues/284
- https://github.com/commonmark/cmark/issues/299
- https://github.com/commonmark/cmark/issues/373
- https://github.com/commonmark/cmark/issues/388
- https://github.com/commonmark/cmark/issues/389
- https://github.com/commonmark/cmark/pull/232
- https://github.com/kivikakk/comrak/commit/ce795b7f471b01589f842dc09af38b025701178d
- https://github.com/github/cmark-gfm/blob/c32ef78bae851cb83b7ad52d0fbff880acdcd44a/test/pathological_tests.py#L63-L65
- https://github.com/github/cmark-gfm/blob/c32ef78bae851cb83b7ad52d0fbff880acdcd44a/test/pathological_tests.py#L87-L89
- https://github.com/kivikakk/comrak/releases/tag/0.17.0
- https://nvd.nist.gov/vuln/detail/CVE-2023-28626
- https://lists.fedoraproject.org/archives/list/[email protected]/message/OUYME2VA555X6567H7ORIJQFN4BVGT6N/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/PTWZWCT7KCX2KTXTLPUYZ3EHOONG4X46/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/VQ3UBC7LE4VPCMZBTADIBL353CH7CPVV/
- https://github.com/advisories/GHSA-8hqf-xjwp-p67v
Blast Radius: 14.5
Affected Packages
cargo:comrak
Dependent packages: 107Dependent repositories: 541
Downloads: 1,152,477 total
Affected Version Ranges: < 0.17.0
Fixed in: 0.17.0
All affected versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6, 0.2.7, 0.2.8, 0.2.9, 0.2.10, 0.2.11, 0.2.12, 0.2.13, 0.2.14, 0.3.0, 0.3.1, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.5.0, 0.5.1, 0.6.0, 0.6.1, 0.6.2, 0.7.0, 0.7.1, 0.8.0, 0.8.1, 0.8.2, 0.9.0, 0.9.1, 0.10.0, 0.10.1, 0.11.0, 0.12.0, 0.12.1, 0.13.0, 0.13.1, 0.13.2, 0.14.0, 0.15.0, 0.16.0
All unaffected versions: 0.17.0, 0.17.1, 0.18.0, 0.19.0, 0.20.0, 0.21.0, 0.22.0, 0.23.0