CVE-2025-65960
published medium CVSS 3.1 · 6.6Contao is vulnerable to remote code execution in template closures
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| contao | — | contao>= 4.0.0, < 4.13.57 · >= 5.0.0-RC1, < 5.3.42 · >= 5.4.0-RC1, < 5.6.5 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.6 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| contao | contao | >= 4.0.0, < 4.13.57 (affected)>= 5.0.0-RC1, < 5.3.42 (affected)>= 5.4.0-RC1, < 5.6.5 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-351 CWE-351: Insufficient Type Distinction
References
2Provider assertions
2GitHub_M · cna
Contao is vulnerable to remote code execution in template closures
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- bd9773d4ec82d3b6b76dc659716fe1f4b73c7633d66c3886f2270fd878398b64
- Ingested
- 23 Sep 2026, 08:56:20 UTC
- Source record
- Official CVE record