{"id":"CVE-2025-65960","published":"2025-11-25T18:54:48Z","modified":"2025-11-25T20:00:14Z","title":"Contao is vulnerable to remote code execution in template closures","vendor":"contao","product":"contao","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.6,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00288,"percentile":0.13938,"provenance":"source"},"cwes":[{"id":"CWE-351","name":"Insufficient Type Distinction"}],"references":[{"url":"https://github.com/contao/contao/security/advisories/GHSA-98vj-mm79-v77r","tags":["x_refsource_CONFIRM"]},{"url":"https://contao.org/en/security-advisories/remote-code-execution-in-template-closures","tags":["x_refsource_MISC"]}],"priority":{"score":7.4,"factors":[{"name":"EPSS percentile","points":2.79},{"name":"CVSS severity","points":4.62}]},"vendorSlug":"contao","affectedVersions":[{"vendor":"contao","product":"contao","versions":[">= 4.0.0, < 4.13.57",">= 5.0.0-RC1, < 5.3.42",">= 5.4.0-RC1, < 5.6.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-11-25T19:59:53.302405Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"contao/core-bundle","vulnerableRanges":[">=4.0.0, <4.13.57",">=5.0.0-RC1, <5.3.42",">=5.4.0-RC1, <5.6.5"],"patched":["4.13.57","5.3.42","5.6.5"],"from":["GHSA-98vj-mm79-v77r"],"provenance":"source"}],"summary":{"text":"Contao, the open source CMS, contains a flaw in its template closure handling that allows arbitrary PHP functions lacking required parameters to be executed. An attacker needs a back end user account with precise control over template closure contents, and the attack is reachable over the network with high complexity and no user interaction, resulting in remote code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:17:22Z"},"euvd":{"id":"EUVD-2025-199633","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-57756","published":"2025-08-28","fixed":"5.6.1","kev":false,"link":{"from":"CVE-2025-57756","to":"CVE-2025-65960","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:contao/core-bundle","fromFixed":"4.13.56","toFixed":"4.13.57","daysApart":89}]}},{"cve":"CVE-2025-57757","published":"2025-08-28","fixed":"5.6.1","kev":false},{"cve":"CVE-2025-57758","published":"2025-08-28","fixed":"5.6.1","kev":false},{"cve":"CVE-2025-57759","published":"2025-08-28","fixed":"5.6.1","kev":false},{"cve":"CVE-2025-65960","published":"2025-11-25","fixed":"5.6.5","kev":false},{"cve":"CVE-2025-65961","published":"2025-11-25","fixed":"5.6.5","kev":false},{"cve":"CVE-2026-55824","published":"2026-07-31","fixed":"5.7.7","kev":false},{"cve":"CVE-2026-55825","published":"2026-07-31","fixed":"5.7.7","kev":false}],"package":"Packagist:contao/core-bundle"}}