Remote Code Execution Vulnerability in Contao CMS by Contao
CVE-2025-65960
6.6MEDIUM
What is CVE-2025-65960?
An open-source content management system, Contao, is susceptible to a remote code execution issue that enables backend users to execute arbitrary PHP functions without the necessary parameters if they have precise control over the contents of template closures. This vulnerability affects versions ranging from 4.0.0 up to just before 4.13.57, 5.3.42, and 5.6.5. To mitigate this risk, users are encouraged to upgrade to the patched versions or consider manually patching the Contao\Template::once() method as a temporary workaround.
Affected Version(s)
contao >= 4.0.0, < 4.13.57 < 4.0.0, 4.13.57
contao >= 5.0.0-RC1, < 5.3.42 < 5.0.0-RC1, 5.3.42
contao >= 5.4.0-RC1, < 5.6.5 < 5.4.0-RC1, 5.6.5
