Home/Blog/Drupal installer flaw CVE-2026-132165 exploited in attacks
WWWCritical

Drupal installer flaw CVE-2026-132165 exploited in attacks

The install.php file, needed only once to install Drupal, lets an anonymous attacker take over a live site. Attacks have been under way since 19 November, and a week later Drupal released a second fix because the first one did not close every case.

Published: · Vulnerabilities: CVE-2026-132165, CVE-2026-136716

Rusty yellow radiation warning sign

The installer nobody remembers

Drupal ships a script, install.php, in the core directory for the first installation of a site. After installation it is usually left unblocked. CVE-2026-132165 (advisory SA-CORE-2026-017 of 18 November) allows the installer to be run again on a live site under certain conditions. The attack usually repeats the final installation steps and replaces the username, email address and password of user 1, the main administrator. From there it is a short step to running arbitrary code on the server. No login is needed.

The Drupal Security Team rated the flaw “Highly critical” (20/25). According to an update to the advisory, the first attacks on live sites were seen on 19 November from 19:00 UTC. CISA added CVE-2026-132165 to its catalogue of actively exploited vulnerabilities on 24 November. The flaw was found by Anthropic's OSS Scanner. NVD has not yet published a CVSS score.

Why the first update was not enough

On 25 November Drupal published advisory SA-CORE-2026-019 (CVE-2026-136716, rated 21/25). Some sites in an unusual or incomplete installation state, production sites included, remained vulnerable after the 18 November update. This variant is also being exploited. The admin interface does not show whether a site is in that state, and a site that has already been taken over may no longer be in it. Drupal's documentation states plainly that versions 10.6.22, 11.3.22 and 11.4.13 do not protect against the second flaw.

Who should act now

Any site where /core/install.php was reachable from the internet since 18 November is at risk. Drupal notes that less common configurations are affected, but this is hard to check from the outside. In our view, the update and the installer block should happen today, without waiting for a maintenance window. Sites that already blocked the installer are not vulnerable, but should be updated as well. Customers of the paid Drupal Steward service are protected against known attack vectors.

Fixed versions

  • Drupal 11.4.x: 11.4.14,
  • Drupal 11.3.x: 11.3.23,
  • Drupal 10.6.x: 10.6.23,
  • Drupal 11.2.x and older, 10.5.x and older, Drupal 8 and 9: unsupported, no fix. The only option is moving to a supported branch.

What to do

  1. Block the installer in the web server. In nginx, inside the server block: location ^~ /core/install.php { return 404; } (not an exact match with location =), then nginx -t and a reload. In Apache: a Location section for /core/install.php with Require all denied in the vhost configuration, or on shared hosting a Files section for install.php in .htaccess. The file itself can also be deleted, keeping in mind that Composer restores it on every update.
  2. Check the block: curl -I https://example.com/core/install.php should return 403 or 404, not 200.
  3. Update Drupal to a version from the list and run the database updates (drush updatedb or /update.php). The fix includes a database update that repairs sites in the vulnerable state, so replacing the code alone is not enough.
  4. Set the email address of user 1 to a mailbox the company controls and consider changing its password.

How to check whether the site was taken over

  • web server logs since 18 November: zgrep 'core/install.php' /var/log/nginx/access.log*; 403 and 404 responses are safe, POST requests answered with 302 or 303 and larger responses are suspicious,
  • user 1: drush user:information --uid=1; an unfamiliar email address is a sign of attack, and an old account creation date proves nothing,
  • installation state: drush state:get install_task; any result other than done means the site is vulnerable now,
  • PHP files in the files directory outside the Twig cache: find web/sites/*/files -path '*/php/twig/*' -prune -o -name '*.php' -print,
  • the modification date of settings.php and new administrators in /admin/people.

If anything looks doubtful, treat the site as compromised. Updating and resetting the password do not undo an intrusion. We recommend securing the logs, rebuilding the code from the repository or with composer install, restoring the database from a backup made before the first suspicious request, changing every secret (database passwords, hash_salt, API keys, administrator passwords) and ending all sessions.

The longer-term lesson

Scripts needed once, at installation or migration, stay on servers for years and become a back door. We recommend making the installer block part of the standard configuration of every Drupal site, and keeping a list of the company's sites with their version and support branch. Then, when the next flaw of this kind appears, it is clear at once which sites need fixing, and a pre-attack database backup is at hand.

Sources

The information in this post comes from the sources below. Each link was checked before publication.

  1. NVD: CVE-2026-132165
  2. NVD: CVE-2026-136716
  3. Drupal: SA-CORE-2026-017
  4. Drupal: SA-CORE-2026-019
  5. Drupal: Securing the installer (install.php)
  6. Drupal: Checking whether your site was compromised through the installer
  7. CISA KEV: CVE-2026-132165
  8. BleepingComputer
  9. heise online

Ongoing IT care

As part of ongoing IT care we keep systems up to date and respond to new vulnerabilities before they are exploited.

Book a consultation