PHP script execution vulnerability in silverstripe/framework

silverstripe/framework Updated 02 Oct 2025

Summary

27/05/2024
MODERATE
Yes i
Moderate
Not published

GHSA-f43j-8hq4-2xj9: silverstripe/framework uploaded PHP script execution in assets. Affects silverstripe/framework across 2 version ranges.

>= 4.0.0-rc1, < 4.0.4 >= 4.1.0-rc1, < 4.1.1

Fixed in 4.0.4 or 4.1.1, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

silverstripe/framework is a PHP framework used for building websites and web applications. It provides a range of features and functionalities to developers, including content management, templating, and database management. However, a vulnerability has been identified in the framework that allows for the execution of PHP scripts uploaded to the assets directory.

Vulnerability Detail

The vulnerability arises from a weakness in the .htaccess rules that are supposed to prevent requests to uploaded PHP scripts. This weakness allows specially crafted URLs to successfully execute PHP scripts that have made their way into the assets directory. It is important to note that there are protections in place within the CMS to disallow the upload of PHP scripts, mitigating the direct impact of this vulnerability. Additionally, sites hosted on the New Zealand Common Web Platform or SilverStripe Platform have additional configurations that prevent PHP script execution in the assets folder, even if malicious actors manage to upload PHP scripts.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 4.0.0-rc1, < 4.0.4 4.0.4
    composer require silverstripe/framework:4.0.4
  • >= 4.1.0-rc1, < 4.1.1 4.1.1
    composer require silverstripe/framework:4.1.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability.

Conclusion

The PHP script execution vulnerability in silverstripe/framework allows for the execution of PHP scripts uploaded to the assets directory. However, the impact of this vulnerability is mitigated by protections in the CMS and additional configurations on certain hosting platforms. It is crucial to update the silverstripe/framework package to the fixed versions mentioned to ensure the vulnerability is patched. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for silverstripe/framework →

Share this vulnerability

FAQ

silverstripe/framework is a PHP framework used for building websites and web applications. It provides developers with a range of features and functionalities, including content management, templating, and database management.

The vulnerability allows for the execution of PHP scripts that have been uploaded to the assets directory. However, there are protections in place within the CMS to disallow the upload of PHP scripts, mitigating the direct impact of this vulnerability. Additionally, sites hosted on the New Zealand Common Web Platform or SilverStripe Platform have additional configurations that prevent PHP script execution in the assets folder.

To fix this vulnerability, it is recommended to update the silverstripe/framework package to the fixed versions mentioned in the 'how_to_fix' section.

No specific workarounds have been mentioned for this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for silverstripe/framework.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 4.0.0-rc1, < 4.0.4 4.0.4
    composer require silverstripe/framework:4.0.4
  • >= 4.1.0-rc1, < 4.1.1 4.1.1
    composer require silverstripe/framework:4.1.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback