Attackers are targeting Drupal's install.php script to reinstall and take over live sites.
A critical flaw in Drupal core's installer is now being exploited against live websites, and the Canadian Centre for Cyber Security is urging site owners to update.
The Cyber Centre published advisory AV26-1186 on November 19 and updated it on November 24, after the U.S. Cybersecurity and Infrastructure Security Agency (CISA) added the flaw, CVE-2026-132165, to its Known Exploited Vulnerabilities catalog. The vulnerability affects Drupal core versions before 10.6.22, 11.3.22 and 11.4.13.
What the flaw does
The bug is in install.php, the script Drupal uses to set up a new site. The Drupal Security Team's advisory, SA-CORE-2026-017, says that under specific conditions an attacker can use the installer to try to reinstall Drupal on a site that is already running. That can lead to a full site takeover or remote code execution.
No login is needed. The advisory's risk string rates authentication as "None," so anonymous visitors can attempt the attack. The Security Team does not list the exact conditions that make a site vulnerable, and it rates the affected configurations as "uncommon." That is the main reason the issue is not a mass-exploitation event on the scale of 2018's Drupalgeddon2.
One server setting matters a lot. According to the advisory, some exploit paths are blocked if the web server cannot write to settings.php or change its permissions. Sites where the web server user can modify that file are at greater risk.
The flaw was found by Anthropic's OSS Scanner, an automated tool that searches open-source code for vulnerabilities. Several Drupal community members also reported it.
From "critical" to "highly critical"
Drupal released the fix on November 18 and initially rated the flaw Critical, at 18 out of 25. When the advisory was updated on November 21, the score rose to 20 out of 25, "Highly critical," and the exploit rating changed to "Exploit." The Security Team says it received a report that the flaw was being exploited on live sites from November 19 at 19:00 UTC, the day after the patch came out.
That timeline matters. Attackers began using the flaw about a day after the fix was released, likely by comparing the patched and unpatched code. CISA added it to its catalog on November 24. Sites that have not updated since November 18 should be treated as possibly exposed.
Who is affected
Supported branches are fixed in Drupal 11.4.13, 11.3.22 and 10.6.22. Older branches are a bigger problem. Drupal 11.2.x and earlier, Drupal 10.5.x and earlier, and Drupal 8 and 9 are all end-of-life and will not receive a fix. Sites on those versions have to move to a supported branch to be protected.
The same releases also fix a second, less serious issue, SA-CORE-2026-018 (CVE-2026-132166). It is a "gadget chain," a sequence of methods in Drupal core that is not exploitable on its own. It becomes dangerous only if a site also has a separate insecure-deserialization bug, where it could lead to remote code execution. Updating to the same versions fixes both.
What to do
1. Update Drupal core. Move to 11.4.13, 11.3.22 or 10.6.22, depending on your branch. Sites on end-of-life versions need to upgrade to a supported branch.
2. Block the installer. If you can't update right away, the Security Team recommends following its guide to securing install.php, and it recommends doing so on every site even after patching. The installer is only needed when setting up a new site, so blocking it costs nothing day to day. The guide offers three options:
- Apache: in the server configuration (not
.htaccess), add a<Location "/core/install.php">block withRequire all denied, for every virtual host that serves the site. - Nginx: add
location ^~ /core/install.php { return 404; }to the HTTPS server block. Don't use an exact match (=), which can miss URLs such as/core/install.php/foo. - Delete the file: remove
core/install.phpand add Composer scripts that remove it again after every install or update.
To confirm the block works, request /core/install.php, /install.php and /core/install.php/foo with curl -I. Each should return 403 or 404. Blocking the installer does not affect update.php or drush updatedb. New sites can still be installed with drush site:install, which does not use install.php.
3. Lock down settings.php. Make sure the web server user cannot write to the file or change its permissions. Per the advisory, this alone blocks some exploit paths.
4. Look for signs of compromise. Review web server logs since November 18 for requests to install.php, especially POST requests. Also check for administrator accounts you don't recognize, unexpected changes to settings.php, and new PHP files in public directories. A site that suddenly shows the installation screen or loses its content may have been reinstalled. Sites protected by Drupal Steward are reported to be shielded from the known attack paths, but the Security Team says they should still update.
Canadian context
This is the third serious Drupal core flaw in six months. In May, a SQL injection bug affecting sites on PostgreSQL (SA-CORE-2026-004) was exploited shortly after disclosure. In October, Drupal fixed a remote code execution flaw in the Field UI module (SA-CORE-2026-014), which CSN covered at the time.
Many Canadian public-sector bodies, universities and non-profits run their websites on Drupal, often with small teams or outside agencies doing maintenance. For those organizations, the fix is straightforward: update core and block the installer for good. A compromised public website can be used to serve malware or phishing pages under a trusted name, and if visitor data is exposed, organizations may need to assess whether the breach must be reported under PIPEDA or, in Quebec, Law 25.
Organizations that find signs of compromise can report them to the Cyber Centre through My Cyber Portal or at [email protected].
The vulnerabilities in this story
-
Not yet rated by the NVD: see the record on cve.org.
-
Not yet rated by the NVD: see the record on cve.org.
Scores and dates: NVD (not endorsed by the NVD). Each ID opens its record on cve.org.
