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

Source: https://junglewise.ai/threats/cve-2025-65960-contao-is-vulnerable-to-remote-code-execution-in-template  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-11-25  
License: CC BY 4.0 with a link back

CVE-2025-65960 · Severity: medium · CVSS 6.6 · Published 2025-11-25

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.

Technologies: [Contao](https://junglewise.ai/threats/technologies/contao), [contao/core-bundle (Packagist)](https://junglewise.ai/threats/technologies/contao-core-bundle). Vendors: [Contao](https://junglewise.ai/threats/vendors/contao), [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is CVE-2025-65960 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-65960 being exploited in the wild.

**How severe is CVE-2025-65960?** Medium severity, with a CVSS score of 6.6, published 25 November 2025.

**Which products and versions are affected?** contao/core-bundle (Packagist) ECOSYSTEM:introduced=4.0.0,fixed=4.13.57.

**Is there a fix for CVE-2025-65960?** Yes. contao/core-bundle (Packagist): upgrade to 4.13.57 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2025-65960?** Check whether you run Contao or contao/core-bundle (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- contao/core-bundle (Packagist): upgrade to 4.13.57 or later

  ```sh
  composer require contao/core-bundle:^4.13.57
  ```


## Affected products

- Contao
- contao/core-bundle (Packagist) ECOSYSTEM:introduced=4.0.0,fixed=4.13.57

## Identifiers

- CVE-2025-65960
- GHSA-98vj-mm79-v77r

## Related threats

- [Contao path traversal in image insert tag](https://junglewise.ai/threats/cve-2026-126663-contao-4-0-0-before-5-3-54-5-4-0-before-5-7-17-and-6-0-0-before)
- [Contao access control bypass in file manager Edit-Multiple](https://junglewise.ai/threats/cve-2026-126662-contao-4-0-0-before-5-3-54-5-4-0-before-5-7-17-and-6-0-0-before)
- [Contao improper access control in table access voter](https://junglewise.ai/threats/cve-2026-107851-contao-improper-access-control-in-the-table-access-voter)
- [Contao improper access control in preview links module](https://junglewise.ai/threats/cve-2026-107850-contao-improper-access-control-in-the-preview-links-module)
- [Contao: Cross-site request forgery in custom backend actions](https://junglewise.ai/threats/cve-2026-107848-contao-cross-site-request-forgery-in-custom-backend-actions)
