# CVE-2024-58382: league/commonmark before 2.6.0 Denial of Service via Quadratic Complexity

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2024-12-09T20:42:07.000Z
- Modified: 2026-10-27T18:10:00.130Z
- Also known as: GHSA-c2pc-g5qf-rfrf
- Weaknesses: CWE-407
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- thephpleague commonmark: before 2.6.0 (not affected: 2.6.0)
- league/commonmark (Packagist): before 2.6.0

## Every score

- VulnCheck: CVSS:4.0 8.7 High `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`
- VulnCheck: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/thephpleague/commonmark/security/advisories/GHSA-c2pc-g5qf-rfrf> (vendor-advisory, web)
- <https://www.vulncheck.com/advisories/league-commonmark-before-2.6.0-denial-of-service-via-quadratic-complexity> (third-party-advisory)
- <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)

## Sources

- CVE List: [CVE-2024-58382](https://www.cve.org/CVERecord?id=CVE-2024-58382), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-c2pc-g5qf-rfrf](https://github.com/advisories/GHSA-c2pc-g5qf-rfrf), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-58382](https://nvd.nist.gov/vuln/detail/CVE-2024-58382), Public domain, modified 2026-10-27

---

Page: https://cve.day/CVE-2024-58382 · Whole record: https://cve.day/CVE-2024-58382.json · Rebuilt by cve.day 2026-11-25T22:58:53.070Z
