CVE-2025-65960
mediumpriority · track · 0EPSS 0.002 · 9 %ileDEEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (15)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2025-2679Contao: Mehrere SchwachstellenDeutsch2025-11-25csaf · cert_bundDE
Ein entfernter, authentisierter Angreifer kann mehrere Schwachstellen in Contao ausnutzen, um einen Cross-Site Scripting Angriff durchzuführen oder beliebigen Code auszuführen.
- GHSA-98vj-mm79-v77rContao is vulnerable to remote code execution in template closures2025-11-25ghsa · osvUS
### 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
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (9)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2025-65960cnnvd
- https://contao.org/en/security-advisories/cross-site-scripting-in-templatesPatchcnnvd
- https://contao.org/en/security-advisories/remote-code-execution-in-template-closurescnnvd
- https://github.com/contao/contao/security/advisories/GHSA-98vj-mm79-v77rcnnvd
- https://vigilance.fr/vulnerability/Contao-Cross-Site-Scripting-via-Template-Closures-48862cnnvd
- https://contao.org/en/security-advisories/remote-code-execution-in-template-closuresenisa_euvd
- https://github.com/contao/contao/security/advisories/GHSA-98vj-mm79-v77renisa_euvd
- https://contao.org/en/security-advisories/remote-code-execution-in-template-closuresVendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan