CVE-2024-58382: Inefficient Algorithmic Complexity in thephpleague commonmark
Affects thephpleague commonmarkSource CVE Database V5
Not known to be exploited · CVSS 8.7 High · fixed in 2.6.0 : patch thephpleague commonmark soon.
Data as of 10/25/2026, 04:40:09 UTC
- Exploitation
Not in CISA KEV, no exploitation reported
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 19% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.6.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:NWhat to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| thephpleaguecommonmark | Affected
| Fixed in
|
Packagistleague/commonmarkpkg:composer/league/commonmarkOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in version 2.6.0. Users should upgrade to version 2.6.0 or later to remediate this vulnerability. No vendor advisory content was provided, so patch status is inferred from the version information. Patch status is confirmed by the version range indicating affected versions are prior to 2.6.0.
Description
CVE-2024-58382 is a high-severity vulnerability in thephpleague commonmark versions before 2.6.0. It involves inefficient algorithmic complexity in Markdown parsing, allowing attackers to cause denial of service by submitting specially crafted Markdown inputs that trigger worst-case polynomial time performance. This can exhaust CPU resources and PHP-FPM processes when multiple requests are sent in parallel.
Impact
Successful exploitation results in denial of service by exhausting CPU resources and PHP-FPM processes, potentially disrupting availability of applications using affected versions of thephpleague commonmark.