Threats

Drupal core vulnerability in install.php exploited, CISA gives agencies three days

Adam Bream
By Adam Bream , Tech Content Writer
Drupal core vulnerability in install.php exploited, CISA gives agencies three days
Cover © Anonhaven

Attackers are exploiting a Drupal core vulnerability that, under specific conditions, lets anonymous visitors reinstall live sites. CISA added CVE-2026-132165 to its Known Exploited Vulnerabilities (KEV) catalog on November 24 and gave federal agencies until November 27 to remediate it.

Drupal has a report of attacks on live sites as early as November 19, 19:00 UTC. The Security Team added that report to advisory SA-CORE-2026-017 at an unstated date. The earliest reported attack came roughly 26 hours after version 11.4.13 went up on drupal.org at 16:44 UTC on November 18. The bulletin now carries a rating of Highly critical, 20 out of 25 on Drupal's own scale, with the exploit field set to E:Exploit.

Every stable Drupal release before the November 18 updates falls in the affected range. The advisory lists it as everything below 10.6.22, 11.0.0 through 11.3.21, and 11.4.0 through 11.4.12. Corrected builds exist for only three branches, 11.4.13, 11.3.22 and 10.6.22. Sites on 11.2.x and older, 10.5.x and older, or Drupal 8 and 9 sit inside the vulnerable range and will get nothing.

Branch Status Action
Drupal 11.4.x Fixed in 11.4.13 Install 11.4.13 (branch supported until April 2027)
Drupal 11.3.x Fixed in 11.3.22 Install 11.3.22
Drupal 10.6.x Fixed in 10.6.22 Install 10.6.22
Drupal 11.2.x and below End-of-life Deny access to /core/install.php, move to a supported branch
Drupal 10.5.x and below End-of-life Deny access to /core/install.php, move to a supported branch
Drupal 8 and 9 End-of-life Deny access to /core/install.php, move to a supported branch

The flaw sits in install.php, the installer script that ships with Drupal core at /core/install.php. A site needs it once, on the day it is set up. Drupal's documentation tells administrators to shut it off as soon as installation is complete.

"Under specific conditions, an attacker can use the installer to attempt to reinstall Drupal. This can lead to a site takeover or remote code execution."

— Drupal Security Team, SA-CORE-2026-017, November 18, 2026

Drupal has not spelled out those conditions. The only hint concerns settings.php, the site's main configuration file. According to the advisory, some exploit paths, but not all, are closed if the web server cannot write to settings.php or change its permissions. The pre-release notice put it more bluntly, "More than one configuration is affected, so do not assume your site is safe."

The 11.4.13 release notes describe a related change to the same file. Before it, the installer tried to repair the permissions of a non-writable settings.php by itself so the installation could continue. Now it stops with an error message instead. Existing sites are untouched, but every new installation will see the change.

CISA's catalog entry describes the attacker as unauthenticated and the bug as CWE-636 (Not Failing Securely).

"Drupal Core contains a not failing securely vulnerability that could allow an unauthenticated attacker to take over an existing site or execute arbitrary code via the Drupal installer."

— CISA, Known Exploited Vulnerabilities catalog entry for CVE-2026-132165, November 24, 2026

Anthropic's OSS Scanner found the flaw, which Drupal credits under the scanner's ID ANT-2026-GMRPK0BU. Five people are listed as reporters. They are Lee Rowlands (larowlan) of the Drupal Security Team, Pamela Barone (pameeela), Scott Euser (scott_euser), Stephan Zeidler (szeidler) and Tyler Nighswander (tylerni7-ant). Eleven members and provisional members of the security team, among them Alex Pott and Jess (xjm), wrote the correction.

Drupal warned site owners two days ahead. Its public service announcement PSA-2026-11-16 scheduled core security releases for all supported branches on November 18, between 17:00 and 21:00 UTC. According to the notice, anonymous users could exploit at least one of the issues. The notice carried a rating of Critical 18 out of 25, with the exploit field at E:Proof.

"The Drupal Security Team urges you to reserve time for core updates at that time because exploits might be developed within hours or days."

— Drupal Security Team, PSA-2026-11-16, November 16, 2026

A second bulletin went out on November 18. SA-CORE-2026-018 covers CVE-2026-132166, a gadget chain rated Moderately critical 14 out of 25. Its exploit field reads E:Theoretical. Drupal says it "is not directly exploitable." The chain only becomes a path to remote code execution if the application deserializes untrusted data because of another vulnerability.

Drupal and CISA have published no details of the November attacks. Neither names the attackers, gives a count of compromised sites or lists indicators of compromise (IoCs). CISA marks ransomware use as "Unknown." Drupal has not said on which date it put the exploitation note into the bulletin.

CISA's order goes beyond a deadline. The entry requires vendor mitigations under Binding Operational Directive (BOD) 26-04, "Prioritizing Security Updates Based on Risk." It flags the vulnerability for forensic triage, and agencies must comply with CISA's "Forensics Triage Requirements," so a vulnerable server has to be checked for signs of a break-in, not just upgraded. Where mitigations are unavailable, the entry tells agencies to discontinue use of the product. Each agency must evaluate every asset's internet exposure itself.

CVE-2026-132165 is the sixth Drupal flaw in the KEV catalog. The list starts with CVE-2018-7600, entered in November 2021, and holds CVE-2020-13671, CVE-2019-6340 and CVE-2018-7602 as well. CISA ties two of them, CVE-2018-7600 and CVE-2018-7602, to ransomware campaigns. In May 2026 it listed CVE-2026-9082, a Drupal core SQL injection leading to privilege escalation and remote code execution. Agencies had five days then and three now.

The installer keeps coming back. Drupal's installer guide lists this advisory alongside PSA-2015-001 on remote installation and the 2012 bulletin SA-CORE-2012-003. A script that each site runs once and then leaves online for years is attack surface with no daily use.

— AnonHaven Editorial Team

Drupal Steward customers have some cover already. The bulletin says Steward protects them from the known attack vectors, but those sites should still upgrade soon in case new vectors appear.

Version 11.4.13 has a known side effect. It broke the theme registry for some contributed and custom code, the Search API module among them, producing errors such as Theme hook field not found. and Theme hook time not found. Drupal tracks the regression as issue #3639497, "Backport #3626105 to 11.4.x: runtime theme registry is empty after destruct() since 10.6.22," and promises a cure in 11.4.14. The words "since 10.6.22" in that title suggest the same bug reached the 10.6 branch with its security build.

Warning

Drupal has a report of CVE-2026-132165 exploitation on live sites as early as November 19, 2026. Drupal 11.2.x and below, 10.5.x and below, and Drupal 8 and 9 will not receive a fixed build. For them, denying access to /core/install.php is the main protection Drupal offers.

Drupal's guide "Securing the installer (install.php)," revised November 21, explains how to shut the door. It offers three options and recommends the web server configuration.

The guide sets two preconditions. Finish the installation first, because a half-finished installation should never sit on a server reachable from the internet. Some managed hosting platforms already block the installer, so test before adding your own rule.

"Drupal has fixed various security issues in the installer over the years. However if you've already installed your site, you don't need it at all, so can completely remove the risk of any future vulnerabilities."

— Drupal documentation, Securing the installer (install.php), November 21, 2026

On Apache, the deny block goes into the server configuration, not into .htaccess. Placed in .htaccess, it triggers a 500 Internal Server Error. The block reads <Location "/core/install.php"> Require all denied </Location>. Run apachectl -S to find the virtual host files and add it to each one, HTTPS hosts included.

Let's Encrypt often creates a separate file for the HTTPS host. One copy outside any <VirtualHost> covers every host at once. Test with apachectl configtest before reloading, and visitors then get 403 Forbidden.

A site in a subdirectory needs the adjusted path, for example /drupal/core/install.php. To add a site to a multisite setup, an administrator can temporarily replace Require all denied with Require ip 203.0.113.10 in the same block.

On Nginx, nginx -T shows which server block handles HTTPS. Inside it, add location ^~ /core/install.php { return 404; } and check the syntax with nginx -t before reloading. The ^~ modifier matches any URL that begins with the installer path, /core/install.php/foo too, and makes Nginx skip regex blocks such as location ~ \.php$. The order of the location blocks therefore does not matter.

Drupal warns against the exact match location = /core/install.php. Certain configurations pass any URL containing .php/ to PHP, for example through location ~ \.php(/|$). There, /core/install.php/foo slips past the exact match and the installer still runs.

Shared hosting customers can put <Files "install.php"> Require all denied </Files> into .htaccess in the web root. Apache honors it only if AllowOverride includes AuthConfig, normally the case because Drupal already requires AllowOverride All. Composer rewrites .htaccess as a scaffold file on each scaffold run, even a plain composer install. Manual edits disappear.

The durable route keeps the lines in a separate file such as assets/htaccess-additions.txt. In composer.json, the drupal-scaffold section's file-mapping for [web-root]/.htaccess gets an "append" entry pointing at that file. Then run composer update --lock and composer install, and confirm the lines sit at the end of .htaccess.

Deleting core/install.php works too, but Composer restores the file on each install or update of core. Composer scripts can remove it again, with "post-install-cmd": ["rm -f web/core/install.php"] and the same command under "post-update-cmd". Sites whose web root has a different name must change web/ in those paths. The trick fails when a deployment runs composer install --no-scripts, and rm -f requires a Unix-style shell on Windows. Without the file, nobody can install a new site in the browser.

Drush offers a way around that. Its drush site:install command sets up a site without touching install.php. Database migrations are unaffected, because update.php is a separate script. Drupal asks admins not to catch it with an overly broad deny rule.

The guide's related links point to two older core issues about the installer. Issue #3455853 says it should not be possible to install the Drupal database into a site where it is already installed. Issue #1887606 covers a possible denial of service through anonymous users triggering database installation tasks at install.php.

Site owners should install 11.4.13, 11.3.22 or 10.6.22 first. Then test from outside with curl -I https://example.com/core/install.php, curl -IL https://example.com/install.php and curl -I https://example.com/core/install.php/foo. All three must end in 403 or 404, and a 200 means the protection is not working. Finally, confirm that drush updatedb or /update.php still runs.

Have a story? Become a contributor.

We work with independent researchers and cybersecurity professionals. Send us a tip or submit your article for editorial review.

Questions on the topic

Which Drupal versions fix the install.php vulnerability CVE-2026-132165?
The Drupal core vulnerability is fixed in Drupal 11.4.13, 11.3.22 and 10.6.22, released November 18, 2026. End-of-life branches get no fix and should deny access to /core/install.php.
When did attacks on the Drupal core vulnerability start?
Drupal says CVE-2026-132165 was exploited on live sites as early as November 19, 2026, at 19:00 UTC. CISA added it to the KEV catalog on November 24 with a November 27 deadline.
How do I block Drupal install.php on Nginx?
Add location ^~ /core/install.php { return 404; } to the HTTPS server block. Avoid an exact match, because some setups still run the installer through /core/install.php/foo.