Drupal installer flaws SA-CORE-2026-017 and 019: how sites were taken over and what to do
Two exploited Drupal core flaws let anonymous visitors take over sites through install.php. The versions that fix both, how to block the installer and what to check first.
On 18 November 2026 the Drupal Security Team published SA-CORE-2026-017, tracked as CVE-2026-132165: a highly critical remote code execution flaw rated 20 out of 25. Under specific conditions an attacker can use the installer, install.php, to try to reinstall Drupal, which can lead to a site takeover or remote code execution. The fixed releases were 11.4.13, 11.3.22 and 10.6.22. The advisory was later updated to say the Security Team had a report of exploitation on live sites as early as 19 November 2026 at 19:00 UTC. Kudelski Security reports that CISA added CVE-2026-132165 to its Known Exploited Vulnerabilities catalog on 24 November (CISA alert).
On 25 November Drupal published SA-CORE-2026-019, tracked as CVE-2026-136716: a highly critical access bypass in the same installer, rated 21 out of 25, fixed in 10.6.23, 11.3.23 and 11.4.14 (release notes). The advisory says that certain sites in unusual or incomplete install states remained open to takeover after 017, production sites included, and that this is being exploited in the wild. Security Affairs reports that CISA has since added CVE-2026-136716 to the catalog as well.
So if you updated for 017 last week, you are not finished: Drupal's guide, Checking whether your site was compromised through the installer, says updating to 10.6.22, 11.3.22 or 11.4.13 did not protect against 019. No CVSS score had been published for CVE-2026-136716 when Kudelski wrote on 25 November; Security Affairs now cites 9.8. Drupal's 21 out of 25 is on its own scale.
How the attack works
Drupal ships core/install.php so a new site can be set up from a browser. Before showing any setup step, the installer must decide whether Drupal is already installed. On a finished site it should refuse to go further. Both advisories are about cases where that decision goes wrong. The CVE record for 019 classifies it as CWE-754, Improper Check for Unusual or Exceptional Conditions, with CAPEC-87, Forceful Browsing (Kudelski). In plain terms: in a state the code did not expect, the installer fails open, and anyone who browses straight to it can use it.
For 019, Drupal's compromise guide names the state. If install_task in Drupal's state storage holds anything other than done, the site is vulnerable now. A value in install_session_token means an installer session started and never finished, which the guide calls the specific incomplete state 019 addresses. Neither shows in the admin interface. An attack typically reruns the final installer steps, which can replace user 1's username, email address, password and timezone, and under some conditions can change settings.php. For 017, Kudelski cites third-party analysis, not confirmed by Drupal, in which a condition that makes the installer's database check fail leads it to treat a live site as not installed. The 017 advisory says some, but not all, exploit paths are blocked if the web server cannot write to settings.php or change its permissions.
- Site
Is in an unusual state: an installer session that never finished (019, per Drupal), or a condition that makes the installer's database check fail (017, per third-party analysis).
The installer can no longer tell that the site is installed.
- Attacker
Requests core/install.php without logging in.
The installer fails open and runs on a live site.
- Attacker
Completes the final installer steps with values they choose.
Per Drupal's guide, user 1's name, email address and password can be replaced.
- Attacker
Signs in as user 1.
They hold full administrative control of the site.
- Attacker
Uses that control against the server.
017 says this can lead to remote code execution; Drupal's guide warns a planted backdoor survives updating.
Why a second advisory a week later? SA-CORE-2026-019 says that 017 fixed several installer vulnerabilities but that sites in unusual or incomplete install states stayed vulnerable, and that sites already compromised may no longer be in the vulnerable state. The sources do not explain why the first fix missed this state. They do show that it is recorded in the database, and the advisory says an update hook must run to fix existing production sites in this state. Drupal's guide adds that the code update blocks the attack at once and the database update (system_post_update_mark_installation_finished) repairs the recorded state. Do both.
Who is affected
| Branch | Affected by 017 | Affected by 019 | Release that fixes both |
|---|---|---|---|
| Drupal 11.4.x | Below 11.4.13 | Below 11.4.14 | 11.4.14 |
| Drupal 11.3.x | Below 11.3.22 | Below 11.3.23 | 11.3.23 |
| Drupal 10.6.x | Below 10.6.22 | Below 10.6.23 | 10.6.23 |
| Drupal 11.2.x and older, 10.5.x and older | Yes | Yes | None: end of life |
| Drupal 8 and 9 | End of life | End of life | None |
| Drupal 7 | Not addressed in the sources we checked | Not affected (Pantheon) | Not needed for 019 |
Version alone does not decide exposure. 019 says a site that had already secured the installer is not vulnerable; Drupal's guide says a site was protected only if install.php was blocked or removed, or Drupal Steward mitigations were active, and must be updated either way. Drupal rates both flaws as exploitable only in uncommon configurations, with 019's access complexity basic against 017's complex. Drupal 10.6.x has security coverage only until Drupal 11.5.0 is released in December 2026 (release notes), so Drupal 10 sites also need a plan to move to 11.
How to check
Read the installed core version first. Composer reports what the project requires; Drush reports what the running site loads, which is worth comparing on hosts where deployed code may differ from the repository.
composer show drupal/core | grep -i '^versions' drush status --field=drupal-version
Then check whether the installer answers. Drupal's securing the installer guide gives these three requests. Replace example.com with your own hostname, and repeat for every hostname on a multisite install. All three should end in 403 or 404. A 200 means the block is missing. On an installed site that is the normal answer for an unblocked request, so it is not by itself a sign of compromise.
curl -I https://example.com/core/install.php curl -IL https://example.com/install.php curl -I https://example.com/core/install.php/foo
Finally, check whether the site is in the vulnerable state now. Per Drupal's guide, anything other than done from the first command means the site is vulnerable now, and any value from the second points to an interrupted attack or a broken install. On a multisite install add -l and the site name to each Drush command. Run these before the database update, which changes them.
drush state:get install_task drush state:get install_session_token
How to fix
Order matters. Drupal's guide says to run its compromise checks before the database update, because the 019 update sets install_task to done and, if install_time was empty, sets it to the time the update ran. That overwrites evidence. On any site whose installer was reachable since 18 November, work in this order:
- Block the installer at the web server (next section). Drupal says this closes the hole faster than updating.
- Copy the web server and CDN access logs somewhere safe, since some hosts keep them only for days, and take a copy of the database and files.
- Record
install_task,install_session_tokenandinstall_time, and run the checks under "How to tell if it was already exploited" below. - Update core, then run the database updates and write down the time you ran them.
Composer-managed sites. The 10.6.23 release notes give the update command below and warn that a same-day Symfony security update is not bundled: sites manage their own third-party dependencies. Drupal's guide also says to update Twig, Symfony and Composer itself (composer self-update). On multisite, run the database update for each site.
composer update "drupal/core-*" --with-all-dependencies composer audit drush updatedb -y # multisite: once per site drush -l site.example.com updatedb -y
Containers. Rebuild the image from the updated composer.lock, redeploy, then run the database update once against the running site and confirm the version from inside the new container. If your build deletes install.php with a Composer script, note Drupal's warning that composer install --no-scripts skips that step and leaves the file in place.
Managed hosts. Pantheon says its edge protection already blocks the known attack path and its runtime now blocks the installer on sites where an earlier installation did not finish. It still tells Drupal 10 and 11 sites to update through one-click core updates and then run drush updb or update.php. The advisories say Drupal Steward protects against known attack vectors but sites should still upgrade, and Drupal's guide says to ask your host to confirm the Steward mitigations were active for your site. Platform blocking does not update your code or repair your database.
Block the installer at the web server
Both advisories point to Drupal's guide on securing the installer; 019 strongly recommends it on all sites. Do it everywhere, so the next installer bug is not reachable either. Check first whether your host already blocks it, using the curl test above. On nginx, add this inside the HTTPS server block (find it with nginx -T) and run nginx -t before reloading. The ^~ prefix also covers /core/install.php/foo and stops regex locations, such as the PHP handler, matching first. Drupal warns against an exact match (location =), which misses that path on some configurations.
location ^~ /core/install.php {
return 404;
}On Apache, put the rule in the server configuration, not in .htaccess, where <Location> causes a 500 error. Add it to every virtual host that serves the site, including the HTTPS one (apachectl -S lists them), or once outside any <VirtualHost>. Run apachectl configtest before reloading.
<Location "/core/install.php"> Require all denied </Location>
If you can only use .htaccess, the guide gives a <Files "install.php"> rule instead, but Composer's scaffold step rewrites .htaccess on every composer install, so hand edits silently disappear; the guide shows how to keep them with a drupal-scaffold append entry. Drupal also recommends deleting core/install.php with Composer scripts as well as blocking it, since each layer covers the other's failure. Blocking does not affect update.php. To add a site to a multisite install, use drush site:install, which does not use install.php.
How to tell if it was already exploited
Check any site whose installer was reachable at any time since 18 November, the day 017 was published; 19 November at 19:00 UTC is only the earliest exploitation Drupal has been told about. Log timestamps are usually in server time, so Drupal's guide says to start searches a few hours before 18 November in your own timezone, and its commands use 17 November as a margin. Kudelski reported on 25 November that no indicators such as attacker addresses, user agents or file hashes had been published. A clean result on one check proves little: a completed attack sets install_task to done and clears install_session_token.
# Installer requests by method, status and size (adjust the log path)
zgrep -hE '"(GET|POST) /core/install\.php' /var/log/nginx/access.log* | awk '{gsub(/"/,"",$6); print $6, $9, $10}' | sort | uniq -c | sort -rn
# Requests for PHP files in the files directory
zgrep -hE '/sites/[^ ]*/files/[^ ]*\.php' /var/log/nginx/access.log*| Check | Normal | Investigate |
|---|---|---|
| Installer requests in logs | 403 or 404; 200 with about 2 KB, the "already installed" page | POSTs returning 302 or 303, much larger responses, op= or id= in the URL, bursts from one address, pages titled "Choose language" or "Installing Drupal" |
User 1 (drush user:information --uid=1) | Your email address; password works | Unfamiliar email, unexplained recent changed date, password no longer works |
| Administrator accounts | Accounts you recognise | New administrators or recently changed ones since 18 November |
install_time | Your real install date, or within seconds of your database update | A date between 18 November and your update |
install_session_token | Empty | Any value |
settings.php | Unchanged, one hash_salt line, expected database | Recent change, extra hash_salt, different database |
| Site settings | Site email and update notification addresses unchanged | An address you do not recognise |
| Pre-18 November backup | install_task was done and install_time matches your real install date | install_task was not done: the site was in the vulnerable state |
The guide gives a query for each check, including all administrator accounts and a zgrep that reads the old state values from a compressed MySQL or MariaDB dump. After the update, install_task reads done whatever happened, so rely on the logs, user 1 and an older backup.
For files, Drupal keeps compiled Twig templates as PHP under files/php/twig/, so a plain search for PHP files returns many harmless hits. Search outside that directory first: any PHP file there is a strong sign of compromise. Then rebuild the cache and list what is left inside the Twig directory. A rebuild empties it, so a .php file that survives did not come from Drupal. Read anything you find before deleting it.
find web/sites/*/files -path '*/php/twig/*' -prune -o \( -name '*.php*' -o -name '.htaccess' \) -newermt 2026-11-17 -print drush cr find web/sites/*/files/php/twig -type f
Drupal creates .htaccess files in the files directory itself, so compare those with a backup. Because an attacker who ran code earlier could undo every database sign, also compare your code with git status or a fresh composer install, check drush pm:list --status=enabled for modules you did not install, and look at crontabs, ~/.ssh/authorized_keys and running processes.
If anything looks wrong, Drupal's guide says updating and resetting user 1 is not enough: in its testing a backdoor, a changed hash_salt and an attacker's administrator account survived both. It asks you to keep the installer blocked and save copies of logs, database and files; rebuild code from a trusted source rather than cleaning existing files; restore the database from a backup older than the earliest suspicious installer request; change every secret, including hash_salt; and log out all users. 019 also links the general guide, Your Drupal site got hacked. Now what?.
What it teaches
Setup and recovery paths are part of the attack surface. An installer exists to hand full control to whoever completes it, and none of these sites needed install.php once running. A web server rule refusing it would have made both advisories irrelevant, whatever the bug. The same holds for any first-run wizard or recovery mode: if production does not need it, production should not serve it. When code cannot tell what state a system is in, it should refuse.
The second lesson is about trusting a patch. A follow-up advisory for the same file a week later shows the first patch was partial for some sites. When a flaw is being exploited, add a control that does not depend on the bug being fully understood, here blocking the installer, and check the advisory again a few days later.
Questions on this
I updated to 10.6.22, 11.3.22 or 11.4.13 last week. Am I covered?+
No. Drupal's compromise guide says those releases did not protect against SA-CORE-2026-019. Update to 10.6.23, 11.3.23 or 11.4.14 and run the database updates, but record install_task, install_session_token and install_time first, because the update changes them.
Will blocking install.php stop me updating Drupal?+
No. Drupal's guide on securing the installer says update.php is a separate script and blocking the installer does not affect updates. Take care that a broad rule does not block update.php by accident, and check that drush updatedb still works afterwards.
We host on Pantheon or use Drupal Steward. Do we still need to do anything?+
Yes. Pantheon says its edge and runtime block the known attack paths, but it still tells Drupal 10 and 11 sites to update core and run drush updb. Drupal says Steward protects against known vectors but sites should still upgrade, and its guide suggests asking your host to confirm the mitigations were active for your site.
Our site runs Drupal 9 or 10.5. What can we do?+
Those branches are end of life and get no fix from Drupal. Block the installer at the web server now, make settings.php unwritable by the web server, run the compromise checks, and plan an urgent upgrade to a supported branch.
Sources
- Drupal core - Highly critical - Remote code execution - SA-CORE-2026-017
- Drupal core - Highly critical - Access bypass - SA-CORE-2026-019
- drupal 10.6.23 release notes
- Checking whether your site was compromised through the installer, Drupal documentation
- Securing the installer (install.php), Drupal documentation
- Your Drupal site got hacked. Now what?
- Drupal Core Access Bypass Allows Site Takeover via the Installer (Kudelski Security)
- Drupal core security release fixes a highly critical installer access bypass (Pantheon)
- CISA Adds Three Known Exploited Vulnerabilities to Catalog (24 November 2026)
- U.S. CISA adds Drupal Core and GeoServer flaws to its Known Exploited Vulnerabilities catalog (Security Affairs)