# Winter: Authenticated Twig sandbox escape in CMS SecurityPolicy (bypass of CVE-2024-54149)

High severity, published 2026-08-20. Update winter/wn-system-module to 1.2.13 or later: composer update winter/wn-system-module.

Canonical URL: https://buzzphp.com/security/ghsa-8cfw-pcwh-v63w · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 8.4) |
| Published | 2026-08-20 |
| Updated | 2026-09-06 |
| GHSA | [GHSA-8cfw-pcwh-v63w](https://github.com/advisories/GHSA-8cfw-pcwh-v63w) |
| Weakness | CWE-693 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| winter/wn-system-module | >= 1.2.7, < 1.2.13 | 1.2.13 |

## What to do

Update winter/wn-system-module to 1.2.13 or later: composer update winter/wn-system-module.

Check which version you run with `composer show winter/wn-system-module`, and every affected package with `composer audit`.

## About this advisory

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).

## Links

- [GHSA-8cfw-pcwh-v63w on GitHub](https://github.com/advisories/GHSA-8cfw-pcwh-v63w)
- [All Composer security advisories](https://buzzphp.com/security)
