Advisory

GHSA-98vj-mm79-v77r

Also known as: CVE-2025-65960

Summary

Contao is vulnerable to remote code execution in template closures

Details

Impact

Backend users with precise control over the contents of template closures can execute arbitrary PHP functions that do not have required parameters.

Patches

Update to Contao 4.13.57, 5.3.42 or 5.6.5

Workarounds

Manually patch the Contao\Template::once() method.

Resources

https://contao.org/en/security-advisories/remote-code-execution-in-template-closures

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-11-25 20:43 UTC
Modified
2025-11-27 09:16 UTC

Affected packages and fixes

contao/core-bundle

Packagist · All systems

Affected

  • introduced 4.0.0, fixed 4.13.57 (ecosystem)

Fixed versions

4.13.57

Fix

The export has no generic command for this ecosystem.

contao/core-bundle

Packagist · All systems

Affected

  • introduced 5.0.0-RC1, fixed 5.3.42 (ecosystem)

Fixed versions

5.3.42

Fix

The export has no generic command for this ecosystem.

contao/core-bundle

Packagist · All systems

Affected

  • introduced 5.4.0-RC1, fixed 5.6.5 (ecosystem)

Fixed versions

5.6.5

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences