CVE-2025-65960: Contao is vulnerable to remote code execution in template closures

Published Nov 25, 2025
·
Updated

Impact

Backend users with precise control over the contents of template closures can execute arbitrary PHP functions that do not have required parameters.

Patches

Update to Contao 4.13.57, 5.3.42 or 5.6.5

Workarounds

Manually patch the Contao\Template::once() method.

Resources

https://contao.org/en/security-advisories/remote-code-execution-in-template-closures

Other sources

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.

— MITRE

Affected Software

7 affected componentsFixes available
Contao Contao>=4.0.0<4.13.57, <5.3.42, <5.6.5
composer/contao/core-bundle>=5.4.0-RC1<5.6.5
5.6.5
composer/contao/core-bundle>=5.0.0-RC1<5.3.42
5.3.42
composer/contao/core-bundle>=4.0.0<4.13.57
4.13.57
Contao Contao>=4.0.0<4.13.57
Contao Contao>=5.0.0<5.3.42
Contao Contao>=5.4.0<5.6.5

Event History

Nov 25, 2025
CVE Published
via MITRE·06:54 PM
Data Sourced
via MITRE·06:54 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·08:43 PM
Data Sourced
via GitHub·08:43 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-65960?

CVE-2025-65960 is categorized as a critical vulnerability due to its potential for remote code execution.

2

How do I fix CVE-2025-65960?

To remediate CVE-2025-65960, you should upgrade Contao to version 4.13.57 or later, 5.3.42 or later, or 5.6.5 or later.

3

What are the potential impacts of CVE-2025-65960?

The exploitation of CVE-2025-65960 allows authenticated back end users to execute arbitrary PHP functions, which could compromise the entire system.

4

Who is affected by CVE-2025-65960?

All users running Contao versions from 4.0.0 to before 4.13.57, before 5.3.42, and before 5.6.5 are vulnerable to CVE-2025-65960.

5

Is CVE-2025-65960 patched?

Yes, CVE-2025-65960 has been patched in the latest versions of Contao.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203