# CVE-2025-65960: Contao is vulnerable to remote code execution in template closures

- Severity: Medium 6.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2025-11-25T18:54:48.897Z
- Modified: 2026-10-18T20:10:00.110Z
- Also known as: GHSA-98vj-mm79-v77r
- Weaknesses: CWE-351
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- 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
- 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

## Every score

- GitHub_M: CVSS:3.1 6.6 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 6.6 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/contao/contao/security/advisories/GHSA-98vj-mm79-v77r> (vendor-advisory, web)
- <https://contao.org/en/security-advisories/remote-code-execution-in-template-closures> (vendor-advisory, 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://github.com/contao/contao> (package)

## Sources

- CVE List: [CVE-2025-65960](https://www.cve.org/CVERecord?id=CVE-2025-65960), CVE Terms of Use, modified 2025-11-25
- GitHub Advisory Database: [GHSA-98vj-mm79-v77r](https://github.com/advisories/GHSA-98vj-mm79-v77r), CC-BY-4.0, modified 2025-11-27
- NVD: [CVE-2025-65960](https://nvd.nist.gov/vuln/detail/CVE-2025-65960), Public domain, modified 2026-10-18

---

Page: https://cve.day/CVE-2025-65960 · Whole record: https://cve.day/CVE-2025-65960.json · Rebuilt by cve.day 2026-11-25T22:59:08.008Z
