GHSA-vgxh-x8jv-hmff silverstripe/framework code execution vulnerability

Not scored Published

Attackers can execute arbitrary code if developers pass unsanitized user input to specific template rendering functions in SilverStripe.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-vgxh-x8jv-hmff?

GHSA-vgxh-x8jv-hmff is a code injection vulnerability in silverstripe/framework, published on 27 May 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

There is a vulnerability whereby arbitrary global functions may be executed if malicious user input is passed through to in the second argument of ViewableData::renderWith. This argument resolves associative arrays as template placeholders. This exploit requires that user code has been written which makes use of the second argument in renderWith and where user input is passed directly as a value in an associative array without sanitisation such as Convert::raw2xml().

ViewableData::customise is not vulnerable.

Which versions are affected by GHSA-vgxh-x8jv-hmff?

4 open source packages ship an affected version, including silverstripe/framework.

PackageAffectedFixed in
silverstripe/framework PackagistFrom 4.0.3-rc14.0.4
silverstripe/framework PackagistFrom 4.0.3-rc14.0.4
silverstripe/framework PackagistFrom 4.1.0-rc14.1.1
silverstripe/framework PackagistFrom 4.1.0-rc14.1.1

How do I fix GHSA-vgxh-x8jv-hmff?

Upgrade silverstripe/framework to a fixed version for your release line: 4.0.4 or 4.1.1.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is GHSA-vgxh-x8jv-hmff being exploited?

There is no known exploitation of GHSA-vgxh-x8jv-hmff in the wild and no public exploit code.

Sources

Is GHSA-vgxh-x8jv-hmff in your software?

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

Check your SBOMs for free