Skip to content
OpenAdvisories
Medium · 6.6 CVE-2025-65960 EUVD-2025-199633GHSA-98vj-mm79-v77r

Contao is vulnerable to remote code execution in template closures

Published Nov 25, 2025 · Updated Nov 25, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
contao contao >= 4.0.0, < 4.13.57, >= 5.0.0-RC1, < 5.3.42, >= 5.4.0-RC1, < 5.6.5 —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist contao/core-bundle >= 4.0.0, < 4.13.57 4.13.57 GHSA-98vj-mm79-v77r
Packagist contao/core-bundle >= 5.0.0-RC1, < 5.3.42 5.3.42 GHSA-98vj-mm79-v77r
Packagist contao/core-bundle >= 5.4.0-RC1, < 5.6.5 5.6.5 GHSA-98vj-mm79-v77r

Advisories 1

References