Advisory record · GHSA-c2pc-g5qf-rfrf

league/commonmark's quadratic complexity bugs may lead to a denial of service

CVSS 8.7 HighEPSS 0.0049 · 42nd percentile

Published by the GitHub Advisory Database at 9 Dec 2024, 20:42 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
league/commonmarkPackagist<2.6.02.6.0
Identifiers
GHSA-c2pc-g5qf-rfrf · CVE-2024-58382 · PKSA-fndg-qryc-dyc9
Weakness (CWE)
CWE-407
Published
9 Dec 2024
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

League/commonmark, a PHP Markdown parser, is vulnerable in versions before 2.6.0 because of several polynomial-time complexity issues. An attacker can send specially crafted Markdown input to trigger worst-case processing, and many parallel requests could exhaust CPU and PHP-FPM processes, causing denial of service. Upgrade to version 2.6.0 or later; if that is not possible, the source suggests lowering PHP memory_limit and max_execution_time, rate-limiting requests, and limiting input line length.

Written 31 Oct 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
8.7 High 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N CNA (VulnCheck)
  • CISA KEV Not listed.
  • EPSS 0.0049, the 42nd percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 7 Dec 2024, 15:36 UTC Published by the maintainers as a GitHub repository advisory
  2. 31 Oct 2026, 13:56 UTC First seen by agentprime
  3. 31 Oct 2026, 13:56 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.