Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. league/commonmark
  4. ›
  5. GHSA-c2pc-g5qf-rfrf

GHSA-c2pc-g5qf-rfrf: league/commonmark's quadratic complexity bugs may lead to a denial of service

December 9, 2024

Several polynomial time complexity issues in league/commonmark may lead to unbounded resource exhaustion and subsequent denial of service.

Malicious users could trigger that inefficient code with carefully crafted Markdown inputs that are specifically designed to ensure the worst-case performance is reached. Sending multiple such requests in parallel could tie up all available CPU resources and/or PHP-FPM processes, leading to denial of service for legitimate users.

References

  • github.com/advisories/GHSA-c2pc-g5qf-rfrf
  • github.com/commonmark/commonmark.js/issues/129
  • github.com/commonmark/commonmark.js/issues/157
  • github.com/commonmark/commonmark.js/issues/172
  • github.com/github/cmark-gfm/security/advisories/GHSA-24f7-9frr-5h2r
  • github.com/github/cmark-gfm/security/advisories/GHSA-29g3-96g3-jg6c
  • github.com/github/cmark-gfm/security/advisories/GHSA-66g8-4hjf-77xh
  • github.com/github/cmark-gfm/security/advisories/GHSA-r572-jvj2-3m8p
  • github.com/github/cmark-gfm/security/advisories/GHSA-r8vr-c48j-fcc5
  • github.com/github/cmark-gfm/security/advisories/GHSA-w4qg-3vf7-m9x5
  • github.com/thephpleague/commonmark
  • github.com/thephpleague/commonmark/security/advisories/GHSA-c2pc-g5qf-rfrf

Code Behaviors & Features

Detect and mitigate GHSA-c2pc-g5qf-rfrf with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.6.0

Fixed versions

  • 2.6.0

Solution

Upgrade to version 2.6.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-407: Inefficient Algorithmic Complexity

Source file

packagist/league/commonmark/GHSA-c2pc-g5qf-rfrf.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 00:14:25 +0000.