SA-CORE-2026-017 is a Drupal Core security advisory published on November 18, 2026 for a Remote Code Execution vulnerability identified as CVE-2026-132165. The advisory is currently rated Highly critical with a Drupal security risk score of 20/25.
The vulnerability involves Drupal’s web installer, available at /core/install.php. Under specific conditions, an attacker can attempt to reinstall an existing Drupal site, potentially leading to site takeover or remote code execution.
This is not only a theoretical concern: the Drupal Security Team reports having received information that the issue was exploited on live websites as early as November 19, 2026 at 19:00 UTC.
In addition to updating Drupal Core, Drupal now explicitly recommends blocking access to the installer after installation.
SA-CORE-2026-017 at a glance
| Advisory | SA-CORE-2026-017 |
|---|---|
| CVE | CVE-2026-132165 |
| Type | Remote Code Execution |
| Severity | Highly critical — 20/25 |
| Published | November 18, 2026 |
| Exploitation reported | Yes, from November 19, 2026 at 19:00 UTC according to Drupal |
| Affected component | Drupal installer — /core/install.php |
The official advisory is available on Drupal.org.
Affected and fixed Drupal versions
Drupal lists the vulnerable version constraints as:
<10.6.22
|| >=11.0.0 <11.3.22
|| >=11.4.0 <11.4.13| Branch | Fixed version | Status as of November 25, 2026 |
|---|---|---|
| Drupal 11.4.x | 11.4.13 | Recommended stable branch, security coverage until April 2027 |
| Drupal 11.3.x | 11.3.22 | Temporarily supported, security coverage scheduled to end in December 2026 |
| Drupal 10.6.x | 10.6.22 | Last Drupal 10 minor, Drupal 10 EOL scheduled for December 9, 2026 |
| Drupal 11.2.x and earlier | — | End of life, no security coverage |
| Drupal 10.5.x and earlier | — | End of life, no security coverage |
| Drupal 8 / Drupal 9 | — | End of life |
Sites still running Drupal 10.6 or 11.3 must apply the security fix, but they should also include the next branch upgrade in their maintenance plan. Drupal 11.4.x currently provides the longest security coverage among stable releases.
Exposure conditions
Drupal Core includes a web installer at:
/core/install.phpThis script is required when installing Drupal through a browser, but it is normally unnecessary once the website has been installed.
According to the advisory, under specific conditions an attacker can use the installer to attempt to reinstall Drupal. A successful reinstall may result in site takeover or remote code execution.
Drupal states that some exploit paths are mitigated when the web server cannot write to settings.php or change its permissions. This is not a complete mitigation: the advisory explicitly states that it does not cover every possible path.
A read-only settings.php must therefore not be considered a substitute for updating Drupal and blocking access to install.php.
Root cause: installer permission handling
The public fix is particularly interesting because it changes a long-standing installer behaviour.
Before the fixed releases, if settings.php existed but was not writable, the installer could attempt to adjust its permissions automatically so that installation could continue.
The file verification API historically used by the installer could check file state and, by default, attempt to fix permissions in order to satisfy the requested state.
Conceptually, the previous behaviour can be represented as:
// Conceptual representation of the previous behaviour.
if (!is_writable($settings_file)) {
// The installer could attempt to change the permissions.
attempt_to_make_writable($settings_file);
}This example is deliberately simplified. It illustrates the security-relevant behaviour without reproducing an exploitation path.
In the fixed releases, Drupal checks the file state and fails explicitly when the file is not writable:
// Conceptual representation of the fixed behaviour.
$readable = check_readable($settings_file);
$writable = check_writable($settings_file);
if (!$writable) {
// Installation stops with an error.
}The Drupal 10.6.22, 11.3.22 and 11.4.13 release notes state this directly: the installer no longer attempts to make settings.php writable automatically. Instead, it reports an error and requires explicit administrator action.
From a defensive point of view, this changes an important trust boundary: a remotely reachable HTTP process should not automatically relax permissions on a sensitive configuration file in order to continue an installation.
Why settings.php permissions are not enough
After installation, settings.php should normally not be writable by the web server process.
For example, on a Unix-like deployment:
chmod go-w web/sites/default/settings.php
chmod go-w web/sites/defaultThe exact path and ownership model depend on the deployment architecture.
This reduces the attack surface, but SA-CORE-2026-017 explicitly says that preventing the web server from modifying the file or its permissions only mitigates some exploit paths.
The appropriate strategy is therefore cumulative:
- update Drupal Core;
- protect
settings.phppermissions; - block HTTP access to
/core/install.phpafter installation.
Securing install.php after installation
Drupal now explicitly recommends blocking the installer once the website has been installed.
Apache virtual host configuration
<Location "/core/install.php">
Require all denied
</Location>Check the configuration before reloading Apache:
apachectl configtestThis Location directive belongs in the Apache server configuration, not in .htaccess.
Nginx
location ^~ /core/install.php {
return 404;
}Then validate the configuration:
nginx -tThe ^~ modifier is important because it also covers paths beginning with /core/install.php and prevents another PHP location rule from taking over the request.
Apache using .htaccess
<Files "install.php">
Require all denied
</Files>Be careful when editing Drupal’s .htaccess: it is a Composer scaffold file and may be replaced during composer install or an update.
If this approach is required, persist the custom rule through the project’s drupal-scaffold configuration rather than relying on a manual modification of the generated file.
Removing install.php
Deleting core/install.php is also possible, but Composer will restore it when Drupal Core is installed or updated.
If you choose this approach, the removal must therefore be automated in the deployment process. A web-server rule is generally easier to maintain.
Verify that install.php is actually blocked
curl -I https://example.com/core/install.php
curl -IL https://example.com/install.php
curl -I https://example.com/core/install.php/fooThese requests should end with a 403 or 404. A 200 response means the protection is not effective.
Blocking install.php does not block:
/update.phpand it does not prevent:
drush updatedbIf a new site must be added to a multisite installation, installer access can be enabled temporarily, or drush site:install can be used instead. Drush does not use the web installer.
Updating Drupal Core
First, identify the installed version:
drush status
composer show drupal/core-recommended
composer show drupal/coreFor a standard Composer-managed Drupal project:
composer update "drupal/core-*" --with-all-dependenciesDrupal 11.4.13
composer require \
drupal/core-recommended:11.4.13 \
drupal/core-composer-scaffold:11.4.13 \
drupal/core-project-message:11.4.13 \
--update-with-all-dependenciesDrupal 11.3.22
composer require \
drupal/core-recommended:11.3.22 \
drupal/core-composer-scaffold:11.3.22 \
drupal/core-project-message:11.3.22 \
--update-with-all-dependenciesDrupal 10.6.22
composer require \
drupal/core-recommended:10.6.22 \
drupal/core-composer-scaffold:10.6.22 \
drupal/core-project-message:10.6.22 \
--update-with-all-dependenciesAfter deployment:
drush updatedb -y
drush cache:rebuild
composer auditKnown issue in the November 18 security releases
The release notes also document a theme registry regression that may affect some contributed and custom code, including Search API.
Sites may encounter messages such as:
Theme hook field not found.
Theme hook time not found.Drupal plans to fix the issue in Drupal 11.4.14. For affected Drupal 10.6.22 and 11.3.22 sites, Drupal recommends preparing an upgrade to Drupal 11.4 so that the fixed release can be applied when available.
This regression is not a reason to remain on a Drupal release vulnerable to SA-CORE-2026-017.
Post-deployment checks
drush status
drush updatedb:status
composer audit
curl -I https://example.com/core/install.php
curl -I https://example.com/core/install.php/fooAlso review:
- Drupal and PHP logs;
- Apache or Nginx logs;
- critical user journeys;
settings.phpand site directory permissions;- possible theme registry errors introduced by the security release;
- the deployed
composer.lock.
What to do if compromise is suspected
Requests to install.php do not by themselves prove that a site was compromised. However, given the report of active exploitation, significant installer-related activity should be investigated carefully.
Avoid immediately deleting suspicious files or clearing logs, as this may destroy useful evidence.
A reasonable incident response process includes:
- record the detection time and initial observations;
- preserve available web, PHP, Drupal, operating system and database logs;
- preserve the state of the code and relevant files before major changes;
- isolate the system or reduce exposure if active compromise is plausible;
- look for unexpected changes to code, configuration, accounts and executable files;
- identify potentially exposed secrets, including administrator accounts, database credentials, API keys, private keys and deployment credentials;
- rotate affected secrets after containment;
- restore or rebuild from a known-good source if system integrity can no longer be established with confidence;
- apply the security fix and harden installer access before returning the site to service.
For a real incident, evidence preservation, legal requirements and notification obligations should be considered before altering the affected systems.
FAQ
Has SA-CORE-2026-017 been exploited in the wild?
Yes. Drupal reports having received information that exploitation occurred on live sites as early as November 19, 2026 at 19:00 UTC.
Is a read-only settings.php enough?
No. Drupal states that this mitigates some attack paths but not all of them. Updating Drupal and blocking HTTP access to install.php are still required.
Should core/install.php be deleted?
Not necessarily. Blocking it at the web-server layer is the preferred approach. If the file is deleted, remember that Composer will restore it when Drupal Core is installed or updated.
Does blocking install.php prevent Drupal updates?
No. update.php is a separate script, and database updates can also be performed with Drush.
Does drush site:install use install.php?
No. Drupal’s documentation states that drush site:install does not use the web installer.
Which Drupal branch should be preferred now?
For compatible sites, Drupal 11.4.x currently offers the longest stable security coverage. Drupal 11.3.x and Drupal 10.6.x are approaching the end of their security coverage in December 2026.
Conclusion
SA-CORE-2026-017 should not be treated as just another Core update.
The fix removes the installer’s previous ability to automatically relax settings.php permissions when the file is not writable, while Drupal also recommends eliminating the unnecessary attack surface by blocking /core/install.php after installation.
For production sites, the priorities are clear: update Drupal Core, review configuration-file permissions, block the web installer at the server level and investigate available logs if the site was exposed during the period in which exploitation was reported.
Related content:
- Drupal maintenance, updates and technical support
- Drupal website audit
- SA-CORE-2026-004: Highly critical SQL Injection vulnerability in Drupal Core