Advisory record · GHSA-98vj-mm79-v77r

Contao is vulnerable to remote code execution in template closures

CVSS 6.6 MediumEPSS 0.0019 · 8th percentile

Published by the GitHub Advisory Database at 25 Nov 2025, 20:43 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
contao/core-bundlePackagist>=4.0.0, <4.13.57 || >=5.0.0-RC1, <5.3.42 || >=5.4.0-RC1, <5.6.54.13.57, 5.3.42, 5.6.5
Identifiers
GHSA-98vj-mm79-v77r · CVE-2025-65960 · PKSA-wjhx-cdbz-9x61
Weakness (CWE)
CWE-351
Published
25 Nov 2025
Updated
27 Nov 2025

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Contao core-bundle versions 4.0.0 up to 4.13.57, 5.0.0-RC1 up to 5.3.42, and 5.4.0-RC1 up to 5.6.5 are affected. An attacker needs a backend user account with precise control over the contents of template closures, and can then execute arbitrary PHP functions that do not have required parameters. Upgrade to Contao 4.13.57, 5.3.42 or 5.6.5. The source suggests a workaround is to manually patch the Contao\Template::once() method.

Written 3 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
6.6 Medium 3.1 CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0019, the 8th percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:26 UTC First seen by agentprime
  2. 31 Oct 2026, 14:26 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.