CVE-2024-54149 — Vulnerability in winter/wn-cms-module — CVE Details
Winter CMS Modules allows a sandbox bypass in Twig templates leading to data modification and deletion
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.82%). Schedule for your next planned update.
Does your project use an affected winter/wn-cms-module version?
Paste your composer.lock to check it for CVE-2024-54149 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
Affected versions of Winter CMS allow users with access to the CMS templates sections that modify Twig files to bypass the sandbox placed on Twig files and modify resources such as theme customisation values or modify, or remove, templates in the theme even if not provided direct access via the permissions.
As all objects passed through to Twig are references to the live objects, it is also possible to also manipulate model data if models are passed directly to Twig, including changing attributes or even removing records entirely. In most cases, this is unwanted behavior and potentially dangerous.
To actively exploit this security issue, an attacker would need access to the Backend with a user account with any of the following permissions:
cms.manage_layoutscms.manage_pagescms.manage_partials
The Winter CMS maintainers strongly recommend that these permissions only be reserved to trusted administrators and developers in general.
Patches
In order to mitigate this issue, we have significantly increased the scope of the sandbox, effectively making all models and datasources read-only in Twig.
This security issue has been fixed as of https://github.com/wintercms/winter/commit/fb88e6fabde3b3278ce1844e581c87dcf7daee22.
Workarounds
If you cannot upgrade, you may apply commit https://github.com/wintercms/winter/commit/fb88e6fabde3b3278ce1844e581c87dcf7daee22 to your Winter CMS installation manually to resolve this issue.
In the rare event that you were relying on being able to write to models/datasources within your Twig templates, you should instead use or create components to make changes to your models.
Advisory Timeline
- First published December 9, 2024 (717 days ago).
- Last revised September 10, 2026 — 639 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "winter/wn-cms-module:^1.2.7"
composer require "winter/wn-cms-module:^1.1.11"
composer require "winter/wn-cms-module:^1.0.476"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: Packagist (1).
| Package | Fixed In |
|---|---|
| winter/wn-cms-module Packagist · Affected: v1.2.0, v1.2.1, v1.2.2, v1.2.3 (+3 more) | 1.2.7 |
| winter/wn-cms-module Packagist · Affected: v1.1.10, v1.1.2, v1.1.3, v1.1.4 (+5 more) | 1.1.11 |
| winter/wn-cms-module Packagist · Affected: v1.0.473, v1.0.474, v1.0.475 | 1.0.476 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-184
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.4 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
References
Frequently Asked Questions
- What is CVE-2024-54149?
- Winter CMS Modules allows a sandbox bypass in Twig templates leading to data modification and deletion. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.4/10).
- How do I check if my project is affected by CVE-2024-54149?
- CVE-2024-54149 affects winter/wn-cms-module. It has a 0.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-54149 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 54.4% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-103035HIGH
TeamPass folder re-parenting authorization bypass
- CVE-2026-110782HIGH
SAML2: Incomplete fix of CVE-2026-49283: unsigned embedded Response bypasses HTTP-Artifact signature verification (no embedded-Issuer binding)