CVE-2024-58382
HIGH 8.7CVSS 4.0league/commonmark's quadratic complexity bugs may lead to a denial of service
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.
- Published
- 9 Sep 2026
- Last modified
- 27 Oct 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Deferred
- Weakness
- CWE-407
- Also known as
- GHSA-c2pc-g5qf-rfrf
- Sources
- NVDJSONOSV GHSA-c2pc-g5qf-rfrfJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | HIGH 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 |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Packagist | league/commonmark | < 2.6.0 | 2.6.0 |
References
- https://github.com/thephpleague/commonmark/security/advisories/GHSA-c2pc-g5qf-rfrf · WEB
- https://www.vulncheck.com/advisories/league-commonmark-before-2.6.0-denial-of-service-via-quadratic-complexity
- https://github.com/github/cmark-gfm/security/advisories/GHSA-24f7-9frr-5h2r · WEB
- https://github.com/github/cmark-gfm/security/advisories/GHSA-29g3-96g3-jg6c · WEB
- https://github.com/github/cmark-gfm/security/advisories/GHSA-66g8-4hjf-77xh · WEB
- https://github.com/github/cmark-gfm/security/advisories/GHSA-r572-jvj2-3m8p · WEB
- https://github.com/github/cmark-gfm/security/advisories/GHSA-r8vr-c48j-fcc5 · WEB
- https://github.com/github/cmark-gfm/security/advisories/GHSA-w4qg-3vf7-m9x5 · WEB
- https://github.com/commonmark/commonmark.js/issues/129 · WEB
- https://github.com/commonmark/commonmark.js/issues/157 · WEB
- https://github.com/commonmark/commonmark.js/issues/172 · WEB
- https://github.com/thephpleague/commonmark · PACKAGE
History
- 25 Nov 2026 21:05 UTC · NVD: first stored (published 9 Sep 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 9 Dec 2024)