PT-2024-36072 · Unknown · Winter Cms

Bennothommo

·

Published

2024-12-09

·

Updated

2025-06-24

·

CVE-2024-54149

CVSS v3.1

8.4

High

VectorAV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions: Winter CMS versions prior to 1.2.7 Winter CMS versions prior to 1.1.11 Winter CMS versions prior to 1.0.476
Description: The issue allows 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 manipulate model data if models are passed directly to Twig, including changing attributes or even removing records entirely. 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, or cms.manage partials. The Winter CMS maintainers strongly recommend that these permissions only be reserved to trusted administrators and developers in general.
Recommendations: For Winter CMS versions prior to 1.2.7, update to version 1.2.7 or later to resolve the issue. For Winter CMS versions prior to 1.1.11, update to version 1.1.11 or later to resolve the issue. For Winter CMS versions prior to 1.0.476, update to version 1.0.476 or later to resolve the issue. As a temporary workaround, consider applying commit fb88e6fabde3b3278ce1844e581c87dcf7daee22 to the Winter CMS installation manually to resolve the issue. In the rare event that a Winter user was relying on being able to write to models/datasources within their Twig templates, they should instead use or create components to make changes to their models.

Exploit

Fix

Incomplete List of Disallowed Inputs

Weakness Enumeration

Related Identifiers

CVE-2024-54149
GHSA-XHW3-4J3M-HQ53

Affected Products

Winter Cms