Loading...
Skip to main content

CVE-2024-54149 — Vulnerability in winter/wn-cms-module — CVE Details

HIGH

Winter CMS Modules allows a sandbox bypass in Twig templates leading to data modification and deletion

Published December 9, 2024Updated September 10, 2026Source: osv

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_layouts` - `cms.manage_pages` - `cms.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 (672 days ago).
  • Last revised September 10, 2026 — 639 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update winter/wn-cms-module to 1.0.476 or later
composer require "winter/wn-cms-module:^1.0.476"
Composer
Update winter/wn-cms-module to 1.1.11 or later
composer require "winter/wn-cms-module:^1.1.11"
Composer
Update winter/wn-cms-module to 1.2.7 or later
composer require "winter/wn-cms-module:^1.2.7"

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: packagist (1).

PackageEcosystemAffectedFixed In
winter/wn-cms-module
packagist
v1.0.473, v1.0.474, v1.0.4751.0.476
winter/wn-cms-module
packagist
v1.1.10, v1.1.2, v1.1.3, v1.1.4 (+5 more)1.1.11
winter/wn-cms-module
packagist
v1.2.0, v1.2.1, v1.2.2, v1.2.3 (+3 more)1.2.7

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.4 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H

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. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-54149 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.4

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-xhw3-4j3m-hq53

Related CVEs

  • CVE-2026-65954
    HIGH

    PHPCSUtils: Remote code execution via eval() in AbstractArrayDeclarationSniff::getActualArrayKey()

  • CVE-2026-61825
    HIGH

    code16/sharp has a stored XSS via data-html-content Sanitizer Bypass

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies