GHSA-f43j-8hq4-2xj9 silverstripe/framework uploaded PHP script execution in assets
Attackers can execute uploaded PHP scripts in the assets directory via crafted URLs, leading to remote code execution.
- 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-f43j-8hq4-2xj9?
GHSA-f43j-8hq4-2xj9 is a 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
A weakness in the .htaccess rules preventing requests to uploaded PHP scripts allows PHP scripts that had made their way into the assets directory to be successfully executed through the use of a specially crafted URL. There are protections in place to disallow upload of PHP scripts through the CMS, meaning this weakness does not lead to direct vulnerabilities.
In addition, sites hosted on the New Zealand Common Web Platform or SilverStripe Platform have additional configuration in place which prevents PHP script execution in assets, even in a malicious party manages to upload these into the folder.
Which versions are affected by GHSA-f43j-8hq4-2xj9?
4 open source packages ship an affected version, including silverstripe/framework.
| Package | Affected | Fixed in |
|---|---|---|
silverstripe/framework Packagist | From 4.0.0-rc1 | 4.0.4 |
silverstripe/framework Packagist | From 4.0.0-rc1 | 4.0.4 |
silverstripe/framework Packagist | From 4.1.0-rc1 | 4.1.1 |
silverstripe/framework Packagist | From 4.1.0-rc1 | 4.1.1 |
How do I fix GHSA-f43j-8hq4-2xj9?
Upgrade silverstripe/framework to a fixed version for your release line: 4.0.4 or 4.1.1.
Is GHSA-f43j-8hq4-2xj9 being exploited?
There is no known exploitation of GHSA-f43j-8hq4-2xj9 in the wild and no public exploit code.