Contao Remote Code Execution Vulnerability in Template Closures

Vulnerability

A remote code execution vulnerability has been identified in Contao versions 4.0.0 prior to 4.13.57, 5.3.42 prior to 5.6.5, and 5.6.4. Back end users with specific control over template closure contents can execute arbitrary PHP functions that lack required parameters. This vulnerability has been patched in Contao versions 4.13.57, 5.3.42, and 5.6.5.

Impact

Exploitation of this vulnerability allows for arbitrary PHP code execution on the server.

Remediation

Users can upgrade to Contao versions 4.13.57, 5.3.42, or 5.6.5 to address this vulnerability. Alternatively, the issue can be temporarily mitigated by manually patching the 'Contao\Template::once()' method.

Added: Nov 25, 2025, 7:18 PM
Updated: Nov 25, 2025, 10:32 PM

Vulnerability Rating

Custom Algorithm
spread
5.2
impact
10.0
exploitability
5.0
remediation
7.7
relevance
1.2
threat
0.0
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.