Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify endpoint rendering untrusted Markdown
-
DeliverySubmit large paragraph of pipe-free non-letter lines
-
ExploitTableStartParser rescans full buffer per line
-
ExecutionQuadratic strpos work exhausts worker CPU
-
PersistRepeat requests to exhaust all PHP workers
-
ImpactDenial of service
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target application convert attacker-supplied Markdown with the GitHub Flavored Markdown Table extension enabled - specifically GithubFlavoredMarkdownConverter or any configuration that registers TableExtension (the default GFM bundle enables it). The malicious input must be a single large paragraph composed of many non-blank, pipe-free lines that do not begin with a letter, so the paragraph buffer keeps growing and TableStartParser::tryStart() rescans it on every line. Limiting factors: applications that do not render untrusted Markdown, do not enable the Table extension, or impose input-size caps, request timeouts, or CPU/worker limits significantly reduce or neutralize the impact; no authentication or user interaction is required (PR:N/UI:N) against affected versions 2.0.0 through 2.10.1. |
| Impact | This is a genuine availability-only risk whose priority is moderate-to-high in exposed deployments but not a top-tier emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) correctly reflects that any internet-facing service rendering untrusted Markdown with the Table extension can be attacked remotely, without authentication or user interaction, with low complexity - the only impact is VA:H (availability), with VC:N/VI:N confirming no data confidentiality or integrity exposure (consistent with CWE-400 resource exhaustion). No EPSS score, CISA KEV listing, or published proof-of-concept exploit code is present in the provided data, so there is no evidence of active exploitation or automated weaponization; the signals are therefore internally consistent rather than conflicting. The practical severity is tempered by the fact that the attack produces CPU exhaustion of PHP worker processes rather than remote code execution or data compromise, and realistic impact depends on whether the affected application exposes untrusted Markdown conversion and lacks request-size/time limits. In short: a real, credible DoS worth patching promptly given the wide deployment of league/commonmark, but not a confirmed-in-the-wild critical demanding emergency out-of-band response. |
| Exploit ScenarioDerived | An attacker submits a single large Markdown payload - a multi-line paragraph of pipe-free lines that do not begin with a letter - to a web endpoint that renders untrusted Markdown via GithubFlavoredMarkdownConverter or any config enabling the Table extension. Each non-blank line triggers a full-buffer strpos scan for a pipe, producing O(M^2) work that burns seconds to tens of seconds of single-core CPU per request. Repeated requests exhaust PHP worker processes and deny service; no public exploit code is identified, though the advisory describes the triggering input in detail. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 08, 2026
Quadratic-time denial of service in league/commonmark 2.0.0 through 2.10.1 lets unauthenticated remote attackers exhaust PHP worker CPU by submitting a single large Markdown paragraph made of pipe-free lines that do not begin with a letter, which forces the GitHub Flavored Markdown Table extension's TableStartParser::tryStart() to rescan the entire growing paragraph buffer on every line. Successfully exploited, this drives seconds to tens of seconds of single-core CPU per request that scales with the square of the input size, enough to saturate worker pools and deny service to other users. No authentication or user interaction is required (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H), and no public exploit code was identified at time of analysis, though the attack is trivially derived from the published advisory; impact is limited to availability with no confidentiality or integrity effect, and only applications that render untrusted Markdown with the Table extension enabled are affected.
RemediationAI
Vendor-released patch: upgrade to league/commonmark 2.10.2 (Composer: require league/commonmark:^2.10.2 or run composer update league/commonmark), which contains the upstream fix commit 5f63680a5e29dd57f9c6be9743b0e90493d3c2d0; see the GitHub advisory GHSA-3q6v-r5mr-hxv8. If an immediate upgrade is not possible, the most effective compensating control is to stop rendering untrusted Markdown with the table extension: remove TableExtension from the environment/converter configuration or avoid GithubFlavoredMarkdownConverter for user-supplied content, accepting the loss of GFM table rendering as the trade-off. Additionally, enforce a hard maximum input length (for example a few kilobytes per Markdown body) before handing content to the parser, since attack cost grows with the square of body size and a strict cap collapses the quadratic term into a trivial constant; this can truncate legitimate large documents. Also apply PHP-FPM worker/CPU limits, request timeouts, and per-client rate limiting so a single abusive request cannot monopolize the worker pool, though these bound rather than eliminate the per-request CPU burn and may reject or slow legitimate traffic. Because no authentication is required (PR:N), network-level access control to Markdown-rendering endpoints is only partially mitigating and should not be relied upon alone.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is a classic algorithmic-complexity resource exhaustion issue (CWE-400, uncontrolled resource consumption) in the PHP library league/commonmark, a widely used CommonMark parser that underpins Markdown rendering in many PHP frameworks and CMSes. When the GitHub Flavored Markdown bundle is used (the default GFM configuration registers TableExtension), TableStartParser is registered as a block-start parser, and the core MarkdownParser (src/Parser/MarkdownParser.php lines ~135-147 and ~224-236) invokes TableStartParser::tryStart() on every non-blank line while a paragraph is the active block. In src/Extension/Table/TableStartParser.php:35-38, the parser calls $parserState->getParagraphContent() to retrieve the full accumulated paragraph buffer and runs strpos($paragraph, '|') across all of it; because ReferenceParser.php:89-95 appends each incoming line to that buffer, the scan at line k covers roughly k lines, giving total work of 1+2+...+M, i.e. O(M^2). Only the paragraph's final line can ever become a table header, so scanning the whole multi-line buffer on every line is unnecessary, and no input-size cap or default nesting limit bounds the scan. The CPE string cpe:2.3:a:thephpleague:commonmark:*:*:*:*:*:*:*:* identifies the affected PHP package distributed via Composer as composer/league/commonmark. CVSS 4.0 scores the vector 8.7 with AV:N/AC:L/AT:N/PR:N/UI:N and high availability impact only, consistent with the independent 3.1 assessment of AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
Know when Commonmark gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Remote, unauthenticated, low-complexity submission of untrusted Markdown with no user interaction; impact is CPU/worker exhaustion only, so availability-only (A:H) with no confidentiality or integrity effect and unchanged scope.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
league/commonmark from 2.0.0 before 2.10.2 contains a quadratic-time denial of service vulnerability in the GitHub Flavored Markdown Table extension's TableStartParser::tryStart() block-start scan. Unauthenticated attackers can submit a large paragraph of pipe-free lines not starting with letters, forcing repeated full-buffer strpos scans that exhaust PHP worker CPU.
Articles & Coverage 1
Technical POC Analysis
CWE-400 (Uncontrolled Resource Consumption), additionally tagged CWE-407 (Inefficient Algorithmic Complexity) in the advisory.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A high-severity denial-of-service vulnerability in the league/commonmark PHP library (versions 2.0.0-2.10.1) allows unauthenticated attackers to exhaust server CPU by submitting specially crafted Markdown, potentially disrupting services for all users. Applications that render untrusted Markdown with the GitHub Flavored Markdown Table extension enabled are at risk. Leadership should prioritize mitigation because a single request can degrade or deny service, affecting availability and user trust.
No vendor-released patch identified at time of analysis. Interim mitigations: disable the GitHub Flavored Markdown Table extension if not essential; if required, enforce strict input size limits (maximum paragraph length and line count) and rate limiting; deploy WAF rules to block oversized Markdown payloads; monitor CPU usage for anomalies; and apply a vendor patch as soon as it becomes available.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
More in Commonmark
View allCross-site scripting (XSS) vulnerability in the PHP League CommonMark library before 0.18.3 allows remote attackers to i
Cross-site scripting (XSS) vulnerability in the PHP League CommonMark library versions 0.15.6 through 0.18.x before 0.18
Quadratic CPU exhaustion in league/commonmark 2.0.0-2.8.3 allows unauthenticated remote attackers to deny service by sub
Quadratic-time algorithmic complexity in league/commonmark's Attributes extension exposes PHP applications to remote den
Quadratic parsing complexity in league/commonmark (thephpleague/commonmark, versions ≥1.5.0 and <2.9.1) allows unauthent
Three independent super-linear parsing paths in league/commonmark before 2.9.1 allow unauthenticated remote attackers to
Quadratic-blowup denial of service in league/commonmark's Footnote extension allows remote unauthenticated attackers to
Quadratic CPU exhaustion in league/commonmark's optional AttributesExtension (versions 1.5.0 through 2.9.2) allows unaut
Quadratic memory and output amplification in league/commonmark's XmlRenderer affects all 2.x releases from 2.0.0 through
Cross-site scripting in league/commonmark 2.7.0-2.9.0 allows unauthenticated attackers to inject arbitrary JavaScript in
The DisallowedRawHtml extension in PHP Commonmark (league/commonmark) versions prior to 2.8.1 can be bypassed by injecti
Stored cross-site scripting in league/commonmark from 1.3.0 through 2.10.1 lets any user who can post Markdown bypass th
EUVD-2026-95017
GHSA-84wr-wccg-f5hp
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB