Drupal's installer fix left a gap, and attackers found it


SaveAdd to Google
Drupal

Drupal's install.php script is at the centre of two exploited core vulnerabilities fixed eight days apart. CSN

TORONTO, ON

A week after Drupal patched a critical flaw in its installer, the project has had to patch the installer again, and the new bug is also being exploited. Site owners who updated last week are not automatically safe.

On November 25, the Drupal Security Team published SA-CORE-2026-019, rated "Highly critical" with a risk score of 21 out of 25. The flaw, tracked as CVE-2026-136716, is an access bypass that can lead to a full site takeover. The advisory states plainly that it is being exploited in the wild. The Canadian Centre for Cyber Security issued advisory AV26-1209 the same day, and updated it on November 27 after the U.S. Cybersecurity and Infrastructure Security Agency (CISA) added the flaw to its Known Exploited Vulnerabilities catalog.

A gap in last week's fix

The new flaw is a direct follow-on to CVE-2026-132165, the installer vulnerability Drupal fixed on November 18 under SA-CORE-2026-017. That bug, which a research team has since named "Fail2Install," was exploited on live sites from November 19. In its write-up, StepSecurity explains that on an installed site, a database connection error during the installer's checks could make install.php treat the site as a brand-new installation, and offer forms that let an attacker reinstall it and create their own administrator account.

According to Drupal, last week's update fixed several installer vulnerabilities, but sites in "unusual or incomplete install states" remained open to takeover, including production sites. The Security Team has not described those states in detail. Two points in the advisory stand out:

  • The vulnerable state is not visible in Drupal's administration interface, so a site owner can't check for it by looking.
  • A site that has already been compromised may no longer appear vulnerable. The advisory warns that any site whose installer was left reachable from the internet after SA-CORE-2026-017 may already have been compromised.

The advisory's risk string rates authentication as "None," meaning no login is needed, and rates the affected configurations as "uncommon." But because the vulnerable state is invisible, owners can't easily tell whether theirs is one of the uncommon ones.

Which versions are fixed

The fix is in Drupal 11.4.14, 11.3.23 and 10.6.23. Every earlier release on those branches is affected. Drupal 11.2.x and earlier, 10.5.x and earlier, and Drupal 8 and 9 are end-of-life and will not be fixed.

Updating the code is not the whole job this time. The advisory says an update hook must run to repair existing production sites that are in the vulnerable state, so administrators need to run update.php (or drush updatedb) after deploying the new release.

The end-of-life problem is significant. Using Shodan data from November 26, StepSecurity counted about 55,800 internet-facing Drupal services. About 31,500 ran branches affected by last week's flaw, including roughly 15,000 on Drupal 8 and 9, which will never get a fix. StepSecurity notes these are minimum counts, since many sites hide their version, and that a scan can't tell patched from unpatched sites on current branches.

What site owners should do

1. Update and run the database updates. Move to 11.4.14, 11.3.23 or 10.6.23, then run update.php or drush updatedb. Sites on end-of-life branches need to upgrade to a supported branch.

2. Block the installer, permanently. Drupal's advisory notes that sites which have secured the installer are not vulnerable. The Security Team strongly recommends following its guide to securing install.php on every new and existing site. In practice, that means a <Location> deny block in the Apache configuration or a location ^~ /core/install.php rule in nginx (not an exact-match rule), or deleting the file. Check that /core/install.php, /install.php and /core/install.php/foo each return 403 or 404.

3. Check the user 1 account. Drupal's first account has full control of the site. The advisory recommends confirming that its email address is one you control and considering a password reset. Review logs for unexpected changes made to or by user 1.

4. Look for signs of compromise. StepSecurity's indicators for the Fail2Install attacks include anonymous requests to /core/install.php on a finished site, responses titled "Database configuration," bursts of "too many connections" database errors alongside installer requests, recent changes to settings.php (such as a new install_time value, or a database driver switched to SQLite on a MySQL or PostgreSQL site), and PHP files in the web root that are actually SQLite databases. If you find these, treat the site as compromised: restore from a backup taken before the attack, rotate database credentials and site keys, and review every administrator account. Drupal's guide "Your Drupal site got hacked. Now what?" covers the full process.

5. Lock down file permissions. Make settings.php and the module and theme directories read-only for the web server user. This limits what an attacker can do even if they get through.

Sites protected by Drupal Steward's recommended mitigations are covered against known attack paths, according to the advisory, but should still update soon.

The Canadian context

Drupal is common across Canadian universities, public-sector bodies, non-profits and media outlets, many of which rely on small web teams or outside agencies. Two emergency core updates in eight days is a heavy load for those teams, and the second one requires an extra step that is easy to miss.

The clearest lesson from both flaws is that the installer has no business being reachable on a live site. Organizations that blocked install.php after last week's advisory, as CSN and the Drupal Security Team recommended, were not exposed to this one.

A defaced or hijacked public website can be used to serve malware or phishing pages under a trusted name. If personal information was exposed, organizations may need to assess whether the breach must be reported under PIPEDA or, in Quebec, Law 25. Suspected compromises can be reported to the Cyber Centre through My Cyber Portal or at [email protected].

The vulnerabilities in this story

  1. 9.8 Critical CVE-2026-136716 (cve.org, opens in a new tab) Exploited

    Drupal Core Improper Check for Unusual or Exceptional Conditions Vulnerability

    Exploited in the wild, listed by CISA on Nov 26, 2026

  2. 9.8 Critical CVE-2026-132165 (cve.org, opens in a new tab) Exploited

    Drupal Core Remote Code Execution Vulnerability

    Exploited in the wild, listed by CISA on Nov 23, 2026

Scores and dates: NVD (not endorsed by the NVD). Each ID opens its record on cve.org.

About the author

Editor's Picks

The best of cybersecuritynews.ca, delivered to you weekly.

On Display
Geoserver

How two exploited GeoServer bugs chain into a full server takeover

Ruby

Ruby2Shell: how one byte of "SS" became a pre-auth Rails risk

Pacific Blue Cross

Pacific Blue Cross cyber incident halts claims for B.C. members