GHSA-q37h-jhf3-85cj Bypass of CMS Safe Mode Security Feature

Not scored Published

Privileged users can bypass Safe Mode to modify PHP code in theme templates, enabling arbitrary code execution.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-q37h-jhf3-85cj?

GHSA-q37h-jhf3-85cj is a vulnerability in wintercms/winter, published on 15 Jul 2022. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

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

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 for reporting the issue.

For more information

If you have any questions or comments about this advisory:

Which versions are affected by GHSA-q37h-jhf3-85cj?

4 open source packages ship an affected version, including wintercms/winter.

PackageAffectedFixed in
wintercms/winter PackagistAll versions1.0.475
wintercms/winter PackagistAll versions1.0.475
wintercms/winter PackagistFrom 1.1.01.1.9
wintercms/winter PackagistFrom 1.1.01.1.9

How do I fix GHSA-q37h-jhf3-85cj?

Upgrade wintercms/winter to a fixed version for your release line: 1.0.475 or 1.1.9.

Is GHSA-q37h-jhf3-85cj being exploited?

There is no known exploitation of GHSA-q37h-jhf3-85cj in the wild and no public exploit code.

Sources

Is GHSA-q37h-jhf3-85cj in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free