CVE-2026-91115: Remote Code Execution in Silverstripe Framework via i18nTextCollectorTask
Vulnerability ID: CVE-2026-91115
CVSS Score: 8.8
Published: 2026-11-16
CVE-2026-91115 (GHSA-c94f-87xg-65wf) is an unsafe reflection vulnerability in the Silverstripe Framework affecting versions 6.0.0 prior to 6.2.13. The built-in development task i18nTextCollectorTask passes the user-supplied 'writer' parameter directly to Silverstripe's dependency injection container (Injector::inst()->get()) without verifying that the requested class implements the expected Writer interface. Because the dependency injector supports instantiating arbitrary classes with attacker-supplied constructor arguments, and because nested task URLs bypassed interactive confirmation middleware, an attacker can achieve remote code execution via unauthenticated requests on development instances or via Cross-Site Request Forgery (CSRF) against authenticated administrators on production instances.
TL;DR
An unsafe reflection flaw in Silverstripe Framework's i18nTextCollectorTask allows attackers to instantiate arbitrary PHP classes with controlled constructor arguments via the 'writer' parameter, compounded by a route validation flaw in DevelopmentAdminConfirmationMiddleware that bypasses interactive user confirmation.
Technical Details
- CVE ID: CVE-2026-91115 (GHSA-c94f-87xg-65wf)
- Weakness Class: CWE-470 (Unsafe Reflection / Arbitrary Class Instantiation)
- CVSS v3.1 Score: 8.8 High (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H)
- Affected Component: SilverStripe\Dev\Tasks\i18nTextCollectorTask & DevelopmentAdminConfirmationMiddleware
- Affected Versions: silverstripe/framework >= 6.0.0, < 6.2.13
- Patched Version: silverstripe/framework 6.2.13
- Impact: Remote Code Execution (RCE)
- CISA KEV Status: Not Listed
Affected Systems
- silverstripe/framework (>= 6.0.0, < 6.2.13)
- Silverstripe CMS 6.x prior to 6.2.13
-
silverstripe/framework: >= 6.0.0, < 6.2.13 (Fixed in:
6.2.13)
Code Analysis
Commit: 2df498b
Merge pull request #12035 enforcing Writer interface validation in i18nTextCollectorTask and hierarchical route resolution in DevelopmentAdminConfirmationMiddleware
--- a/src/Dev/Tasks/i18nTextCollectorTask.php
+++ b/src/Dev/Tasks/i18nTextCollectorTask.php
@@ -2,10 +2,12 @@
namespace SilverStripe\Dev\Tasks;
+use InvalidArgumentException;
use SilverStripe\Core\Environment;
use SilverStripe\Core\Injector\Injector;
use SilverStripe\Dev\BuildTask;
use SilverStripe\PolyExecution\PolyOutput;
+use SilverStripe\i18n\Messages\Writer;
use SilverStripe\i18n\TextCollection\i18nTextCollector;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
@@ -36,6 +38,9 @@ protected function execute(InputInterface $input, PolyOutput $output): int
// Custom writer
$writerName = $input->getOption('writer');
if ($writerName) {
+ if (!is_a($writerName, Writer::class, true)) {
+ throw new InvalidArgumentException('The writer option must be the name of a class that implements ' . Writer::class);
+ }
$writer = Injector::inst()->get($writerName);
$collector->setWriter($writer);
}
--- a/src/Control/Middleware/DevelopmentAdminConfirmationMiddleware.php
+++ b/src/Control/Middleware/DevelopmentAdminConfirmationMiddleware.php
@@ -43,6 +43,11 @@ public function hasAccess(HTTPRequest $request)
$url = rtrim($request->getURL(), '/');
$registeredRoutes = DevelopmentAdmin::singleton()->getLinks();
+ // Walk up the path until we find a registered route, e.g.
+ // dev/tasks/queue/MyTask -> dev/tasks/queue -> dev/tasks
+ while (!isset($registeredRoutes[$url]) && strpos($url, '/') !== false) {
+ $url = substr($url, 0, strrpos($url, '/'));
+ }
// Permissions were already checked when generating the links list, so if
// it's in the list the user has access.
return isset($registeredRoutes[$url]);
Mitigation Strategies
- Upgrade silverstripe/framework to version 6.2.13 or later to enforce strict interface validation on the writer option and recursive route confirmation checks.
- Ensure all internet-accessible Silverstripe installations are configured with SS_ENVIRONMENT_TYPE="live" to prevent unauthenticated access to /dev/ endpoints.
- Restrict HTTP access to the /dev/ path prefix at the web server (Nginx/Apache) or WAF layer, executing build tasks exclusively via the CLI (sake) where possible.
Remediation Steps:
- Audit Composer dependencies using 'composer show silverstripe/framework' to identify installations running versions >= 6.0.0 and < 6.2.13.
- Run 'composer update silverstripe/framework:^6.2.13' and deploy the updated composer.lock file to all environments.
- Inspect environment configuration files (.env) across all public-facing servers to verify that SS_ENVIRONMENT_TYPE is set to 'live'.
- Review HTTP access logs for requests matching '/dev/tasks/SilverStripe-Dev-Tasks-i18nTextCollectorTask' with a 'writer=' query parameter.
References
- Silverstripe Official Security Advisory: CVE-2026-91115
- GitHub Security Advisory: GHSA-c94f-87xg-65wf
- GitHub Pull Request #12035
- GitHub Patch Commit 2df498b1fad25db95dbd882117dcd0527a5fdbfa
- Silverstripe Framework 6.2.13 Release Notes
- National Vulnerability Database (NVD): CVE-2026-91115
- CVE.org Record: CVE-2026-91115
- FriendsOfPHP Security Advisory: CVE-2026-91115
Read the full report for CVE-2026-91115 on our website for more details including interactive diagrams and full exploit analysis.
Top comments (0)