• security
  • Drupal
  • vulnerabilities
  • patching

Drupal's exploited installer flaw needs an upgrade and a site check

Drupal's November 25 advisory says CVE-2026-136716 affects sites left in unusual installer states. A step-by-step guide to upgrading, running the update hook, blocking install.php and checking for signs of takeover.

Imagine you patched your Drupal site last week for an installer bug, saw the green “up to date” message, and moved on. On November 25, the Drupal Security Team said that some sites were still open to takeover after that fix. The new issue, CVE-2026-136716, is rated highly critical, and Drupal says it is being exploited in the wild. The good news is that the fix is a short, well-defined list of steps. The catch is that you cannot tell from the admin screens whether your site was in the risky state. Drupal advisory SA-CORE-2026-019

This is the second installer fix in a row. On November 18, SA-CORE-2026-017 (CVE-2026-132165) fixed installer flaws that could let an attacker reinstall Drupal under specific conditions, leading to site takeover or remote code execution. SA-CORE-2026-019 covers sites in “unusual or incomplete install states” that stayed vulnerable after that release. This article explains the terms, then walks through upgrading, blocking the installer, and checking whether anyone got in first.

The terms you need

A few words come up again and again in this guide. Here is what each one means.

  • Drupal is an open-source content management system (CMS): PHP software that runs websites, stores content in a database and lets editors manage it from a browser.
  • Drupal core is the main Drupal package, as opposed to add-on modules and themes. The advisory is about core.
  • install.php is the web page Drupal uses once, when a new site is first set up. It lives at /core/install.php. After installation it should never be reachable by the public, because the installer is powerful: it can create the database tables and the first administrator account.
  • Access bypass means an attacker can reach something they should not be allowed to, without valid credentials.
  • Composer is the PHP dependency manager. Most modern Drupal sites install and upgrade core with it, and it records exact versions in a file called composer.lock.
  • Drush is Drupal’s command-line tool. You run it on the server (or in your development container) to check site status, apply database updates, and inspect users.
  • Update hook is a small piece of code shipped with a Drupal release that changes the site’s database or configuration. It does not run when you copy new code; it runs when you execute update.php in the browser or drush updatedb on the command line.
  • uid 1 (also called “user 1”) is the very first account created during installation. It has every permission on the site, so it is the account an attacker most wants to control.
  • Access log is the web server’s record of every request: client IP address, time, URL, response code. Nginx and Apache both write one.

What the advisory says

Read these points before you touch anything, because they decide what you have to do.

  • Affected versions: Drupal 10 before 10.6.23, Drupal 11.0.0 through 11.3.22, and Drupal 11.4.0 through 11.4.13.
  • Fixed versions: 10.6.23, 11.3.23 and 11.4.14. Pick the one on your branch.
  • End of life: Drupal 10.5 and earlier, and Drupal 11.2 and earlier, no longer receive security fixes. There is no patch for those branches; you have to move to a supported one.
  • Exploitation: “This is being exploited in the wild.”
  • Visibility: “It is not apparent in the user interface if a site is in the affected vulnerable state.” A compromised site might also no longer be in that state.
  • Who is safe: sites that have already secured the installer are not vulnerable.
  • Required steps: upgrade, run update.php (“An update hook must run to fix existing production sites in this state”), and secure the installer on all new and existing sites.

Affected versions, fixed versions and solution

Why does the visibility point matter? Because it means “my admin dashboard looks normal” proves nothing. You have to treat this as two jobs: a patch, and a short incident check.

Step-by-step: upgrade and run the update hook

The commands below assume a Composer-managed site with Drush installed in the project, which is the common setup. They are written from Drupal’s and Drush 13’s documentation; I did not run them against a live Drupal site, because Composer and Drush are not installed on the machine used for this article. Try them on a staging copy first.

  1. Find the version you actually run. On the server (or in the project directory you deploy from), run:

    composer show drupal/core
    drush status

    composer show prints the installed package details; look at the versions line. Some projects depend on drupal/core-recommended instead, and composer show drupal/core-recommended will show that. drush status prints a summary that includes the Drupal version as the running site sees it. If the two disagree, your deployment and your repository are out of sync, and you should find out why before going further.

  2. Upgrade core on your branch. In the project directory, run:

    composer update "drupal/core-*" --with-all-dependencies

    This updates every package whose name starts with drupal/core- (for example core-recommended and core-composer-scaffold), plus whatever they depend on. When it finishes, run composer show drupal/core again and confirm the version is 10.6.23, 11.3.23 or 11.4.14 for your branch. Commit the new composer.lock and deploy it the same way you deploy any other change.

  3. Run the update hook. After the new code is deployed, run on the production site:

    drush updatedb -y

    updatedb applies pending database updates; Drush puts the site in maintenance mode while it does so. -y answers “yes” to the confirmation prompt. If you do not use Drush, visit /update.php in a browser as an administrator instead. This step is the one people skip. Drupal says the fix for existing sites lives in an update hook, so new code alone is not a complete fix.

  4. Confirm nothing is left pending. Run:

    drush updatedb:status
    drush status

    updatedb:status lists pending database updates. Expect it to report that there are none. drush status should now show the fixed version.

Step-by-step: block install.php for good

Drupal says sites that have secured the installer are not vulnerable, and asks every site to do it. Its guide to securing the installer recommends doing it in the web server configuration.

  1. Add a web server rule. For Apache, put this in the virtual host configuration (not in .htaccess):

    <Location "/core/install.php">
      Require all denied
    </Location>

    For nginx, put this inside the HTTPS server block:

    location ^~ /core/install.php {
      return 404;
    }

    ^~ is a prefix match: it catches every URL that starts with /core/install.php and stops nginx from checking other location rules, such as the one that passes .php files to PHP. Drupal’s guide says not to use an exact match (location = /core/install.php). In a local test with nginx 1.31.8, the exact match blocked /core/install.php but let /core/install.php/foo fall through to another location, while the ^~ rule returned 404 for both.

  2. Test and reload the server. For nginx, nginx -t && nginx -s reload; for Apache, apachectl configtest and then a graceful reload with your usual service command. The same “test, then reload” habit appears in the NGINX early-data fix.

  3. Check from outside. From your laptop, not the server:

    curl -s -o /dev/null -w '%{http_code}\n' https://example.com/core/install.php
    curl -s -o /dev/null -w '%{http_code}\n' https://example.com/core/install.php/foo

    Replace example.com with your site. -w '%{http_code}' prints only the HTTP status. Expect 404 with the nginx rule above and 403 with the Apache rule. A 200 or a redirect to an installer page means the rule is not active for that host name. Check every host name and every environment, including staging sites that are publicly reachable.

  4. Optional extra layer. Drupal’s guide also describes deleting core/install.php with Composer scripts that run after every install and update ("post-install-cmd": ["rm -f web/core/install.php"] and the same for post-update-cmd; adjust web/ to your docroot). It says this works best together with the server rule, not instead of it, because a future Composer run or a manual deploy can bring the file back.

Shared hosting without access to the server configuration can use an .htaccess rule; Drupal’s guide shows it and explains how to keep Composer scaffolding from overwriting it.

Step-by-step: check whether someone got in first

Patching closes the door. It does not tell you whether someone walked through it earlier. Drupal asks site owners to review logs for unauthorized access and to check user 1.

  1. Search the access logs for installer requests. On the web server, for nginx with default log paths:

    zgrep -h 'install\.php' /var/log/nginx/access.log*

    zgrep searches both plain and gzip-compressed files, so it covers rotated logs such as access.log.2.gz. On Apache, the path is often /var/log/apache2/ or /var/log/httpd/. Every matching line shows the client IP, the time and the response code. Pay most attention to requests that got a 200 response, and to POST requests. The advisory gives no time window. A reasonable choice is to start before November 18, when the first installer fix was published, and go back as far as your logs allow. That is my recommendation, not Drupal’s.

  2. Inspect user 1. On the server, run:

    drush user:information --uid=1 --fields=uid,name,mail,login,access,status

    This prints the account’s name, email, last login, last access and whether it is active. Drupal says to make sure the email is one you control and to consider resetting the password. An unknown email, or a login at a time nobody on your team was working, is a reason to escalate.

  3. Look for other new administrators. Drush’s documentation includes an example that lists everyone with the administrator role. In the admin UI, sort the People page by “Member for” and look for accounts you did not create.

  4. If anything looks wrong, treat it as an incident. Follow Drupal’s guide Your Drupal site got hacked. Now what?. An attacker with admin access may have added code or accounts that survive the upgrade.

Common mistakes

  • Deploying the code but skipping updatedb. The advisory says the update hook is what repairs affected production sites.
  • Trusting the admin UI. Drupal says the vulnerable state is not visible there.
  • Using location = /core/install.php in nginx. Drupal’s guide warns against the exact match.
  • Putting the Apache rule in .htaccess on a Composer site without protecting it. Composer scaffolding can overwrite that file.
  • Forgetting other environments. Staging and preview sites run the same code and can be just as reachable.
  • Staying on an end-of-life branch. Drupal 10.5 and earlier and 11.2 and earlier get no fix.

Conclusion

CVE-2026-136716 is an actively exploited installer flaw that you cannot see from the admin screens. Upgrade to 10.6.23, 11.3.23 or 11.4.14, run the update hook, and confirm with drush updatedb:status that nothing is pending. Then block /core/install.php at the web server and prove it with curl. Finally, search your logs for installer requests and check user 1, because a patch does not undo access an attacker may already have.

Written by Duy Pham Independent developer. I build the apps on this site and write about how they work.

More about me