GHSA-q37h-jhf3-85cj: Wintercms/winter Bypass Of CMS Safe Mode Vulnerability
MODERATEGHSA-q37h-jhf3-85cj is a MODERATE bypass of cms safe mode vulnerability (General Security Weakness) affecting Wintercms/winter libraries in the Packagist ecosystem. The issue involves bypass of cms safe mode security feature. Remediation is available by upgrading affected packages to version 1.0.475, 1.1.9.
GHSA-q37h-jhf3-85cj at a Glance
How to Fix GHSA-q37h-jhf3-85cj
To remediate this vulnerability, upgrade all affected Wintercms/winter dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade wintercms/winter to 1.0.475
Upgrade wintercms/winter to 1.1.9
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for wintercms/winter
How to Check if You Are Affected
To determine whether your application is affected by GHSA-q37h-jhf3-85cj, inspect your project dependencies for Wintercms/winter:
inspect dependencies for wintercms/winter
Analyze the terminal output to locate any version of Wintercms/winter in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.475), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Wintercms/winter, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-q37h-jhf3-85cj Affected Wintercms/winter Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
wintercms/winter
|
Packagist |
< 1.0.475
|
1.0.475
|
|
wintercms/winter
|
Packagist |
≥ 1.1.0
< 1.1.9
|
1.1.9
|
References
Frequently Asked Questions
What is GHSA-q37h-jhf3-85cj?
Which Wintercms/winter versions are affected?
What version fixes GHSA-q37h-jhf3-85cj?
Is wintercms/winter affected?
What CWE is associated with GHSA-q37h-jhf3-85cj?
How can I check Packagist dependencies for GHSA-q37h-jhf3-85cj?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q37h-jhf3-85cj",
"modified" : "2022-07-15T21:37:28Z",
"published" : "2022-07-15T21:37:28Z",
"aliases" : [ ],
"summary" : "Bypass of CMS Safe Mode Security Feature",
"details" : "### Impact\n\nAuthenticated users with permissions to create or modify theme template objects through the backend \"CMS\" editor can exploit this vulnerability to bypass the `cms.enableSafeMode` security feature if enabled (disables modification of PHP code through the web interface when enabled).\n\nThis is only an issue for Winter CMS instances that rely on the Safe Mode security feature to prevent privileged users from modifying the PHP code of CMS theme template objects through the web interface.\n\nCVSS v3.1 Vector: [AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C](https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C&version=3.1)\n\n### Patches\n\nIssue has been fixed in v1.0.475, v1.1.9, & v1.2. \n\n### Workarounds\n\nApply https://github.com/wintercms/storm/commit/03eb5ce3f2a271670574802b914f7bcaf07663c1 manually if unable to upgrade to v1.0.475, v1.1.9, or v1.2.0.\n\n### References\n\nSee https://github.com/octobercms/october/security/advisories/GHSA-79jw-2f46-wv22/.\n\nCredit to [David Miller](https://github.com/cydave) for reporting the issue.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email us at [hello@wintercms.com](mailto:hello@wintercms.com)\n",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "wintercms/winter"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.475"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "wintercms/winter"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.1.0"
}, {
"fixed" : "1.1.9"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/wintercms/winter/security/advisories/GHSA-q37h-jhf3-85cj"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/wintercms/winter"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-07-15T21:37:28Z",
"nvd_published_at" : null
}
}