NetSight
medium6.6

CVE-2025-65960

Contao is vulnerable to remote code execution in template closures

Impact

### 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

Affected packages

EcosystemPackageAffectedFixed in
composercontao/core-bundle>= 4.0.0, < 4.13.574.13.57

Affected products

VendorProductAffected versions
ContaoContao
from 4.0.0 before 4.13.57
from 5.0.0 before 5.3.42
from 5.4.0 before 5.6.5

Weakness classification

References