GHSA-q37h-jhf3-85cj: Wintercms/winter Bypass Of CMS Safe Mode Vulnerability

MODERATE
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-q37h-jhf3-85cj
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Wintercms/winter
Package Ecosystem Packagist
Published Date
Last Updated

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.

wintercms/winter fixed: 1.0.475
Upgrade wintercms/winter to 1.0.475
wintercms/winter fixed: 1.1.9
Upgrade wintercms/winter to 1.1.9
Verify Direct and Transitive Dependencies

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

### Impact Authenticated 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). This 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. CVSS 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) ### Patches Issue has been fixed in v1.0.475, v1.1.9, & v1.2. ### Workarounds Apply https://github.com/wintercms/storm/commit/03eb5ce3f2a271670574802b914f7bcaf07663c1 manually if unable to upgrade to v1.0.475, v1.1.9, or v1.2.0. ### References See https://github.com/octobercms/october/security/advisories/GHSA-79jw-2f46-wv22/. Credit to [David Miller](https://github.com/cydave) for reporting the issue. ### For more information If you have any questions or comments about this advisory: * Email us at [hello@wintercms.com](mailto:hello@wintercms.com)

GHSA-q37h-jhf3-85cj Affected Wintercms/winter Versions

2 component(s)
Fixed Versions:
1.0.4751.1.9
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?
GHSA-q37h-jhf3-85cj is a security vulnerability in Wintercms/winter involving Bypass of CMS Safe Mode Security Feature under General Security Weakness.
Which Wintercms/winter versions are affected?
Affected versions include releases prior to 1.0.475, 1.1.9 across affected packages: wintercms/winter.
What version fixes GHSA-q37h-jhf3-85cj?
Upgrading to 1.0.475, 1.1.9 (or the latest patched release for your respective branch) resolves the vulnerability.
Is wintercms/winter affected?
Yes, wintercms/winter is affected in releases prior to 1.0.475, 1.1.9. Upgrade your dependency to 1.0.475, 1.1.9 or later.
What CWE is associated with GHSA-q37h-jhf3-85cj?
GHSA-q37h-jhf3-85cj is classified under General Security Weakness.
How can I check Packagist dependencies for GHSA-q37h-jhf3-85cj?
Run the dependency tree command: 'inspect dependencies for wintercms/winter'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}