Denial of Service Vulnerability in Commonmarker

commonmarker Updated 02 Oct 2025

Summary

24/01/2023
MODERATE
Yes i
Moderate
Not published

GHSA-636f-xm5j-pj9m: Several quadratic complexity bugs may lead to denial of service in Commonmarker. Affects commonmarker versions < 0.23.7. Fixed in 0.23.7. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Commonmarker is a RubyGem package that provides a Markdown parser and renderer. It is commonly used in Ruby applications to parse and render Markdown content. However, several quadratic complexity bugs have been discovered in the underlying cmark-gfm library, which is used by Commonmarker. These bugs can lead to unbounded resource exhaustion and subsequent denial of service.

Vulnerability Detail

The quadratic complexity bugs in cmark-gfm library can be exploited by an attacker to cause a denial of service. By crafting specially crafted Markdown content, an attacker can trigger the quadratic complexity behavior, causing the parser to consume excessive resources and potentially crash the application. This vulnerability has been assigned several CVE identifiers: CVE-2023-22483, CVE-2023-22484, CVE-2023-22485, and CVE-2023-22486.

How To Fix

Minimum fixed version

0.23.7

This is the first release that contains the fix.

gem install commonmarker -v 0.23.7

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is recommended to upgrade to the fixed version of Commonmarker as soon as possible.

Conclusion

In conclusion, the Commonmarker RubyGem is vulnerable to denial of service attacks due to quadratic complexity bugs in the underlying cmark-gfm library. It is crucial to upgrade to version 0.23.7 of Commonmarker to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for commonmarker →

Share this vulnerability

FAQ

Commonmarker is a RubyGem package that provides a Markdown parser and renderer. It is commonly used in Ruby applications to parse and render Markdown content.

The vulnerability can lead to denial of service, as an attacker can craft malicious Markdown content to trigger the quadratic complexity bugs and consume excessive resources.

To fix this vulnerability, you should upgrade to version 0.23.7 of the Commonmarker RubyGem.

There is no known workaround for this vulnerability. It is recommended to upgrade to the fixed version of Commonmarker.

There are no known exploits for this vulnerability at the moment.

Related vulnerabilities

Recent vulnerabilities recorded for commonmarker.

How To Fix

Minimum fixed version

0.23.7

This is the first release that contains the fix.

gem install commonmarker -v 0.23.7

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback