Vulnerability · Published Nov 25, 2025 · Assigned by GitHub_M

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

Medium 6.6

In plain English

A medium-severity security flaw in contao from contao. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 9% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.6Medium
Exploit odds (30 days)0.2%top 91.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Packagistcontao/core-bundle4.13.57GHSA-98vj-mm79-v77r
Packagistcontao/core-bundle5.3.42GHSA-98vj-mm79-v77r
Packagistcontao/core-bundle5.6.5GHSA-98vj-mm79-v77r

Affected products (as reported)

VendorProductVersions
contao contao >= 4.0.0, < 4.13.57>= 5.0.0-RC1, < 5.3.42>= 5.4.0-RC1, < 5.6.5

Weakness: CWE-351 · Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H

References