CVE-2026-79774Winter CMS before 1.2.13 Twig Sandbox Escape via SecurityPolicy
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.
What to do
Fixed builds are available from Packagist: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Packagist library | winter/wn-system-module | Fixed | 1.2.13 | GHSA-8cfw-pcwh-v63w |
What the vendor says
As published in the CVE record by VulnCheck, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- wintercms winter: affected: 1.2.7 to before 1.2.13, 1.2.13 not affected; fixed in
1.2.13
Vendor advisories:
- https://github.com/wintercms/winter/security/advisories/GHSA-8cfw-pcwh-v63w (vendor-advisory)
- https://github.com/wintercms/winter/commit/725bbcda232466f7f71381c271c6916573d576e6 (patch)
References
- https://github.com/wintercms/winter/security/advisories/GHSA-8cfw-pcwh-v63w
- https://github.com/wintercms/winter/commit/725bbcda232466f7f71381c271c6916573d576e6
- https://www.vulncheck.com/advisories/winter-cms-before-twig-sandbox-escape-via-securitypolicy
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.