6.6medium
Contao is vulnerable to remote code execution in template closures
- Severity
- 6.6medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.19% (higher than 9% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-98vj-mm79-v77r
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
| Product or package | Versions | Reported by |
|---|---|---|
| contao contao | >= 4.0.0, < 4.13.57, >= 5.0.0-RC1, < 5.3.42, >= 5.4.0-RC1, < 5.6.5, from 4.0.0 before 4.13.57, from 5.0.0 before 5.3.42, from 5.4.0 before 5.6.5 | CVE List, NVD |
| contao/core-bundle (Packagist) | from 4.0.0 before 4.13.57, from 5.0.0-RC1 before 5.3.42, from 5.4.0-RC1 before 5.6.5 | GitHub Advisory Database |
All scores
| GitHub_M | 6.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 6.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
GitHub Advisory Database
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
NVD (es)
Contao es un CMS de código abierto. Desde la versión 4.0.0 hasta la 4.13.57, hasta la 5.3.42, y hasta la 5.6.5, los usuarios del back end con control preciso sobre el contenido de los cierres de plantilla pueden ejecutar funciones PHP arbitrarias que no tienen parámetros requeridos. Este problema ha sido parcheado en las versiones 4.13.57, 5.3.42 y 5.6.5. Una solución alternativa para este problema implica parchear manualmente el método Contao\Template::once().
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-65960 changed 2025-11-25 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-98vj-mm79-v77r changed 2025-11-27 | CC-BY-4.0 |
| NVD | CVE-2025-65960 changed 2026-10-18 | Public domain |