CVE-2024-58382 json
league/commonmark before 2.6.0 Denial of Service via Quadratic Complexity
published 2024-12-09 22 mo ago modified 2026-10-27 12 d ago also EUVD-2024-55755 , GHSA-c2pc-g5qf-rfrf
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 42%
- public exploits
- 0
- none known
Summary
league/commonmark versions before 2.6.0 contain polynomial time complexity vulnerabilities in Markdown parsing that allow attackers to cause denial of service. Attackers can submit carefully crafted Markdown inputs designed to trigger worst-case performance, and sending multiple requests in parallel exhausts CPU resources and PHP-FPM processes.
Patch / fix
- packagist league/commonmark 2.6.0
- thephpleague commonmark 2.6.0
- php-league-commonmark Debian 14, Debian 13 2.6.0-1
debian advisories DEBIAN-CVE-2024-58382
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-58382 updated cvss 7.5
league/commonmark: league/commonmark: Denial of Service vulnerability in Markdown parsing
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 2 mo ago
Exploit prediction
0.49% chance of exploitation in the next 30 days, higher than 42% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 8.7 | 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 | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CNA | 4.0 | 8.7 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | league/commonmark | <2.6.0 |
2.6.0 |
Affected products
- thephpleague commonmark
Classification
- Weakness
-
- CWE-407 Inefficient Algorithmic Complexity
References
-
github.com
/thephpleague/commonmark/security/advisories/GHSA-c2pc-g5qf-rfrf
vendor-advisory, web
-
vulncheck.com
/advisories/league-commonmark-before-2.6.0-denial-of-service-via-quadratic-complexity
third-party-advisory
-
github.com
/github/cmark-gfm/security/advisories/GHSA-24f7-9frr-5h2r
web
-
github.com
/github/cmark-gfm/security/advisories/GHSA-29g3-96g3-jg6c
web
-
github.com
/github/cmark-gfm/security/advisories/GHSA-66g8-4hjf-77xh
web
-
github.com
/github/cmark-gfm/security/advisories/GHSA-r572-jvj2-3m8p
web
-
github.com
/github/cmark-gfm/security/advisories/GHSA-r8vr-c48j-fcc5
web
-
github.com
/github/cmark-gfm/security/advisories/GHSA-w4qg-3vf7-m9x5
web
-
github.com
/commonmark/commonmark.js/issues/129
web
-
github.com
/commonmark/commonmark.js/issues/157
web
-
github.com
/commonmark/commonmark.js/issues/172
web
-
github.com
/thephpleague/commonmark
package
Sources
- CVE List CVE-2024-58382
- GitHub Advisory GHSA-c2pc-g5qf-rfrf
- NVD CVE-2024-58382
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.