Drupal Installer Flaw CVE-2026-132165 Now Exploited: Unauthenticated Attackers Can Reinstall Live Sites for Takeover or RCE — Update to 10.6.22, 11.3.22 or 11.4.13 and Block install.php

Drupal has raised SA-CORE-2026-017 to highly critical after reports that attackers began abusing the core installer to reinstall live sites about a day after the 18 November fix, so admins must update and block install.php now.
Drupal's Security Team has raised its installer flaw, CVE-2026-132165 (SA-CORE-2026-017), from "Critical" to "Highly critical" (20/25). It now says the bug has been exploited on live sites. The flaw lets an unauthenticated attacker use Drupal's own installer, install.php, to try to reinstall a site that is already running. The advisory says this "can lead to a site takeover or remote code execution."
Fixes have been out since 18 November in Drupal 10.6.22, 11.3.22 and 11.4.13. Any site that has not updated, or that still serves the installer to the internet, should be treated as at risk.
What Happened
The Drupal Security Team published SA-CORE-2026-017 on 18 November 2026. The security releases went live at 20:44 Mauritius time (16:44 UTC). At first the advisory scored the issue 18/25 with a "Proof" exploit marker, meaning a working proof of concept existed but no attacks had been seen.
The advisory has since been updated. The score is now 20/25, the exploit marker has changed from E:Proof to E:Exploit, and this line was added: the team "has received a report this was exploited on live sites as early as 2026-11-19 19:00 UTC". That is 23:00 Mauritius time on 19 November (19:00 UTC), roughly 26 hours after the patch came out.
The advisory does not say how many sites were hit or who reported the attacks. At least one European hosting provider published an incident notice saying it had blocked /core/install.php and /install.php across its platform after the disclosure. It did not report any customer compromises.
The Security Team released a moderately critical fix in the same batch: CVE-2026-132166 (SA-CORE-2026-018, 14/25). This is a "gadget chain" in core, a set of existing methods that can be chained into code execution, but only if the site also has a separate insecure-deserialization bug that passes attacker input to unserialize(). Drupal says that issue "is not directly exploitable" and no attacks have been reported. It is fixed by the same releases.
Technical Details
The installer exists to set up a new Drupal site. It asks for database credentials, writes settings.php and creates the first administrator account. On a finished site it should do nothing. But core/install.php ships with every release, and Composer puts it back on every install or update.
According to the advisory, "under specific conditions, an attacker can use the installer to attempt to reinstall Drupal". The Security Team has not published the exact trigger. The public risk vector gives the shape of it:
- AC:Complex: the attack needs particular conditions, not just one request.
- A:None: no account or login is required.
- CI:All / II:All: full loss of confidentiality and integrity if it works.
- TD:Uncommon: only some site configurations are exploitable, not every install.
The clearest clue is the advisory's note that "some (but not all) exploit paths are mitigated if the web server cannot write to or change permissions on settings.php." When a reinstall succeeds, the attacker controls the database connection and the new administrator account. From there, code execution is the usual path. Independent researchers point out that exposure is not limited to the public internet. Anyone who can reach install.php from an internal network or a staging environment can attempt the attack.
The 11.4.13 release also changes installer behaviour. If settings.php is not writable, the installer used to try to fix the file's permissions on its own. It now stops with an error. Drupal says this affects new installations only, not existing sites.
The advisory credits Anthropic's OSS Scanner with discovering the flaw (tracked there as ANT-2026-GMRPK0BU), alongside reporters from the Drupal community. It is another bug found by AI and then patched and exploited within days.
Who Is Affected
- Drupal core before 10.6.22
- Drupal core 11.0.0 to 11.3.21
- Drupal core 11.4.0 to 11.4.12
Drupal 11.2.x and older, 10.5.x and older, and all of Drupal 8 and 9 are end-of-life and will not get a fix. Sites on those branches need to move to a supported branch or, at the very least, block the installer now.
Drupal Steward customers are, according to the advisory, "already protected from known attack vectors", but they should still update.
Patch Status
Update to Drupal 11.4.13, 11.3.22 or 10.6.22. On Composer-managed 11.4 sites, the release notes give this command:
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-dependencies
drush updatedb
drush cache:rebuild
One known problem: 11.4.13 introduced a theme registry regression ("Theme hook field not found", seen with Search API among others). Drupal says it will be fixed in 11.4.14. If it affects you, keep the security update and block the installer anyway. Don't roll back.
What To Do Now
Block the installer on every site, even after patching. Drupal updated its installer-hardening guide on 21 November. For Apache, put the rule in the virtual host, not .htaccess, where this block causes a 500 error:
<Location "/core/install.php">
Require all denied
</Location>
For Nginx, use a prefix match so that paths like /core/install.php/foo are blocked as well:
location ^~ /core/install.php {
return 404;
}
On shared hosting, a <Files "install.php"> block in .htaccess works. Composer's scaffold overwrites .htaccess, though, so add the rule through the drupal-scaffold append mapping or it will disappear on the next update. Blocking the installer does not affect update.php or drush updatedb. If you need a fresh install, use drush site:install.
Verify that each of these returns 403 or 404, not 200:
curl -I https://example.com/core/install.php
curl -IL https://example.com/install.php
curl -I https://example.com/core/install.php/foo
Lock down settings.php so the web server user cannot write to it or change its permissions:
chmod 444 web/sites/default/settings.php
chmod 555 web/sites/default
Hunt for signs of compromise if your site was exposed and unpatched after 23:00 Mauritius time on 19 November (19:00 UTC):
- Search web server logs for requests to
install.php, especially POSTs, since the site went live. - Check whether
settings.phphas changed: modification time, database credentials,hash_salt. - Look for new or renamed administrator accounts and unexpected changes to user 1.
- Look for unfamiliar PHP files under
sites/*/filesand new modules or themes. - If you find any of these, restore from a known-good backup, rotate database and admin credentials, and change
hash_salt.
Why It Matters
Coming weeks after an exploited Drupal Commerce access bypass, this core flaw went from patch to reported attack in about a day. The installer is a dependable target because it is on almost every site, it is often forgotten after launch, and Composer quietly restores it on every update. Drupal's advice now matches what attackers have shown: patch, then make sure install.php can never be reached in production again.
