CVE-2025-65960

Contao is vulnerable to remote code execution in template closures

Published Nov 25, 2025 CVSS 3.1 · 6.6 Medium EPSS < 1% KEV · Not listed
Description
Contao is an Open Source CMS. From version 4.0.0 to before 4.13.57, before 5.3.42, and before 5.6.5, back end users with precise control over the contents of template closures can execute arbitrary PHP functions that do not have required parameters. This issue has been patched in versions 4.13.57, 5.3.42, and 5.6.5. A workaround for this issue involves manually patching the Contao\Template::once() method.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-98vj-mm79-v77r Contao is vulnerable to remote code execution in template closures
History
Type Values Removed Values Added
CPEs cpe:2.3:a:contao:contao:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Contao
Contao contao
Vendors & Products Contao
Contao contao
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Contao is an Open Source CMS. From version 4.0.0 to before 4.13.57, before 5.3.42, and before 5.6.5, back end users with precise control over the contents of template closures can execute arbitrary PHP functions that do not have required parameters. This issue has been patched in versions 4.13.57, 5.3.42, and 5.6.5. A workaround for this issue involves manually patching the Contao\Template::once() method.
Title Contao is vulnerable to remote code execution in template closures
Weaknesses CWE-351
References
Metrics cvssV3_1

{'score': 6.6, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 25, 2025, 8:00 PM
Reserved
Nov 18, 2025, 4:14 PM
Status
Analyzed
Published
Nov 25, 2025, 7:15 PM
Modified
Oct 18, 2026, 8:10 PM