Drupal Says Its Week-Old Installer Fix Left Some Sites Open to Takeover and Is Seeing Attacks, and in a Local Lab Upgrading the Code Alone Still Let the Visitor Who Got There First Continue the Install Until the Update Hook Ran
Drupal’s SA-CORE-2026-019 says sites in incomplete install states stayed open to takeover after last week’s fix and are being exploited. Tests on three core releases show why upgrading the code alone...
Drupal published its second installer advisory in a week on November 25. SA-CORE-2026-019 (CVE-2026-136716) says that “certain sites in unusual or incomplete install states remain vulnerable to site takeover following that advisory, including production sites,” that “this is being exploited in the wild,” and that the fixed releases (11.4.14, 11.3.23 and 10.6.23) are not the whole fix: “Run update.php. An update hook must run to fix existing production sites in this state.” The advisory names no state, no count of sites and no attacker, and SecurityWeek’s November 26 report says “Drupal has not shared any information on the attacks.”
Table Of Content
- What the two advisories say
- The three-line guard and the thirteen-line hook
- What the first fix put in place (11.4.13)
- What the second fix adds (11.4.14, 11.3.23, 10.6.23)
- A lab on three core releases
- Method
- Results
- Reading the table
- What to do
- Update, then run the hook (Drupal)
- Read the three state keys (ours)
- Check for a takeover (Drupal)
- Block the installer at the web server (Drupal’s page, updated November 26)
- Unsupported branches (ours)
- Dates, records and what is still unknown
- What I could not establish
I read the patch and then tested it: three Drupal core releases (11.4.12, 11.4.13 and 11.4.14) in a local lab, each asked what its installer does for two different visitors in several recorded install states. This follows our report on the first installer flaw (CVE-2026-132165). What the lab showed:
- In the incomplete state, the first fix (11.4.13) made the installer first come, first served: the first visitor to reach the installer’s full-bootstrap step was bound to it, and the second visitor got “Access denied.”
- The second fix (11.4.14) refuses every visitor in that state. But a site that had already been touched on 11.4.13 holds a stored session token, and after an upgrade of the code alone the visitor who minted it was still served the Configure site form. Running the update hook closed it.
- I forced the states by writing installer state rows, I do not know how many real sites sit in them, and the lab never submitted the form that sets the administrator account.
What the two advisories say
The advisory text below comes from Internet Archive captures (019 at 09:15 UTC on November 26, 017 at 12:13 UTC on November 25) and from the OSV copy of the 019 text. A direct read of the live 019 page at 10:34 UTC matched the 09:15 capture line for line. I used the archive because drupal.org’s bot protection has blocked automated readers at times: the archive’s capture of the 019 page at 21:52 UTC on November 25 is a “Client Challenge” page.
| SA-CORE-2026-017 (November 18) | SA-CORE-2026-019 (November 25) | |
|---|---|---|
| CVE | CVE-2026-132165 | CVE-2026-136716 |
| Label | Remote code execution | Access bypass |
| Risk | Highly critical 20/25, AC:Complex/A:None/CI:All/II:All/E:Exploit/TD:Uncommon | Highly critical 21/25, AC:Basic/A:None/CI:All/II:All/E:Exploit/TD:Uncommon |
| Affected | <10.6.22, 11.0.0 up to <11.3.22, 11.4.0 up to <11.4.13 | <10.6.23, 11.0.0 up to <11.3.23, 11.4.0 up to <11.4.14 |
| Fixed in | 11.4.13, 11.3.22, 10.6.22 | 11.4.14, 11.3.23, 10.6.23, plus an update hook |
| Exploitation | “as early as 2026-11-19 19:00 UTC” (an update to the advisory) | “being exploited in the wild” |
| Credit | Discovered by Anthropic’s OSS Scanner | Five reporters, two of them Drupal Security Team members |
| Advice to secure the installer | “In addition to upgrading, the Drupal Security Team recommends securing the Drupal installer after installation,” and as a fallback “If you cannot upgrade immediately” | “Strongly recommended” on “all new and existing sites” |
The two risk vectors differ in one field: attack complexity moves from Complex to Basic, which is the whole difference between 20 and 21. Two other changes matter to readers. The advice to secure the installer gets firmer (last row of the table), and the 017 sentence “Some (but not all) exploit paths are mitigated if the web server cannot write to or change permissions on settings.php” is gone. Drupal also says the affected state is invisible: “It is not apparent in the user interface if a site is in the affected vulnerable state, and sites that are already compromised may no longer be in the vulnerable state.” For sites that use Drupal Steward, the advisory says both issues are protected, but “sites should upgrade in the near future in case additional attack vectors are discovered.”
The three-line guard and the thirteen-line hook
What the first fix put in place (11.4.13)
Comparing includes/install.core.inc between 11.4.12 and 11.4.13 shows two protections. install_begin_request() now refuses a request when a task is recorded and the install_time state value is set; the added comment reads “The install_time state value is set when the installation finishes.” And install_bootstrap_full() binds the installation to a browser session: if no install_session_token exists in state, the request mints one, keeps it in the visitor’s session and stores its hash. Every later request has to present a matching token or gets “The installation can only be continued in the browser session that started it.” The comment above that code says “Only the browser session that reached this point first can continue the installation.” The same change also stops the installer from repairing file permissions on its own (auto_fix: FALSE).
What the second fix adds (11.4.14, 11.3.23, 10.6.23)
The fix commit in the drupal/core mirror, b5c5aacd93 (“fix: SA-CORE-2026-019,” 16:42:58 UTC on November 25), touches two files in 11.4.14, and the compares for 11.3.23 and 10.6.23 show the same added lines in the same two files. The first sits in install_begin_request(), right after the install_time check:
if ($install_state['interactive'] && !empty($task) && \Drupal::state()->get('install_session_token') === NULL) {
throw new AlreadyInstalledException($container->get('string_translation'));
}
In words: an interactive installer request on a site that has a recorded task but no session token is refused before install_bootstrap_full() can mint a token for the visitor. The second hunk is a new post-update function in system.post_update.php:
/**
* Mark the installation as finished on sites with incomplete install state.
*/
function system_post_update_mark_installation_finished(): void {
$state = \Drupal::state();
if ($state->get('install_task') !== 'done') {
$state->set('install_task', 'done');
}
if (!$state->get('install_time')) {
$state->set('install_time', \Drupal::time()->getRequestTime());
}
}
The hook writes the same two state values that a finished installation leaves behind. The other four commits in the 11.4.13 to 11.4.14 range are the back-to-dev commit, a theme-registry task, a Twig 3.31.1 update and the release commit, none of them about the installer.
A lab on three core releases
Method
I built three Drupal trees on Windows 11 with PHP 8.4.28, Composer 2.11.3 and Drush 13.8.1, installed a minimal site on SQLite with 11.4.12 and saved its database. The 11.4.13 and 11.4.14 trees are copies updated with Composer; its security blocking refused 11.4.13, which is now covered by advisories, until I passed --no-security-blocking.
composer create-project drupal/recommended-project:11.4.12 proj_12
composer require drush/drush --working-dir=proj_12
php proj_12/vendor/drush/drush/drush.php --root=proj_12/web site:install minimal --db-url=sqlite://sites/default/files/.ht.sqlite --account-name=admin --account-pass=choose-a-local-password --site-name=Lab --yes
# 11.4.13 and 11.4.14: copies of proj_12, then
composer require drupal/core-recommended:11.4.14 drupal/core-composer-scaffold:11.4.14 drupal/core-project-message:11.4.14 --update-with-all-dependencies --no-security-blocking
For each scenario I copied the saved database, wrote the installer state rows into the key_value table (collection state), started PHP’s built-in server on 127.0.0.1 and requested /core/install.php?rewrite=ok&profile=minimal&langcode=en with two separate cookie jars, visitor A first and then B. install_task holds the last task recorded as completed (install_run_tasks() writes done only when the last task finishes), so I used install_install_profile, which leaves the Configure site form as the next step. That form’s submit handler loads user 1 and overwrites its name, password and email (SiteConfigureForm.php, lines 279 to 307 in 11.4.14). I never submitted it.
Results
Twenty-one probes, each compared with the model further down. “Refused” is a page titled “Drupal already installed” (an HTTP 200 in this lab, so the title is what tells you); “Configure site” is the installer’s last interactive page, the form that sets user 1’s name, password and email (the page the lab was served carries those fields, plus the site name and site email).
| Recorded state | Visitor | 11.4.12 | 11.4.13 | 11.4.14 |
|---|---|---|---|---|
install_task = done, install_time set |
A | refused | refused | refused |
install_task missing, install_time set |
A | refused | refused | refused |
Last task recorded, install_time set |
A | Configure site | refused | refused |
Last task recorded, no install_time, no token |
A (first) | Configure site | Configure site, token stored | refused |
| Same state | B (second) | Configure site | Access denied | refused |
| Same state | A again | Configure site | Configure site | refused |
| Database A left on 11.4.13, code switched to 11.4.14, no update run | A | n/a | n/a | Configure site |
| Same database | B | n/a | n/a | Access denied |
Same database after drush updb --yes |
A | n/a | n/a | refused |
Reading the table
- Before the first fix (11.4.12): any visitor in the incomplete state is served the installer, and so is one who arrives second.
- With the first fix (11.4.13): visitor A got in and the database then held a token; B got “Access denied.” The fix does what its comment says, but nothing in it asks whether the first visitor is the site owner.
- With the second fix (11.4.14): the new guard refuses everyone and stores no token, so a site nobody touched on 11.4.13 is closed by the code alone.
- A site that was touched is not closed by the code alone: the token A minted on 11.4.13 survived the code swap, the new guard only checks that a token exists, and A still held the matching session, so A was served the Configure site form on 11.4.14 while B stayed out. After
drush updbransystem_post_update_mark_installation_finished,install_taskreaddoneand A was refused. This matches Drupal’s instruction that an update hook must run, and it is our reading of why, not Drupal’s explanation. - Two things are not the vulnerable state: a missing
install_task(refused on all three releases) and a setinstall_timeon 11.4.13 or later.
The decision order fits in a short function that reproduces all 21 answers. It is a reading of install_begin_request() and install_bootstrap_full(), not Drupal code, and it assumes the site’s active configuration is not empty:
# installer_model.py: decision order of install_begin_request() and install_bootstrap_full()
# (Drupal core includes/install.core.inc). "minor" is the third number of 11.4.x.
def predict(minor, task, install_time, token, holder):
if task == "done": # install_verify_completed_task()
return "already-installed"
if minor >= 13 and task and install_time: # added in 11.4.13
return "already-installed"
if minor >= 14 and task and token is None: # added in 11.4.14
return "already-installed"
if not task: # no task recorded: the config check refuses
return "already-installed"
if minor >= 13 and token is not None and not holder: # install_bootstrap_full(), added in 11.4.13
return "access-denied"
return "installer-served"
What to do
The first, third and fourth steps follow Drupal’s own advisory and documentation; the second and fifth are ours.
Update, then run the hook (Drupal)
Move to 11.4.14, 11.3.23 or 10.6.23, then run update.php or drush updb. In my lab drush updb --yes listed system mark_installation_finished post-update and printed Update completed: system_post_update_mark_installation_finished. If your deployment updates the code but skips database updates, skipping them here leaves a gap, as the lab table above shows.
Read the three state keys (ours)
These Drush 13 commands on Drupal 11.4 print the values below; a key that does not exist prints nothing.
drush state:get install_task # finished site: done
drush state:get install_time # finished site: a Unix timestamp
drush state:get install_session_token # finished site: prints nothing
My lab output for a forced incomplete state, before and after drush updb --yes (the timestamp is when the update ran in the lab):
before the update hook:
install_task -> install_install_profile
install_time -> (nothing)
install_session_token -> (nothing)
after the update hook:
install_task -> done
install_time -> 1795688608
install_session_token -> (nothing)
Without Drush, the same values are in the key_value table (table and column names from core’s DatabaseStorage.php, query run on SQLite in the lab). Values are PHP-serialized, such as s:4:"done";:
SELECT name, value FROM key_value
WHERE collection = 'state'
AND name IN ('install_task', 'install_time', 'install_session_token')
ORDER BY name;
A task name with no install_time is the state this advisory describes. A stored install_session_token on such a site means a visitor has already reached the installer’s full-bootstrap step, so treat the site as probed.
Check for a takeover (Drupal)
Drupal’s list: “Check your site logs for unauthorized access, especially unexpected changes to or by the user 1 account.” and “Ensure the user 1 email address is set to something you control, and consider resetting user 1’s password.” If a site looks compromised, Drupal points to Your Drupal site got hacked. Now what? The hook records the install as finished; it does not undo anything an attacker did before it ran.
Block the installer at the web server (Drupal’s page, updated November 26)
Drupal’s Securing the installer page says, under Before you start, “Never leave a half-finished installation on a server that is reachable from the internet,” and gives these rules for nginx and Apache virtual host configuration (not .htaccess):
location ^~ /core/install.php {
return 404;
}
<Location "/core/install.php">
Require all denied
</Location>
The page warns “Blocking install.php does not affect updates. update.php is a separate script. Do not block it by accident with a broad rule,” which matters here because the fix needs update.php. In our test for the first flaw, a regex deny rule placed after the PHP location did nothing; Drupal’s ^~ rule avoids that ordering problem, and its page says “the order of the blocks does not matter.”
Unsupported branches (ours)
Drupal says “Drupal 11.2.x and below are end-of-life and do not receive security coverage,” says the same of 10.5.x and below, and says 8 and 9 have reached end-of-life, so the web-server block is the control for those sites. The first row of the lab table shows that on 11.4.12 a site whose install_task reads done is refused, which is the value the hook writes. Drupal has not published that as guidance for old branches, and I did not test a core older than 11.4.12.
Dates, records and what is still unknown
| UTC | Event | Source |
|---|---|---|
| Nov 18, 14:44 | 11.4.13, 11.3.22 and 10.6.22 released (SA-CORE-2026-017) | Packagist |
| Nov 19, 19:00 | Earliest reported exploitation of the first flaw | SA-CORE-2026-017 update |
| Nov 24 | CISA adds CVE-2026-132165 to its Known Exploited Vulnerabilities catalog, due Nov 27 | KEV JSON |
| Nov 25, 08:03 | CVE-2026-136716 reserved | CVE Services |
| Nov 25, 16:42:58 | Fix commit in drupal/core 11.4.x | GitHub |
| Nov 25, 16:43:05 to 16:43:28 | 11.4.14, 11.3.23 and 10.6.23 published (7 days 1 hour 58 minutes after 11.4.13) | Packagist |
| Nov 25, 17:04 | OSV record DRUPAL-CORE-2026-019 published | OSV |
| Nov 26, 00:44 | CVE record published | CVE Services |
Four record notes. The CVE description says the issue affects Drupal core “from 0.0.0 to 10.6.23, from 11.0.0 to 11.3.23, from 11.4.0 to 11.4.14,” but its structured ranges use less-than those versions and the advisory says <10.6.23, so the fixed releases are not affected and a literal reading of the prose gets it wrong. The record carries CWE-754 (improper check for unusual or exceptional conditions) and CAPEC-87 (forceful browsing). NVD showed the entry as Received, with no score, at 10:30 UTC on November 26. And CVE-2026-136716 is not in the CISA catalog version 2026.11.25 (released 19:48 UTC on November 25), the newest I could read.
What I could not establish
- Which real sites sit in the incomplete state and how they got there. My forced state is one reading of “incomplete”; the advisory names none.
- Who is attacking, what the attacks do, and whether the 11.4.13 token binding changed anything for them. Nothing public says.
- Whether the hook is enough for a site that was already taken over. It records the install as finished and does not look at user 1 or anything else.
- The lab covers the 11.4 line on SQLite behind PHP’s built-in server. The 11.3.23 and 10.6.23 compares on GitHub show the same added lines, but I did not run those lines, MySQL or PostgreSQL, nginx or Apache in front, or Drupal Steward.
No exploit code was written or run against any real site, nothing was sent to any host except 127.0.0.1, and the Configure site form was never submitted. Other sources: CVE record, NVD entry, CISA KEV catalog, Packagist release times for drupal/core and install.core.inc at 11.4.14.








No Comment! Be the first one.