---
id: CVE-2024-58382
title: >-
  league/commonmark versions before 2.6.0 contain polynomial time complexity
  vulnerabilities in Markdown parsing that allow attackers to cause denial of
  service
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 wo…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-407
vendor: thephpleague
product: commonmark
affected:
  - commonmark < 2.6.0
published: '2026-09-09'
updated: '2026-09-09'
sourceUpdated: '2026-09-09T20:20:21.673'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-58382'
references:
  - url: >-
      https://github.com/thephpleague/commonmark/security/advisories/GHSA-c2pc-g5qf-rfrf
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/league-commonmark-before-2.6.0-denial-of-service-via-quadratic-complexity
    label: disclosure@vulncheck.com
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-58382.json
  - url: 'https://access.redhat.com/security/cve/CVE-2024-58382'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2024-58382'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-09-09T14:53:50.482623Z'
ingestedAt: '2026-09-10T20:38:27.254Z'
epss: 0.00278
epssPercentile: 0.18038
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · updated 2026-09-14 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-58382.json)
