Threats

New Drupal installer vulnerability exploited after last week's patch fell short

Adam Bream
By Adam Bream , Tech Content Writer
New Drupal installer vulnerability exploited after last week's patch fell short
Cover © Anonhaven

Drupal's November 18 fix for its installer left some sites open to takeover. Attackers are already exploiting the gap. On November 25, 2026, the Drupal Security Team published SA-CORE-2026-019 for the new Drupal installer vulnerability CVE-2026-136716, rated "Highly critical" at 21 of 25.

Last week's releases 10.6.22, 11.3.22 and 11.4.13 did not protect against it. They shipped with SA-CORE-2026-017, the advisory for CVE-2026-132165, exactly one week earlier. The fixed versions are now Drupal 10.6.23, 11.3.23 and 11.4.14. Each one needs a database update through update.php before a site is repaired.

"SA-CORE-2026-017 recently fixed several vulnerabilities within the Drupal core installer. However, certain sites in unusual or incomplete install states remain vulnerable to site takeover following that advisory, including production sites."

— Drupal Security Team, SA-CORE-2026-019, November 25, 2026

Drupal classifies CVE-2026-136716 as an access bypass in core/install.php, the script that installs Drupal core. Drupal.org, acting as the CNA (the body that assigns CVE numbers), published the CVE record on November 26. It files the flaw under CWE-754, Improper Check for Unusual or Exceptional Conditions. The record says it "allows Forceful Browsing," which means reaching a page the application should refuse to serve. It carries no CVSS score.

Parameter Value
CVE CVE-2026-136716, CWE-754
Drupal risk score 21/25, AC:Basic/A:None/CI:All/II:All/E:Exploit/TD:Uncommon
Affected Before 10.6.23, 11.0.0 before 11.3.23, 11.4.0 before 11.4.14
Fixed 10.6.23, 11.3.23, 11.4.14, then run update.php
No fix (end of life) 11.2.x and older, 10.5.x and older, Drupal 8 and 9

The risk vector explains the score. Access complexity is basic, anonymous users can attack, and confidentiality and integrity impact are both rated "All." A working exploit exists ("E:Exploit"), and only uncommon configurations are exposed ("TD:Uncommon").

No screen in the Drupal admin panel shows whether a site is in the dangerous state. Drupal's compromise-check guide, updated November 26, warns that "a production site that has worked normally for years can still be affected." The advisory adds that "sites that are already compromised may no longer be in the vulnerable state," so a clean check today does not rule out a past break-in.

Once the installer answers, an attack typically reruns its final steps, the guide says. That can replace the username, email address, password and timezone of user 1, the site's original administrator. The intruder may create new administrator accounts or hand the administrator role to users who never had it. Under some conditions, the installer can rewrite settings.php.

Two values in Drupal's state storage mark the risky condition. If drush state:get install_task returns anything other than done, the site is vulnerable now. A result of done proves nothing, because a successful attack sets it too.

The second value is install_session_token. A stored token means an installer session started on the site and never finished, which Drupal calls "the specific incomplete install state that SA-CORE-2026-019 addresses." It often appears when an installer session stalls. An empty result is not proof of safety either, since a completed installation, hostile or not, clears it.

Drupal has not published how attackers push a site into that state or find sites stuck in it. The advisory names no threat actor and gives no count of compromised sites. It warns that any site which left its installer reachable after SA-CORE-2026-017 may have been compromised. Drupal's guide dates that window from November 18, 2026, the day SA-CORE-2026-017 came out.

Only two groups of sites were safe throughout. One blocked requests to install.php or deleted the file. The other used the mitigations recommended by Drupal Steward, which Drupal says protect against known attack vectors for both advisories. The guide tells Steward customers to ask their hosting provider to confirm the mitigations were active. The advisory still asks them to upgrade "in case additional attack vectors are discovered."

How the first installer bug worked

SA-CORE-2026-017 carried a score of 20 out of 25. A research team that found the bug independently named it Fail2Install, according to StepSecurity. Under specific conditions, the bug let an attacker use the installer to try to reinstall Drupal, leading to site takeover or remote code execution. Anthropic's OSS Scanner made the original find, logged as ANT-2026-GMRPK0BU.

Drupal later said it had received a report of exploitation on live sites as early as November 19 at 19:00 UTC. CISA added CVE-2026-132165 to its Known Exploited Vulnerabilities (KEV) catalog on November 24. US federal civilian agencies got a November 27 deadline, and the entry requires forensic triage as well as patching.

StepSecurity's breakdown of Fail2Install explains the original race. In affected versions, early installer checks treated a database error as a sign that Drupal was not installed yet. If the database refused the early connections and accepted a later one within one request, the installer showed its setup forms on a live site.

The November 18 fix was a single commit, a15a19b, to core/includes/install.core.inc. StepSecurity lists its four changes.

Change Effect
Database error stops the installer The installer shows "Requirements problem" with the message "The configured database could not be verified."
Finished installs cannot resume The installer refuses to run when any step is recorded together with an install time, which Drupal sets only after an installation completes.
Session token A random token in the first visitor's session ties the installation to that browser. Others get "The installation can only be continued in the browser session that started it."
No chmod on settings.php The installer no longer changes permissions on settings.php. It only reports the problem.

Two changes targeted unfinished installs, yet SA-CORE-2026-019 shows some still got through.

Takeover is not the end of the chain. For the first bug, StepSecurity documented a path from the installer's database form to code execution on Apache. An attacker picks SQLite and points the database file at a path ending in .php inside the web root, such as web/modules. Drupal's official Docker image lets the web server user write there.

The attacker then enters PHP code as the site name, and Drupal stores it in that file. A crafted request slips past a Drupal .htaccess rule, and the fixed releases do not change that rule. The SA-CORE-2026-017 advisory says some, but not all, exploit paths are blocked if the web server cannot write to settings.php or change its permissions.

StepSecurity's answer is to take write access away from the web server. Its example sets web/sites/default to mode 550 and settings.php to 440. Both belong to a deploy user and the web server's group, www-data on Debian. The same treatment goes to web/modules and web/themes, while the files directory keeps its own ownership for uploads.

Shodan sees about 55,800 Drupal services, StepSecurity counted on November 26. About 31,500 run on branches affected by CVE-2026-132165, and roughly 15,000 of those sit on end-of-life Drupal 8 and 9. These are lower bounds, because sites that hide the generator tag are not counted. The count covers the first bug, not CVE-2026-136716.

Modern Drupal reveals only its major version, so a banner scan cannot tell a patched 10.6.22 from a vulnerable 10.6.21.

Two installer advisories landed seven days apart, and some sites patched on November 18 got a week of false confidence. What held through both was an unreachable installer, by server rule, deleted file or Drupal Steward.

— AnonHaven Editorial Team

How to block install.php

Block the installer first

Drupal says blocking or removing core/install.php closes the hole faster than updating. The code update itself stops the attack at once, even before database updates run. Run the compromise checks before the database update, because the update changes the install_task and install_time values those checks read.

Drupal's page on securing the installer gives the server rules. In nginx, find the HTTPS server block with nginx -T and add location ^~ /core/install.php { return 404; }. The ^~ modifier matches every URL starting with /core/install.php, including /core/install.php/foo. It also skips pattern matches such as location ~ \.php$, so block order does not matter.

An exact match, location = /core/install.php, is unsafe on some servers. Configurations that send any URL containing .php/ to PHP, for example with location ~ \.php(/|$), still run the installer at /core/install.php/foo. Test with nginx -t before reloading.

On Apache, Drupal recommends <Location "/core/install.php"> Require all denied </Location> in the server configuration. In .htaccess, that block causes a "500 Internal Server Error." Run apachectl -S to list virtual hosts and add the rule to each, HTTPS included. Then run apachectl configtest. A site installed in a subdirectory needs the adjusted path, such as /drupal/core/install.php.

Shared hosting users can put <Files "install.php"> Require all denied </Files> in .htaccess instead. Composer replaces that scaffold file whenever the scaffold step runs, even on a plain composer install. Drupal suggests keeping the lines in a separate file and adding it through the drupal-scaffold "append" mapping in composer.json.

Deleting core/install.php works too, but Composer restores it every time it installs or updates core. Drupal's workaround is rm -f web/core/install.php in the post-install-cmd and post-update-cmd scripts, which a --no-scripts deployment skips. Drupal advises removing the file and blocking it at the web server, so one lapsed layer does not reopen the installer.

A broad rule must not catch update.php, a separate script needed for updates. New multisite sites can go through drush site:install, which does not use install.php.

Three requests verify the block. Run curl -I https://example.com/core/install.php, curl -IL https://example.com/install.php and curl -I https://example.com/core/install.php/foo. All three must end in 403 or 404. A 200 shows the block is not working.

How to check a Drupal site for compromise

Drupal's guide lists checks to run from the project root. Multisite installs need a pass per site, as in drush -l example.com state:get install_task.

Check Command and how to read it
Installer requests in logs Search from November 17, a margin for timezones, in /var/log/nginx/access.log, /var/log/apache2/access.log, /var/log/httpd/access_log and hosting or CDN logs. Copy them now, as some hosts keep only days. Summarize with zgrep -hE '"(GET|POST) /core/install\.php' /var/log/nginx/access.log* | awk '{gsub(/"/,"",$6); print $6, $9, $10}' | sort | uniq -c | sort -rn.
Reading the log 403 or 404 is safe. A 200 of about 2 KB is usually the "Drupal already installed" page, and a 200 alone proves nothing. Investigate POSTs returning 302 or 303, much larger responses, op= or id=, bursts from one address, and "Choose language" or "Installing Drupal" pages. The earliest suspicious request picks the backup.
PHP requests in files directory zgrep -hE '/sites/[^ ]*/files/[^ ]*\.php' /var/log/nginx/access.log* finds requests to planted backdoors.
PHP files on disk find web/sites/*/files -path '*/php/twig/*' -prune -o \( -name '*.php*' -o -name '.htaccess' \) -newermt 2026-11-17 -print. A PHP file outside files/php/twig/ is a strong sign of compromise. Compare .htaccess files with a backup, since Drupal creates them itself.
Twig cache Run drush cr, then find web/sites/*/files/php/twig -type f. Inspect survivors with cat before deleting. A .php file that survives the rebuild is a strong sign of compromise.
User 1 drush user:information --uid=1. On MySQL or MariaDB, drush sql:query "SELECT uid, name, mail, FROM_UNIXTIME(created), FROM_UNIXTIME(changed) FROM users_field_data WHERE uid = 1" shows the change date. An unfamiliar email, an unexplained recent change or a password that no longer works are warning signs. The attack does not alter the created date.
Other administrators drush sql:query "SELECT u.uid, u.name, u.mail, FROM_UNIXTIME(u.created), FROM_UNIXTIME(u.changed), FROM_UNIXTIME(u.login) FROM users_field_data u WHERE u.uid = 1 OR u.uid IN (SELECT entity_id FROM user__roles WHERE roles_target_id = 'administrator') ORDER BY u.changed DESC". Adjust it for admin-level roles with another machine name. In /admin/people, filter by Administrator with Status set to Any and look for accounts created since November 18.
Site settings drush config:get system.site name, drush config:get system.site mail, drush config:get system.date timezone.default and drush config:get update.settings notification.emails. The last needs the Update Status module. An unknown address in the notification list is a warning sign.
User 1 sessions drush sql:query "SELECT uid, hostname, FROM_UNIXTIME(timestamp) FROM sessions WHERE uid = 1". Look for addresses that are not yours.
Install state drush state:get install_task (anything but done means vulnerable now) and drush state:get install_session_token (any value is a strong sign).
Install time drush php-eval "var_dump(date('Y-m-d\TH:i:s', (int) \Drupal::state()->get('install_time')))" or date -d "@$(drush state:get install_time)". A recent date on an older site is suspicious unless it matches the update. 1970-01-01 or 1969-12-31 means no value, and with install_task not done, the site is vulnerable. SQL and php-eval may differ by an hour or two.
settings.php ls -l web/sites/*/settings.php for the modification date, and grep -nE "^\s*\\\$settings\[['\"]hash_salt['\"]\]" web/sites/*/settings.php for more than one active hash_salt line. Check included files such as settings.local.php. Confirm the database with drush status --fields=db-hostname,db-name,db-username.
Backup before November 18 zgrep -oE "\('state','install_(task|time)',[^)]*\)" backup.sql.gz. MySQL writes _binary before the value and MariaDB does not, and the pattern matches both. Convert install_time with date -d @1678813200 on Linux or date -r 1678813200 on macOS. For PostgreSQL or hosting snapshots, search for install_task. A done task with the real install date means the site was never vulnerable.

The repair runs as the post-update hook system_post_update_mark_installation_finished, through update.php or drush updatedb. Drupal says to write down when it ran, because Drupal does not log it. The hook sets install_task to done, and if install_time was empty, it writes the current time.

After the update, install_task tells an admin nothing. An install_time within seconds of the update is not a sign of attack, but it means the site sat in the vulnerable state. A value between November 18 and the update is suspicious.

If the site was compromised

Patching does not undo a break-in, and Drupal tested that directly.

"Updating and resetting user 1 does not clean up a compromised site. In testing, a backdoor, a changed hash_salt and an attacker's administrator account all remained after both steps."

— Drupal, Checking whether your site was compromised through the installer, November 26, 2026

Drupal's guide says to take the site offline, or keep the installer blocked, and save copies of logs, database and files. Code gets rebuilt from Git or composer install, not cleaned in place. The database comes from a backup made before the earliest suspicious installer request. Without one, admins must review every user, role, configuration and content change since then.

Every secret must change, including database credentials, hash_salt, API keys and all administrator passwords. Logging everyone out takes drush sql:query "TRUNCATE sessions", and a missing sessions table means nobody is logged in.

An attacker who ran code before the advisories could have erased every database trace. In that case Drupal points admins to web server logs, backups from before the suspected attack, git status, drush pm:list --status=enabled, crontabs, ~/.ssh/authorized_keys and unexpected processes.

Drupal 11.2.x, 10.5.x and earlier branches, along with Drupal 8 and 9, are end of life and get no fix. They need a supported version, with the installer blocked until then. The guide tells all admins to update Twig, Symfony and Composer, the last with composer self-update.

The advisory credits Andrew Berry, Tim Hestenes Lehnen, Dave Long, James Sherwin and Cathy Theys with reporting the issue. Alex Pott, catch, Andrew Berry, Dave Long, Mohit Aghera and Jess (xjm) wrote the fix.

Drupal admins should block /core/install.php, run the checks, install 10.6.23, 11.3.23 or 11.4.14, update the database and reclaim the user 1 email.

Have a story? Become a contributor.

We work with independent researchers and cybersecurity professionals. Send us a tip or submit your article for editorial review.

Questions on the topic

Does updating to Drupal 10.6.22 protect against CVE-2026-136716?
No. Drupal says 10.6.22, 11.3.22 and 11.4.13 did not stop this exploited Drupal installer vulnerability, so sites need 10.6.23, 11.3.23 or 11.4.14 plus a database update through update.php.
How do I check if my Drupal site was hacked through install.php?
Drupal advises reviewing installer requests in web server logs since November 18, 2026, running drush state:get install_task and install_session_token, and checking the user 1 account for changes.
Which Drupal sites are not vulnerable to CVE-2026-136716?
Sites that blocked or removed core/install.php, or used Drupal Steward mitigations, were protected, according to Drupal's guide updated November 26, 2026. They still need to update.