{"id":"CVE-2025-65960","aliases":["CVE-2025-65960","GHSA-98vj-mm79-v77r"],"related":[],"kind":"vulnerability","state":"published","title":"Contao is vulnerable to remote code execution in template closures","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nBackend users with precise control over the contents of template closures can execute arbitrary PHP functions that do not have required parameters.\n\n### Patches\n\nUpdate to Contao 4.13.57, 5.3.42 or 5.6.5\n\n### Workarounds\n\nManually patch the `Contao\\Template::once()` method.\n\n### Resources\n\nhttps://contao.org/en/security-advisories/remote-code-execution-in-template-closures","format":"markdown","source":"ghsa"},{"lang":"es","text":"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().","source":"nvd"}],"published":"2025-11-25T18:54:48.897Z","modified":"2026-10-18T20:10:00.110Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","score":6.6,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","score":6.6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","score":6.6,"rating":"MEDIUM"}],"cwes":["CWE-351"],"affected":[{"ranges":[{"version":">= 4.0.0, < 4.13.57","status":"affected"},{"version":">= 5.0.0-RC1, < 5.3.42","status":"affected"},{"version":">= 5.4.0-RC1, < 5.6.5","status":"affected"}],"vendor":"contao","product":"contao","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0","status":"affected","fixed":"4.13.57"}],"ecosystem":"Packagist","package":"contao/core-bundle","purl":"pkg:composer/contao/core-bundle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0-RC1","status":"affected","fixed":"5.3.42"}],"ecosystem":"Packagist","package":"contao/core-bundle","purl":"pkg:composer/contao/core-bundle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.4.0-RC1","status":"affected","fixed":"5.6.5"}],"ecosystem":"Packagist","package":"contao/core-bundle","purl":"pkg:composer/contao/core-bundle","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.0.0","fixed":"4.13.57"},{"status":"affected","introduced":"5.0.0","fixed":"5.3.42"},{"status":"affected","introduced":"5.4.0","fixed":"5.6.5"}],"vendor":"contao","product":"contao","cpe":"cpe:2.3:a:contao:contao:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/contao/contao/security/advisories/GHSA-98vj-mm79-v77r","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://contao.org/en/security-advisories/remote-code-execution-in-template-closures","tags":["vendor-advisory","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-65960","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/contao/contao/commit/577d7fdd5b1ca84f65f034ff556865422f0a3bd1","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/contao/contao/commit/676f0855d39007ac9a0dbe7ae6a7414cba2312a5","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/contao/contao/commit/ebf84c90e5679a67060f396b924ce4a3c3f206b3","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/contao/contao","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-11-25T19:59:53.302Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-65960","url":"https://www.cve.org/CVERecord?id=CVE-2025-65960","licence":"CVE Terms of Use","modified":"2025-11-25T20:00:14.687Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-98vj-mm79-v77r","url":"https://github.com/advisories/GHSA-98vj-mm79-v77r","licence":"CC-BY-4.0","modified":"2025-11-27T09:16:46.144Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-65960","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-65960","licence":"Public domain","modified":"2026-10-18T20:10:00.110Z"}],"updatedAt":"2026-11-25T22:59:08.008Z","epss":{"score":0.0019,"percentile":0.09094,"date":"2026-12-01T12:00:22.000Z"}}