CVE-2025-65960: Contao is vulnerable to remote code execution in template closures
CVE-2025-65960 · Severity: medium · CVSS 6.6 · Published 2025-11-25
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.
Yes. contao/core-bundle (Packagist): upgrade to 4.13.57 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2025-65960?
Check whether you run Contao or contao/core-bundle (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
contao/core-bundle (Packagist): upgrade to 4.13.57 or later