Skip to main content

twig/markdown-extra CVE-2026-133773

| EUVDEUVD-2026-133922 LOW
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-11-24 Symfony
2.3
CVSS 4.0 · Vendor: Symfony
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach endpoint rendering html_to_markdown
  2. Delivery
    Submit many unique filter-option values
  3. Exploit
    Each option set caches a new converter
  4. Execution
    Static cache grows without eviction
  5. Impact
    Long-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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

twig/markdown-extra 0 <3.31.1

Affected Packages

euvd twig_markdown_extra fix: 3.31.1

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

Vendor (Symfony) PRIMARY 2.3 LOW
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
vuln.today AI 3.1 LOW

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.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (Symfony).

CVSS VectorVendor: Symfony

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.6%
Top 58% exploitable
Prevalence
Low
optional Twig extra package; html_to_markdown filter uncommonly used in production
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

13
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +12
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Twig

View all
CVE-2018-13818 CRITICAL POC
9.8 Jul 10

Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key parameter. Rated critical sever

CVE-2026-24425 HIGH
8.7 May 20

Sandbox bypass in Twig template engine versions 2.16.x and 3.9.0 through 3.25.x allows attackers with template rendering

CVE-2024-45411 HIGH
8.6 Sep 09

Twig is a template language for PHP. Rated high severity (CVSS 8.6), this vulnerability is remotely exploitable, no auth

CVE-2022-39261 HIGH
7.5 Sep 28

Twig is a template language for PHP. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no auth

CVE-2015-7809 MEDIUM
6.8 Nov 06

The displayBlock function Template.php in Sensio Labs Twig before 1.20.0, when Sandbox mode is enabled, allows remote at

CVE-2026-46627 HIGH
7.1 Jul 14

Denial-of-service via resource exhaustion affects the Twig templating engine for PHP prior to 3.26.0, where the sandbox

CVE-2023-46734 MEDIUM
6.1 Nov 10

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Rated medium severity

CVE-2026-133768 MEDIUM
5.3 Nov 24

Sandboxed Twig templates that are permitted to use the `join` filter can disclose the private and protected properties o

CVE-2026-133767 MEDIUM
5.3 Nov 24

Twig's security sandbox allow-list can be bypassed by a sandboxed template that uses the `embed` tag with a parent expre

CVE-2026-133765 MEDIUM
5.3 Nov 24

Sandbox policy bypass in Twig 3.23.0 through 3.31.0 lets whoever supplies the template source force the engine to invoke

CVE-2026-133763 MEDIUM
5.3 Nov 24

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

CVE-2019-9942 LOW
3.7 Mar 23

A sandbox information disclosure exists in Twig before 1.38.0 and 2.x before 2.7.0 because, under some circumstances, it

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy