Drupal Security Update: Installer Flaw Under Attack, Patch Now
Share: https://www.ellixorlabs.com/blog/drupal-security-update-install-php-flaw-cve-2026-132165 (copy URL for iMessage or social)
Published (display in IST)
Updated (IST)

Attackers are exploiting a highly critical Drupal installer flaw to take over sites. Here are the versions that fix it, how to block install.php and how to check you were not hit.
Drupal security update, November 2026: attackers are exploiting a highly critical flaw in Drupal core's installer, install.php, to take over live websites. If you run Drupal, update to 10.6.23, 11.3.23 or 11.4.14 today, run update.php, block install.php on your server and check that the main admin account is still yours.
The bug, tracked as CVE-2026-132165 and nicknamed Fail2Install, was patched on 18 November 2026. The Drupal Security Team's advisory SA-CORE-2026-017 now says it received a report of exploitation on live sites as early as 19 November at 19:00 UTC. On 24 November the US Cybersecurity and Infrastructure Security Agency added it to its Known Exploited Vulnerabilities catalogue, with a 27 November deadline for federal agencies. Then, on 25 November, Drupal shipped a second fix, SA-CORE-2026-019, because some sites stayed open to takeover even after the first patch.
What is the Drupal Fail2Install flaw?
It is a weakness in the Drupal installer that, under specific conditions, lets an unauthenticated attacker reinstall Drupal on top of a live site. Drupal says this can lead to a site takeover or remote code execution.
Every Drupal site ships with install.php, the script you use once to set the site up. Drupal checks whether a site is already installed before it lets the installer run. According to The Hacker News' summary of research by Searchlight Cyber, an attacker can exhaust ordinary server limits, such as open files or database connections, so that those checks fail and Drupal wrongly decides the site is new. The attacker can then point the site at their own database, create the administrator account and, on some setups, run their own PHP code on the server. Searchlight Cyber says it confirmed the attack on Drupal 8.9, 9, 10 and 11 across Apache and PHP-FPM with both MySQL and PostgreSQL.
The flaw was found by Anthropic's OSS Scanner, a free service that scans enrolled open source projects, according to the Drupal advisory.
Which Drupal versions are affected, and which fix it?
Drupal's advisories list every core version below 10.6.23, 11.3.23 or 11.4.14 as affected, so treat any older site as exposed. The first advisory fixed the core bug in 10.6.22, 11.3.22 and 11.4.13. The 25 November advisory raised the bar again, so these are the versions to install now:
1. Drupal 11.4.x: update to 11.4.14.
2. Drupal 11.3.x: update to 11.3.23.
3. Drupal 10.6.x: update to 10.6.23.
4. Drupal 11.2.x and older, 10.5.x and older, and Drupal 8 and 9: end of life, with no security fix. Move to a supported branch and block the installer straight away.
Not sure which Drupal version your site runs, or whether it was touched? Send us the URL and we will check the version and the installer for you free within 24 hours.
Why was there a second Drupal patch on 25 November?
Because the first patch did not protect every site. Drupal's SA-CORE-2026-019, rated highly critical at 21 out of 25, says certain sites in "unusual or incomplete install states" stayed open to takeover after SA-CORE-2026-017, including production sites, and that this is also being exploited in the wild.
The awkward part is that nothing in the admin screens tells you whether your site is in that state. Drupal also warns that a site that has already been compromised may no longer look vulnerable. That is why the new releases include an update hook: you must run update.php (or drush updatedb) after updating, not just replace the code.
How do I block install.php on my Drupal site?
Block access to /core/install.php at the web server, and Drupal says you are not vulnerable to the second issue even before you update. Drupal's guide to securing the installer, updated on 25 November, gives three options:
1. Web server rule (recommended). On Apache, add a Location block for /core/install.php with "Require all denied" to every virtual host, including the HTTPS one. On Nginx, add "location ^~ /core/install.php { return 404; }" inside the HTTPS server block. Drupal warns against an exact match rule, which can be bypassed on some setups.
2. .htaccess (Apache, shared hosting). Add a Files block for install.php with "Require all denied". Composer overwrites .htaccess, so add the lines through the drupal-scaffold append setting in composer.json or they will vanish on the next deploy.
3. Delete core/install.php. Composer restores it on every install or update, so automate the removal, and ideally combine it with option 1 or 2.
Then test it. Requests to /core/install.php, /install.php and /core/install.php/foo should all return 403 or 404. If you see 200, the block is not working. Blocking install.php does not affect update.php, so make sure your rule is not so broad that it stops database updates.
How do I check if my Drupal site was hacked?
Start with the main administrator account, user 1. Drupal's advisory asks site owners to:
1. Check site logs for unauthorised access, especially unexpected changes to or by user 1.
2. Make sure the user 1 email address is one you control, and consider resetting its password.
3. Based on how the attack works, also look for new administrator accounts, unfamiliar .php files in the web root and changes to settings.php, which is where the installer writes database settings.
4. If anything looks wrong, follow Drupal's "Your Drupal site got hacked. Now what?" guide, and consider restoring from a clean backup taken before 19 November rather than cleaning a live site by hand.
Sites behind Drupal Steward, Drupal's web application firewall service, are protected from known attack paths for both advisories, but Drupal still tells them to upgrade.
What should businesses running Drupal do this week?
Treat this as a same-day job, not a sprint ticket. With confirmed attacks since 19 November and a working write-up of the technique now public, unpatched sites are easy targets. The order of work is simple: block install.php, update core, run update.php, check user 1 and the logs, then confirm the block with the three test URLs above.
It also fits a pattern. This month we have covered urgent fixes for WordPress core, PHP and NGINX, and the gap between patch and attack keeps shrinking. If nobody owns updates for your website, that is the real risk. Our guide to website maintenance costs and services explains what a proper plan covers.
Do I need to update if I already blocked install.php? Yes. Drupal says sites that secured the installer are not vulnerable to the 25 November issue, but you should still install 10.6.23, 11.3.23 or 11.4.14 and run update.php, in case other attack paths are found.
Need help? Ellixor Labs patches, hardens and maintains Drupal, WordPress and custom sites. Ask us to patch your Drupal site today, or see our web development services.
FAQ
Which Drupal version fixes CVE-2026-132165?
Drupal 10.6.22, 11.3.22 and 11.4.13 fixed CVE-2026-132165 on 18 November 2026, but a follow-up advisory on 25 November (SA-CORE-2026-019) means you should now install 10.6.23, 11.3.23 or 11.4.14 and run update.php. Drupal 11.2 and older, 10.5 and older, and Drupal 8 and 9 get no fix.
How do I block install.php in Drupal?
Block /core/install.php at the web server. On Apache, add a Location block with Require all denied to every virtual host; on Nginx, add location ^~ /core/install.php { return 404; } in the HTTPS server block. Then check that /core/install.php, /install.php and /core/install.php/foo return 403 or 404.
How do I check if my Drupal site was hacked through install.php?
Check that the user 1 email address is one you control and reset its password, then review logs for changes to or by user 1. Also look for new administrator accounts, unfamiliar .php files in the web root and changes to settings.php. If anything looks wrong, restore a clean backup from before 19 November 2026.
Is my Drupal 9 site safe from CVE-2026-132165?
No. Drupal lists every version below 10.6.22 as affected, and Drupal 8 and 9 are end of life with no fix. Block /core/install.php at the web server now and plan a move to Drupal 10.6.23, 11.3.23 or 11.4.14.
Talk to Ellixor Labs about this topic.