Site icon NexGismo

Drupal Installer Access Bypass: Why One Patch Wasn’t Enough

Drupal Installer Access Bypass: Why One Patch Wasn't Enough
TL;DR
  • What happened: Drupal’s first installer patch left a gap. A follow-on access bypass, CVE-2026-136716, is being exploited in the wild.
  • Who is affected: Sites below 10.6.23, 11.3.23 or 11.4.14 whose install.php is still reachable.
  • What to do now: Upgrade, run update.php, block the installer and review user 1.
  • Interview angle: Why fixing code is not the same as fixing state, and how incomplete patches happen.

The Drupal installer access bypass (CVE-2026-136716) affects sites left in an unusual or incomplete install state with /core/install.php still reachable. Drupal says it is exploited in the wild. Upgrade to 10.6.23, 11.3.23 or 11.4.14, run update.php, and block the installer at the web server.

An incomplete patch is a security fix that closes the reported path but misses a variant of the same root cause. Attackers study fresh patches to find those variants. When the root cause lives in stored state, such as a half-finished installation, the fix also needs a data migration, not just new code.

The Drupal installer access bypass is the second installer advisory in one week. On 18 November 2026 Drupal fixed CVE-2026-132165, nicknamed Fail2Install. On 25 November it published SA-CORE-2026-019 for sites the first fix did not cover. This post explains both, gives a branch-by-branch action table, and shows an Nginx test we ran on the installer block. If you maintain Drupal sites, pair it with our Drupal security best practices guide.

What changed and who is affected?

Drupal core installer advisories, November 2026 (sources linked in each row)
Advisory CVE Drupal risk score Published Fixed in Exploited?
SA-CORE-2026-017 CVE-2026-132165 Highly critical, 20/25 18 Nov 2026 10.6.22, 11.3.22, 11.4.13 Yes, on live sites as early as 19 Nov, 19:00 UTC
SA-CORE-2026-019 CVE-2026-136716 Highly critical, 21/25 25 Nov 2026 10.6.23, 11.3.23, 11.4.14 Yes, per Drupal and the Canadian Cyber Centre

Drupal scores issues on its own 25-point scale, not CVSS. SecurityWeek and Help Net Security report that CISA added CVE-2026-132165 to its Known Exploited Vulnerabilities catalog on 24 November. We could not confirm a KEV entry for CVE-2026-136716 at the time of writing.

Exposure is wide. StepSecurity counted about 55,800 internet-facing Drupal services on Shodan on 26 November. About 31,500 sat on branches affected by Fail2Install. StepSecurity calls these lower bounds, because the count relies on the generator meta tag.

Decision table: what to do on each branch

Action by Drupal core branch, built from SA-CORE-2026-017, SA-CORE-2026-019 and the installer docs
Your branch Target version Then
11.4.x 11.4.14 Run update.php, block installer, review user 1
11.3.x 11.3.23 Run update.php, block installer, review user 1
10.6.x 10.6.23 Run update.php, block installer, review user 1
11.0 to 11.2, 10.5 and older, 8, 9 No fix (end of life) Block installer today, then upgrade to a supported branch
Drupal 7 Not affected by Fail2Install (per StepSecurity) Still block any setup scripts you do not need

Note: installing 10.6.22, 11.3.22 or 11.4.13 last week is not enough. Those builds fix the first CVE only.

How does it work?

Drupal describes both bugs at a high level, and so do we. SA-CORE-2026-017 says an attacker could use the installer to try to reinstall Drupal over a live site. That can lead to site takeover or remote code execution. StepSecurity notes the CVE record maps it to CWE-306, missing authentication for a critical function.

The follow-on is about state, not code paths. SA-CORE-2026-019 says some sites sit in “unusual or incomplete install states”. On those sites the first fix did not apply, and the state does not show in the UI.

  1. A site is installed, but its install state is unusual or incomplete.
  2. The web server still routes /core/install.php to PHP.
  3. The 18 November patch does not treat that state as “installed”.
  4. A remote, unauthenticated request reaches installer logic it should never reach.
  5. The result is access bypass and possible takeover, including of user 1.

That is why the new release ships an update hook. New code alone cannot repair a stored state. The hook only runs when you run update.php.

We tested the Nginx block Drupal recommends

Drupal’s installer docs warn against an exact-match Nginx location, because it misses /core/install.php/foo. We checked that claim. We ran Nginx 1.24.0 on Ubuntu with a stub PHP location in a sandbox. We used curl 8.5.0 with --path-as-is. No Drupal or PHP code ran; the stub just reports which location matched.

# A: exact match (not recommended)
location = /core/install.php { return 404; }

# B: prefix match that wins over regex (Drupal docs)
location ^~ /core/install.php { return 404; }

# Both configs also had the usual PHP regex location:
location ~ '\.php(/|$)' { ... }
Our test results: HTTP status per request path (nginx 1.24.0, stub PHP handler)
Request path No block Exact = Prefix ^~
/core/install.php 200 404 404
/core/install.php/foo 200 200 404
/core/install.php?profile=x 200 404 404
//core//install.php 200 404 404
/core/%69nstall.php 200 404 404

The exact match let the path-info variant through to the PHP handler. The ^~ prefix blocked every variant we tried. This matches the Nginx location rules: a ^~ prefix match stops the regex search. Nginx normalised the doubled slashes and the encoded letter before matching.

What should developers do right now?

  1. Detect. Check your core version. Then, from outside your network, request both installer paths:
    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/x

    Anything other than 403 or 404 means the installer is reachable.

  2. Patch. Upgrade core to 11.4.14, 11.3.23 or 10.6.23, for example composer update "drupal/core-*" --with-all-dependencies.
  3. Run the update hook. Run update.php or drush updatedb. Drupal says this step fixes existing production sites.
  4. Block the installer. On Nginx, use the ^~ block above. On Apache, put this in the virtual host, not .htaccess, as the docs advise:
    <Location "/core/install.php">
        Require all denied
    </Location>

    Drupal recommends combining a server block with removing the file through a Composer script.

  5. Verify and review. Rerun the curl checks. Review logs for changes to or by user 1. Confirm user 1’s email is yours and consider resetting its password, as Drupal advises.
  6. If compromised, follow Drupal’s hacked site guide. StepSecurity lists signals such as installer requests on an installed site and an unexpected change to user 1.

If you edit Nginx config for Drupal often, our Drupal 502 Bad Gateway fix covers other FastCGI settings worth checking.

Interview questions this update prepares you for

1. Why do incomplete security patches happen, and how do you avoid shipping one?

A patch often fixes the exact path in the report instead of the root cause. Here, the root cause was “the installer trusts that the site is not installed”. The first fix missed sites whose state was unusual. To avoid this, do variant analysis: list every state and entry point that reaches the vulnerable function. Write tests for each, including odd states from failed or partial runs. Then ask whether existing data needs repair, not just new code. Attackers diff fresh patches quickly, so a narrow fix invites a second CVE.

Follow-up they may ask: How would you test for states your code “should never” be in?

2. What is the difference between patching code and remediating a system?

Patching replaces vulnerable code. Remediation also fixes what that code already left behind. That includes bad stored state, leaked credentials or accounts an attacker created. Drupal’s update hook is a migration that repairs stored state. A compromise review checks for damage already done. In an interview, mention three layers: deploy the fix, migrate or repair state, then verify with logs and integrity checks. Teams that stop at layer one often stay vulnerable or stay compromised.

Follow-up they may ask: How do you roll out a data-repair migration safely across many tenants?

3. How should a web app protect setup or admin-only endpoints?

Use defence in depth. First, do not deploy setup scripts to production at all, or delete them after install. Second, block the route at the web server or edge, so the app never sees the request. Third, the endpoint itself must check state and authentication, failing closed if unsure. Fourth, keep config files read-only for the web server user. Each layer covers a failure in another. Missing authentication on a critical function is a named weakness, CWE-306.

Follow-up they may ask: Why is “the page is unlinked” not a security control?

4. How does Nginx choose a location block?

Nginx first checks exact = matches; a hit ends the search. Next it finds the longest matching prefix. If that prefix has the ^~ modifier, Nginx uses it and skips regex. Otherwise it tests regex locations in config order and uses the first match. If no regex matches, it falls back to the longest prefix. This is why an exact block on /core/install.php misses /core/install.php/foo, while ^~ catches it before the PHP regex runs.

Follow-up they may ask: Where does Nginx normalise the URI, and what does merge_slashes do?

5. Why “fail closed” when an application cannot tell what state it is in?

Fail closed means denying access when a check is unclear or errors out. Fail open means allowing it. Security checks should fail closed because attackers aim for edge cases: partial installs, timeouts and missing config. The Drupal advisory describes exactly such an edge case. Explain the trade-off too: failing closed can lock out real users, so pair it with clear errors and a safe admin recovery path.

Follow-up they may ask: Give an example where failing closed hurts availability, and how you would handle it.

The NexGismo verdict: My recommendation: treat this as two tasks, not one. Upgrade and run update.php today, and add the ^~ installer block even after patching. A setup script reachable on a live site is a standing risk, whatever the next advisory says.

Frequently Asked Questions

Is my Drupal site affected by CVE-2026-136716?

It is if it runs Drupal core below 10.6.23, 11.3.23 or 11.4.14 and /core/install.php is reachable from the internet. Drupal says sites that already blocked the installer are not vulnerable. The risky state is not visible in the admin UI, so check your version and test the installer URL from outside.

Do I need to run update.php after the Drupal security update?

Yes. The SA-CORE-2026-019 advisory says an update hook must run to fix existing production sites in the affected state. Replacing the code alone is not enough. Run update.php, or drush updatedb, straight after deploying 10.6.23, 11.3.23 or 11.4.14.

How do I block install.php in Drupal?

Drupal’s documentation recommends blocking /core/install.php in the web server config. On Nginx use a location ^~ /core/install.php block that returns 404. On Apache use a Location block with Require all denied in the virtual host. Drupal also suggests deleting the file with a Composer script, alongside the block.

Are Drupal 8, 9 and 11.2 getting a fix for this?

No. Drupal 8 and 9, Drupal 11.2.x and Drupal 10.5.x and earlier are end of life and get no fix. If you run one of them, block /core/install.php at the web server today. Then plan an upgrade to 10.6, 11.3 or 11.4, the branches that received patches.

The Drupal installer access bypass is a reminder that a patch is only as good as the states it covers. Upgrade to 10.6.23, 11.3.23 or 11.4.14, run the update hook, and block the installer at the server. Then check user 1. If you are modernising a Drupal 11 codebase while you patch, our guide to hooks as classes in Drupal 11 is a good next read.

Sources

Exit mobile version