{"answers":{"affected":"6 open source packages ship an affected version, including winter/wn-cms-module. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-54149 in the wild and no public exploit code.","fix":"Upgrade winter/wn-cms-module to a fixed version for your release line: 1.0.476, 1.1.11 or 1.2.7.","what":"CVE-2024-54149 is a high-severity vulnerability in wintercms winter, published on 9 Dec 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-54149 and fix it if it is affected.\n\nWhat it is: CVE-2024-54149 is a high-severity vulnerability in wintercms winter, published on 9 Dec 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-54149 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- winter/wn-cms-module (Packagist): affected all versions; fixed in 1.0.476\n- winter/wn-cms-module (Packagist): affected all versions; fixed in 1.0.476\n- winter/wn-cms-module (Packagist): affected from 1.1.0; fixed in 1.1.11\n- winter/wn-cms-module (Packagist): affected from 1.1.0; fixed in 1.1.11\n- winter/wn-cms-module (Packagist): affected from 1.2.0; fixed in 1.2.7\n- winter/wn-cms-module (Packagist): affected from 1.2.0; fixed in 1.2.7\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-54149/ (Markdown: https://insights.sbomify.com/CVE-2024-54149/index.md)","id":"CVE-2024-54149","markdown":"https://insights.sbomify.com/CVE-2024-54149/index.md","name":"CVE-2024-54149","record":{"aliases":["GHSA-xhw3-4j3m-hq53"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_modify","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Winter CMS","requires_auth":"high_privilege","summary":"Authenticated users with template management permissions can bypass Twig sandbox restrictions to modify or delete theme and model data.","user_interaction":"required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"winter","vendor":"wintercms"}],"cvss":{"score":8.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-184","name":"Incomplete List of Disallowed Inputs"}],"description":"Winter is a free, open-source content management system (CMS) based on the Laravel PHP framework. Winter CMS prior to versions 1.2.7, 1.1.11, and 1.0.476 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`; or `cms.manage_partials`. The Winter CMS maintainers strongly recommend that these permissions only be reserved to trusted administrators and developers in general. The maintainers of Winter CMS have significantly increased the scope of the sandbox, effectively making all models and datasources read-only in Twig, in versions 1.2.7, 1.1.11, and 1.0.476. Thse who cannot upgrade may apply commit fb88e6fabde3b3278ce1844e581c87dcf7daee22 to their 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.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Winter CMS Modules allows a sandbox bypass in Twig templates leading to data modification and deletion","id":"CVE-2024-54149","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"security_feature_bypass","year":"2024"},"n_packages":6,"n_references":2,"next":{"headline":"Algorithm Confusion Vulnerability in cjwt","id":"CVE-2024-54150"},"packages":[{"ecosystem":"Packagist","fixed":["1.0.476"],"introduced":["0"],"last_affected":[],"package":"winter/wn-cms-module","purl":null,"source":"GHSA-xhw3-4j3m-hq53"},{"ecosystem":"Packagist","fixed":["1.0.476"],"introduced":["0"],"last_affected":[],"package":"winter/wn-cms-module","purl":"pkg:composer/winter/wn-cms-module","source":"GHSA-xhw3-4j3m-hq53"},{"ecosystem":"Packagist","fixed":["1.1.11"],"introduced":["1.1.0"],"last_affected":[],"package":"winter/wn-cms-module","purl":null,"source":"GHSA-xhw3-4j3m-hq53"},{"ecosystem":"Packagist","fixed":["1.1.11"],"introduced":["1.1.0"],"last_affected":[],"package":"winter/wn-cms-module","purl":"pkg:composer/winter/wn-cms-module","source":"GHSA-xhw3-4j3m-hq53"},{"ecosystem":"Packagist","fixed":["1.2.7"],"introduced":["1.2.0"],"last_affected":[],"package":"winter/wn-cms-module","purl":null,"source":"GHSA-xhw3-4j3m-hq53"},{"ecosystem":"Packagist","fixed":["1.2.7"],"introduced":["1.2.0"],"last_affected":[],"package":"winter/wn-cms-module","purl":"pkg:composer/winter/wn-cms-module","source":"GHSA-xhw3-4j3m-hq53"}],"prev":{"headline":"Gogs has a Path Traversal in file editing UI","id":"CVE-2024-54148"},"products":["winter"],"published":"2024-12-09","related":[{"cvss_score":10,"headline":"Winter: Privilege escalation by authenticated backend users","id":"CVE-2026-27591","kev_date_added":null,"published":"2026-03-11"},{"cvss_score":8.1,"headline":"Winter vulnerable to Prototype Pollution in Snowboard framework","id":"CVE-2022-39357","kev_date_added":null,"published":"2022-10-26"},{"cvss_score":7.2,"headline":"Winter CMS Server-Side Template Injection (SSTI) vulnerability","id":"CVE-2024-29686","kev_date_added":null,"published":"2024-03-29"},{"cvss_score":3.3,"headline":"Winter CMS Local File Inclusion through Server Side Template Injection","id":"CVE-2023-52085","kev_date_added":null,"published":"2023-12-29"},{"cvss_score":2,"headline":"Stored XSS through privileged upload of Media Manager file followed by renaming","id":"CVE-2023-52083","kev_date_added":null,"published":"2023-12-28"},{"cvss_score":2,"headline":"Winter CMS Stored XSS through Backend ColorPicker FormWidget","id":"CVE-2023-52084","kev_date_added":null,"published":"2023-12-28"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-12-10","vendors":["wintercms"]},"summary":"Authenticated users with template management permissions can bypass Twig sandbox restrictions to modify or delete theme and model data.","url":"https://insights.sbomify.com/CVE-2024-54149/"}