Winter: Authenticated Twig sandbox escape in CMS SecurityPolicy (bypass of CVE-2024-54149)
High severity. Published 20 August 2026. Update winter/wn-system-module to 1.2.13 or later: composer update winter/wn-system-module.
Which versions are affected?
| Package | Affected versions | Fixed in |
|---|---|---|
| winter/wn-system-module (opens in a new tab) | >= 1.2.7, < 1.2.13 | 1.2.13 |
What should you do?
Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:
composer show winter/wn-system-module
composer auditAdvisory details
| Severity | HighCVSS 8.4 |
|---|---|
| Published | |
| Updated | |
| GHSA | GHSA-8cfw-pcwh-v63w (opens in a new tab) |
| Weakness | CWE-693 |
What the advisory says
Impact
Affected versions of Winter CMS allow authenticated backend users with CMS template-editing permissions to escape the Twig sandbox ("safe mode") that is meant to restrict what template code can do. Using any of the following permissions, an attacker can read and modify arbitrary database records, execute arbitrary SQL (including DDL such as DROP TABLE), exfiltrate sensitive data such as backend administrator credentials, and achieve remote code execution by injecting PHP into a CMS page, layout, or partial code section:
- cms.managepages - cms.managelayouts - cms.managepartials
This is an incomplete-fix follow-up to CVE-2024-54149 (GHSA-xhw3-4j3m-hq53).
Source: GHSA-8cfw-pcwh-v63w (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .