NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

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

mediumCVSS 3.1 6.6GHSA-98vj-mm79-v77r

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

Published Nov 25, 2025 · Updated Nov 27, 2025

Affected packages

contao/core-bundle

Ecosystem
Composer (PHP)
Affected
>= 4.0.0, < 4.13.57
Fixed in
4.13.57
Check
composer show contao/core-bundle

contao/core-bundle

Ecosystem
Composer (PHP)
Affected
>= 5.0.0-RC1, < 5.3.42
Fixed in
5.3.42
Check
composer show contao/core-bundle

contao/core-bundle

Ecosystem
Composer (PHP)
Affected
>= 5.4.0-RC1, < 5.6.5
Fixed in
5.6.5
Check
composer show contao/core-bundle

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

Credited to ausi, m-vo.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries