CVE-2026-79774
CVE-2026-79774 · Winter CMS before 1.2.13 Twig Sandbox Escape via SecurityPolicy
This page contains facts from public vulnerability sources. Check the original advisory before updating.
Winter CMS versions before 1.2.13 contain an incomplete fix for a Twig sandbox escape vulnerability in System\\Twig\\SecurityPolicy that allows authenticated backend users with template-editing permissions to bypass sandbox restrictions. Attackers can exploit method forwarding through Eloquent models and query builders using methods like saveQuietly(), deleteQuietly(), increment(), decrement(), and newQuery() to read and modify arbitrary database records, execute arbitrary SQL, and achieve remote code execution by injecting PHP into template code sections.
CVSS 9.3 · Critical · EPSS 0.8% · Fix available
- Published
- Updated
Stack: php
Affected products and versions
winter
- Versions
- ≥ 1.2.7, < 1.2.13: Affected (semver)
- 1.2.13: Not affected (semver)
Update to 1.2.13
winter/wn-system-module Packagist
- Versions
- v1.2.10
- v1.2.11
- v1.2.12
- v1.2.7
- v1.2.8
- v1.2.9
- Affected ranges
- ECOSYSTEM: ≥ 1.2.7, < 1.2.13
Update to 1.2.13