Moderate severityNVD Advisory· Published Nov 25, 2025· Updated Nov 25, 2025
Contao is vulnerable to remote code execution in template closures
CVE-2025-65960
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
contao/core-bundlePackagist | >= 4.0.0, < 4.13.57 | 4.13.57 |
contao/core-bundlePackagist | >= 5.0.0-RC1, < 5.3.42 | 5.3.42 |
contao/core-bundlePackagist | >= 5.4.0-RC1, < 5.6.5 | 5.6.5 |
Affected products
2Patches
Vulnerability mechanics
References
7- github.com/advisories/GHSA-98vj-mm79-v77rghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-65960ghsaADVISORY
- contao.org/en/security-advisories/remote-code-execution-in-template-closuresghsax_refsource_MISCWEB
- github.com/contao/contao/commit/577d7fdd5b1ca84f65f034ff556865422f0a3bd1ghsaWEB
- github.com/contao/contao/commit/676f0855d39007ac9a0dbe7ae6a7414cba2312a5ghsaWEB
- github.com/contao/contao/commit/ebf84c90e5679a67060f396b924ce4a3c3f206b3ghsaWEB
- github.com/contao/contao/security/advisories/GHSA-98vj-mm79-v77rghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.