Vulnerability DatabaseGHSA-48wp-p9qv-4j64

GHSA-48wp-p9qv-4j64
Ruby vulnerability analysis and mitigation

Overview

Several quadratic complexity bugs were discovered in Commonmarker's underlying cmark-gfm library that could lead to unbounded resource exhaustion and subsequent denial of service. The vulnerability affects Commonmarker versions below 0.23.9 and was disclosed on April 11, 2023. The issue encompasses two CVEs (CVE-2023-24824 and CVE-2023-26485) related to polynomial time complexity issues (GitHub Advisory).

Technical details

The vulnerability involves multiple quadratic complexity issues in the cmark-gfm library. Two specific proof-of-concept examples demonstrate the issues: 1) Using the pattern '>' followed by 'a*' repeated n times, and 2) Using the pattern ' -' repeated n times followed by 'x' and newlines. In both cases, increasing the input size causes the running time to increase quadratically. The issues affect various output formats including plaintext, commonmark, XML, and man page formats (GHSA-66g8-4hjf-77xh, GHSA-r8vr-c48j-fcc5).

Impact

The vulnerability can lead to unbounded resource exhaustion and subsequent denial of service when processing specially crafted markdown input. The quadratic complexity issues can cause significant performance degradation when processing large inputs, potentially affecting system resources and availability (GitHub Advisory).

Mitigation and workarounds

Users are advised to upgrade to Commonmarker version 0.23.9, which includes patches for these vulnerabilities. The fixes were implemented in the underlying cmark-gfm library versions 0.29.0.gfm.10 and 0.29.0.gfm.11 (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66568CRITICAL9.3
  • RubyRuby
  • ruby-saml
NoYesDec 09, 2025
CVE-2025-66567CRITICAL9.3
  • RubyRuby
  • ruby-saml
NoYesDec 09, 2025
GHSA-4249-gjr8-jpq3HIGH8.7
  • RubyRuby
  • prosemirror_to_html
NoYesNov 13, 2025
CVE-2025-64501HIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 10, 2025
CVE-2025-61594MEDIUMN/A
  • RubyRuby
  • ruby-doc
NoYesDec 11, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management