A highly critical Drupal install.php vulnerability, CVE-2026-132165, is being exploited against live websites. Under certain conditions it lets an unauthenticated attacker push an already-installed Drupal site back into its installer and take it over, up to running their own code on the server. The fix has been out since 18 November, CISA added the flaw to its Known Exploited Vulnerabilities catalog on 24 November, and any Drupal site that is not patched, or that still exposes its installer to the internet, should be treated as at risk.
What happened
On 18 November 2026 the Drupal Security Team published SA-CORE-2026-017, rated “Highly critical” (20 out of 25 on Drupal’s own scale). The advisory says that “under specific conditions” an attacker can use Drupal core’s install.php to attempt to reinstall the site, which “can lead to a site takeover or remote code execution.”
The affected versions are all Drupal releases before 10.6.22, 11.x before 11.3.22 and 11.4.x before 11.4.13. The fixed releases are 10.6.22, 11.3.22 and 11.4.13. Drupal 11.2.x and earlier, 10.5.x and earlier, and Drupal 8 and 9 are end of life and get no fix.
Three days later Drupal updated the advisory: the Security Team had received a report that the flaw was exploited on live sites as early as 19 November at 19:00 UTC. On 24 November CISA added CVE-2026-132165 to the KEV catalog together with two other exploited flaws, in the abandoned Idunno.AntiCsrf ASP.NET library (CVE-2026-131914) and in Optimizely Web Experimentation (CVE-2026-132224), as reported by Help Net Security and Cyberpress. Help Net Security reports a 27 November remediation deadline for US federal civilian agencies.
The advisory credits the discovery to Anthropic’s OSS Scanner, another example of the AI-assisted bug finding that is filling patch queues this year.
How the Drupal install.php vulnerability works
Every Drupal codebase ships with an installer at /core/install.php. On a finished site it should do nothing: before it runs, it checks the database to see whether Drupal is already installed. Researchers Kevin Gervot and Adam Kues of Searchlight Cyber, who found the same bug independently (their report turned out to be a duplicate), published a write-up on 24 November called Fail2Install that explains the core problem in plain terms: those database checks “fail open”. If the installer cannot reach the database during its checks but a later connection succeeds, it can conclude that the site is not installed and start a fresh installation.
The researchers showed that an attacker can cause those failures on purpose by exhausting ordinary system limits, for example by flooding the server with requests until the database refuses new connections (“Too many connections”) or the server runs out of outgoing network ports. They describe the attack as working against stock Docker-style setups of Apache or PHP-FPM with MySQL or PostgreSQL, with Apache plus PostgreSQL the easiest to reproduce on default settings and PHP-FPM setups much less practical. Once the attacker is inside the installer, they control how the site is set up, which is why the outcome is a full takeover.
Two points matter for defenders. First, this is not a login bypass that a strong password protects against: the attack happens before any authentication. Second, the vulnerable code is something almost no production site actually needs. Like the Apache Axis flaw in Confluence, it is a component that sits unused but reachable, waiting for a bug.
Why it matters
Drupal runs a large share of government, university and enterprise websites, and those sites often hold user accounts, subscriber lists and form submissions. A site takeover gives an attacker that data and control of the content, which can be used to plant malware or phishing pages on a trusted domain.
The timeline is also a warning. Exploitation was reported roughly a day after the fix was released, and public technical detail followed within a week. That pattern, also seen in the WordPress core update flaw earlier this month, means content-management systems can no longer be patched “at the next maintenance window”. Sites on end-of-life Drupal versions are in the worst position, because no patch is coming.
What Drupal site owners should do
- Update now. Move to Drupal 10.6.22, 11.3.22 or 11.4.13 (or later). If you are on an end-of-life branch, plan an upgrade to a supported branch and apply the mitigations below in the meantime.
- Block the installer at the web server. Drupal’s guide Securing the installer recommends this for every installed site. On Apache, add <Location “/core/install.php”> Require all denied </Location> to the virtual host configuration (not .htaccess, which Drupal says causes a 500 error for this directive). On Nginx, add location ^~ /core/install.php { return 404; } inside the HTTPS server block. Drupal warns against an exact-match rule, because some configurations would still pass paths such as /core/install.php/foo to PHP.
- On shared hosting, use .htaccess instead. Add <Files “install.php”> Require all denied </Files> to the web root .htaccess, and set up a Composer scaffold “append” entry so updates do not overwrite it.
- Or remove the file. Composer restores core/install.php on every install and update, so if you delete it, do it in a post-install and post-update script. You will need to restore it (or use Drush, which does not use install.php) to install a new site.
- Test the block. Request /core/install.php, /install.php and /core/install.php/foo on your site. Each should return 403 or 404. A 200 means the rule is not working.
- Lock down settings.php. The advisory says some, but not all, exploit paths are blocked if the web server cannot write to or change permissions on settings.php. Treat this as extra defence, not a replacement for updating.
- Never leave a half-finished install online. Drupal’s guidance is direct: finish the installation first, and never leave an incomplete one on a server reachable from the internet. Check staging and forgotten test sites too.
- Look for signs of compromise. Review web logs since 18 November for requests to install.php on sites that are already installed, bursts of requests that coincide with database “too many connections” errors, new administrator accounts and new or changed PHP files under the web root. If you find any, treat the site as compromised: restore from a clean backup, rotate database and admin credentials, and investigate the server, not just Drupal.
Sites protected by the paid Drupal Steward web application firewall are, according to the advisory, already protected from known attack vectors. Managed hosts may also block the installer already, but check rather than assume.
The bottom line
CVE-2026-132165 is a pre-authentication takeover bug in a file that finished Drupal sites do not need. Patch to 10.6.22, 11.3.22 or 11.4.13, then block or remove install.php so that the next installer bug cannot reach you at all. The second step costs a few lines of configuration and removes a whole class of risk; it is worth doing on every Drupal site you run, patched or not.
Leave a Reply