GHSA-98vj-mm79-v77r
Contao is vulnerable to remote code execution in template closures
Quick fix
GHSA-98vj-mm79-v77r — contao/core-bundle: upgrade to the fixed version with the command below.
composer require contao/core-bundle:^4.13.57Details
### 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
Are you affected?
Enter the version of the package you're using.
Affected packages
4.0.0Fixed in: 4.13.57composer require contao/core-bundle:^4.13.575.0.0-RC1Fixed in: 5.3.42composer require contao/core-bundle:^5.3.425.4.0-RC1Fixed in: 5.6.5composer require contao/core-bundle:^5.6.5References
- https://github.com/contao/contao/security/advisories/GHSA-98vj-mm79-v77r[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2025-65960[ADVISORY]
- https://github.com/contao/contao/commit/577d7fdd5b1ca84f65f034ff556865422f0a3bd1[WEB]
- https://github.com/contao/contao/commit/676f0855d39007ac9a0dbe7ae6a7414cba2312a5[WEB]
- https://github.com/contao/contao/commit/ebf84c90e5679a67060f396b924ce4a3c3f206b3[WEB]
- https://contao.org/en/security-advisories/remote-code-execution-in-template-closures[WEB]
- https://github.com/contao/contao[PACKAGE]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:composer/contao/core-bundle"]}'