Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach endpoint rendering html_to_markdown
-
DeliverySubmit many unique filter-option values
-
ExploitEach option set caches a new converter
-
ExecutionStatic cache grows without eviction
-
ImpactLong-running worker memory exhausted
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation 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 the application to call the html_to_markdown filter of twig/markdown-extra with an options argument whose values are influenced by attacker-controlled input (for example remove_nodes), OR to allow a sandboxed template an attacker can author; this is the AT:P attack requirement. The target must be a long-running worker (persistent PHP process such as RoadRunner/FrankenPHP/Swoole or a queue consumer) because the static $converters array outlives a single environment/request - under classic per-request PHP-FPM the cache is discarded at request end, sharply limiting impact. Limiting factors: PR:L indicates some authenticated or application-level access to reach the vulnerable rendering path, impact is availability-only (gradual memory growth, not code execution or data exposure), and no effect occurs unless each request supplies a distinct option mapping. The only complete fix per the vendor is updating to 3.31.1. |
| Impact | This is a low-priority, availability-only issue that scores low across every signal. The vendor-supplied CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:N) yields only 2.3, with the sole impact being VA:L (partial availability degradation) and no confidentiality or integrity impact. The vuln.today decision label is 'monitor', not act_now or emergency. There is no CISA KEV listing and no EPSS score was supplied, so widespread or targeted exploitation cannot be asserted. No exploit or PoC reference appears in the input (only advisories and the fix commit), so this is best treated as no public exploit identified at time of analysis. The AT:P (attack requirement present) metric aligns with the description: exploitation is not a default-config primitive - it requires a template that feeds attacker-influenced option values into the html_to_markdown filter, or a sandboxed template an attacker can author. The real-world risk is slow memory growth in long-running PHP workers (CWE-770 unbounded resource consumption), i.e. gradual resource exhaustion rather than an immediate crash. Net: a genuine but minor hardening fix, correctly rated low; it is not a high-CVSS-but-low-risk mismatch - the score and the mechanism agree. No key signals conflict; the main gap is the absence of EPSS data, which prevents a quantitative exploitation-likelihood estimate. |
| Exploit ScenarioDerived | In a long-running PHP worker (e.g. a FrankenPHP/RoadRunner/queue process) that renders a Twig template calling the html_to_markdown filter with an options array derived from user input, an attacker repeatedly submits requests each carrying a distinct options value (for example a unique remove_nodes string). Each distinct serialized option set creates and permanently caches a new HtmlConverter in a process-static array that outlives the environment, so memory grows unbounded over time until the worker exhausts available memory. No public exploit or PoC is identified in the available sources; the attack requires the application to expose filter options to input (AT:P), so it is not a default-config one-shot. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 24, 2026
Unbounded converter caching in twig/markdown-extra before 3.31.1 can gradually exhaust memory in long-running PHP workers when the html_to_markdown filter receives many distinct options mappings, including input-derived options or attacker-authored sandboxed templates. The issue is availability-only and low severity (CVSS 3.1 3.1; CVSS 4.0 2.3); exploitation requires a persistent worker and authenticated/application-level access to the vulnerable rendering path, and classic per-request PHP-FPM deployments discard the cache at request end. The vendor fixed it in 3.31.1 by bounding the cache at 100 converters; no public exploit was identified at time of analysis.
RemediationAI
Upgrade twig/markdown-extra to 3.31.1 or later; the vendor states that updating is the only complete fix, and the patch bounds the converter cache at 100 entries. The fix is available from the GitHub advisory https://github.com/twigphp/Twig/security/advisories/GHSA-cxp7-29fv-2j25, the Symfony CVE page https://symfony.com/cve-2026-133773, and commit 6f9962f230425da39e970023a322d641c9089035 for branch 3.x. No separate workaround is stated in the supplied advisory data.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected component is the MarkdownExtension in the Composer package twig/markdown-extra, identified by CPE cpe:2.3:a:twig:twig/markdown-extra. Its html_to_markdown filter uses an HtmlConverter instance per distinct serialize($options) key and stored those instances in a static array; because the options are a filter argument and the array had no size limit or eviction, a template could create unbounded entries. Static storage means the cache survives beyond a single environment/request, so the effect is concentrated in persistent workers rather than one-shot PHP-FPM requests. CWE-770 (Allocation of Resources Without Limits or Throttling) describes the root cause. The upstream fix introduces MAX_CACHED_CONVERTERS = 100 and evicts an entry with array_shift when full, matching the bounded formatter caches used by IntlExtension.
Know when Twig 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:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
AV:N as input arrives over the network, AC:H and PR:L because exploitation needs a non-default path feeding template-controlled options plus a long-running worker; only partial availability (A:L), no C/I impact.
Primary rating from Vendor (Symfony).
CVSS VectorVendor: Symfony
DescriptionCVE.org
The html_to_markdown filter of twig/markdown-extra keeps an HtmlConverter for each distinct mapping of options it receives. They're kept in a static array, with no size limit and no eviction. The options are an argument of the filter. A template that passes options taken from the input, or a sandboxed template, can therefore make this cache grow without limit. The cache outlives the environment, so it fills the memory of long-running workers.
The cache now keeps at most 100 converters, like the formatter caches of IntlExtension.
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.
Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key parameter. Rated critical sever
Sandbox bypass in Twig template engine versions 2.16.x and 3.9.0 through 3.25.x allows attackers with template rendering
Twig is a template language for PHP. Rated high severity (CVSS 8.6), this vulnerability is remotely exploitable, no auth
Twig is a template language for PHP. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no auth
The displayBlock function Template.php in Sensio Labs Twig before 1.20.0, when Sandbox mode is enabled, allows remote at
Denial-of-service via resource exhaustion affects the Twig templating engine for PHP prior to 3.26.0, where the sandbox
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Rated medium severity
Sandboxed Twig templates that are permitted to use the `join` filter can disclose the private and protected properties o
Twig's security sandbox allow-list can be bypassed by a sandboxed template that uses the `embed` tag with a parent expre
Sandbox policy bypass in Twig 3.23.0 through 3.31.0 lets whoever supplies the template source force the engine to invoke
A sandbox policy bypass in the Twig template engine (versions 3.21.0 through 3.30.x, fixed in 3.31.1) lets a template au
A sandbox information disclosure exists in Twig before 1.38.0 and 2.x before 2.7.0 because, under some circumstances, it
EUVD-2026-133922
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB