CVE-2026-136716: Why a Patched Drupal Site Can Still Be Taken Over

CVE-2026-136716 is an actively exploited Drupal core flaw. Sites left in an unusual or incomplete install state could still be taken over through the installer at /core/install.php after the November 18 fix. Drupal released versions 10.6.23, 11.3.23 and 11.4.14 on November 25, 2026. CISA added the flaw to its KEV catalog two days later.

Two Advisories, One Installer

Drupal ships a browser installer at /core/install.php. A site needs it once, on the day it is built. On November 18, 2026 the Drupal Security Team published SA-CORE-2026-017 (CVE-2026-132165): under specific conditions an attacker could use that installer to attempt a reinstall, which can end in remote code execution or a site takeover. The team later added that it had a report of exploitation on live sites as early as 2026-11-19 19:00 UTC. CISA put CVE-2026-132165 in the KEV catalog on November 24.

A week after the first fix, SA-CORE-2026-019 followed. Its single CVE is CVE-2026-136716. It says plainly that the first patch was not the end of it: certain sites in unusual or incomplete install states remain vulnerable to site takeover following that advisory, including production sites. Drupal's own checking guide puts it more bluntly. Updating to 10.6.22, 11.3.22 or 11.4.13 did not protect a site from the second flaw. Our November 21 to 27 roundup covered the first advisory. This analysis is about the second, because it changes who has to investigate.

SA-CORE-2026-017SA-CORE-2026-019
CVECVE-2026-132165CVE-2026-136716
PublishedNovember 18, 2026November 25, 2026
Drupal risk ratingHighly critical, 20 of 25Highly critical, 21 of 25
TypeRemote code executionAccess bypass (NVD: CWE-754, CVSS 3.1 base score 9.8)
Fixed in10.6.22, 11.3.22, 11.4.1310.6.23, 11.3.23, 11.4.14 with the update.php database update
CISA KEVAdded November 24, 2026Added November 27, 2026; federal due date November 30, 2026

Why Patching Last Week Was Not Enough

The second flaw lives in recorded state, not only in code. Drupal stores whether installation finished. A site whose installation was never finished keeps that state in its database for years without anyone seeing it. SA-CORE-2026-019 warns that it is not apparent in the user interface if a site is in the affected vulnerable state. Drupal's guide to checking for installer compromise adds that a production site that has worked normally for years can still be affected.

That is why the fix comes in two parts. The new code closes the hole as soon as it is deployed. The database update, run through update.php, then repairs the recorded install state. SA-CORE-2026-019 says an update hook must run to fix existing production sites in this state. A site was protected all along only if requests to install.php were blocked, the file had been removed or the host applied the Drupal Steward mitigations. Drupal tells site owners to confirm the Steward point with their host rather than assume it.

Drupal reports this flaw is being exploited in the wild. On November 29, FIRST's EPSS model put the chance of exploitation activity in the next 30 days at about 5.5 percent, higher than roughly 93.5 percent of all scored CVEs.

What an Attack Changes on the Site

According to the drupal.org guide, an attack typically runs the final steps of the installer again. Those steps can replace four things on the user 1 account: the username, the email address, the password and the timezone. The attacker may also be able to create new administrator accounts or give existing users the administrator role. Under some conditions the installer can change settings.php. The installer also writes three values to Drupal's state storage that matter here: install_time, install_task and install_session_token.

The advisory gives no request strings, payloads or attacker addresses. This page does not invent any. What the drupal.org guidance does give is the set of places where those changes land. That set is the artifact map that follows.

The Drupal Artifact Map

Each row comes from drupal.org's checking guide unless the row links another drupal.org source.

EvidenceWhere to lookWhat points to compromise
Installer requestsWeb server access logs, for example /var/log/nginx/access.log, /var/log/apache2/access.log or /var/log/httpd/access_log along with any CDN or host logsPOST requests answered with 302 or 303, responses much larger than about 2 KB, query strings with op= or id=, bursts from one address, pages titled "Choose language" or "Installing Drupal"
Planted PHPThe files directory, sites/*/filesAny PHP file outside files/php/twig/; anything in the Twig cache that survives a cache rebuild; web requests for PHP files under the files directory
User 1users_field_data row with uid 1An unfamiliar email address or a recent changed date nobody can explain. The attack leaves created alone, so an old created date proves nothing
Administratorsusers_field_data joined to user__roles; Manage, People in the admin interfaceAdministrator accounts nobody recognizes, especially ones created since November 18, 2026. Users newly given the role count too
Sessionssessions table: uid, hostname, timestamp (also in the hacked-site guide)User 1 or administrator sessions from addresses that do not belong to the site's staff; a fresh session for an account that has not logged in for a long time
Install stateState values install_time, install_task, install_session_tokenAn install time that is recent on an old site; any value in install_session_token; install_task other than "done" means the site is vulnerable now
Site settingsConfiguration system.site name and mail, system.date default timezone, update.settings notification emailsA site email or update notification address nobody recognizes; a site name or timezone that changed
settings.phpsites/*/settings.php and any file it includes, such as settings.local.phpA recent modification time, more than one active hash_salt line, a database host, name or user that is not the one the site should use
Drupal's own logDatabase logging module: the watchdog table (schema), viewed at /admin/reports/dblogEvents by user 1 or a new administrator, from an unfamiliar hostname, after the first suspicious installer request

The dblog row needs two cautions. Its schema records, for each event, the uid of the user who triggered it, the URL it came from, the user's hostname and a Unix timestamp. That is enough to tie an account to an address and a time. But the module keeps only as many entries as the "Database Log Entries to Keep" setting allows. Cron enforces that limit, so a busy site may already have lost the window. And anything in the database is only as trustworthy as the database. The drupal.org guide for hacked sites warns that a well compromised site may have had any row or column changed.

A Detection Built for This Flaw

The rule below turns drupal.org's published indicators into a Sigma rule for web server logs. It looks for the two request patterns the checking guide flags: an installer POST that ends in a redirect and a request for a PHP file under a files directory. It is built from the documented fields only. We have not run it against captured attack traffic, because none has been published. Expect noise on sites that legitimately add multisite installs through the browser.

title: Drupal installer redirect or PHP request in files directory (CVE-2026-136716 triage)
status: experimental
references:
  - https://www.drupal.org/sa-core-2026-019
  - https://www.drupal.org/docs/administering-a-drupal-site/security-in-drupal/checking-whether-your-site-was-compromised-through-the-installer
logsource:
  category: webserver
detection:
  installer_post_redirect:
    cs-method: POST
    cs-uri-stem|endswith: '/core/install.php'
    sc-status:
      - 302
      - 303
  php_in_files_dir:
    cs-uri-stem|re: '/sites/[^/]+/files/.+\.php'
  condition: installer_post_redirect or php_in_files_dir
level: high

For a fast first pass on one server, drupal.org gives a shell summary of installer requests by method, status and size. It also gives a find command for PHP and .htaccess files changed in the files directory since November 17, chosen as a safe margin for timezone offsets. Run both before the database update, which rewrites some of the state values in the artifact map.

The Scoping Problem: A Compromised Site May Look Clean

The most important sentence in SA-CORE-2026-019 is the one that limits every check above: sites that are already compromised may no longer be in the vulnerable state. A successful attack finishes the installation. It sets install_task to "done", the same value a healthy site shows. A completed install also clears install_session_token. After the database update, install_task reads "done" on every site, so it tells an investigator nothing.

There is a second limit. The drupal.org checks assume the attacker arrived after the advisories. An attacker who ran code on the site earlier could have undone every database sign. For that case the guide points to evidence the attacker is less likely to have touched: web server logs, backups from before the suspected attack, a file integrity check against the Git repository or a fresh Composer install, the list of enabled modules and changes outside Drupal, such as crontabs, SSH authorized keys and unexpected processes.

In practice the questions come in this order:

  1. Could anyone reach the installer? Establish whether /core/install.php answered from the internet at any point since November 18, 2026. Go back further if the site was ever left half-installed.
  2. Did anyone use it? Pull every access log the site, host and CDN still hold, before retention deletes them. Find the earliest suspicious installer request. That time anchors everything that follows.
  3. What changed after that time? Compare user 1, administrator accounts, site settings, settings.php and the files directory with a backup taken before November 18. The pre-advisory backup is the strongest single piece of evidence, because its install_task and install_time values show whether the site was ever in the vulnerable state.
  4. What did the attacker do with the site? Read dblog and session records from the anchor time forward. Look for planted PHP, unexpected modules and changes outside Drupal.
  5. What else could the attacker reach? settings.php holds the database credentials and the hash salt. If either may have been read, the database server and every system sharing those credentials are in scope.

Preserve First, Then Remediate

The order matters because remediation destroys evidence. The SA-CORE-2026-019 database update rewrites install_task and may set install_time. Drupal does not log when that update ran. Some hosts keep access logs for only a few days. So copy the logs, take a database dump and image the files before anyone runs update.php, then patch. Drupal's hacked-site guide makes the same point in its first step: stop and make a forensic copy, ideally an operating system snapshot of the server.

Patching and resetting the user 1 password do not clean a compromised site. The checking guide reports that in testing a backdoor, a changed hash_salt and an attacker's administrator account all remained after both steps. The recovery path it lays out is a rebuild: code from a trusted source, the database restored from a backup made before the earliest suspicious installer request and every secret changed. Block the installer permanently as described in Securing the installer (install.php) so the next installer flaw has nothing to reach.

If the earliest suspicious request is older than your oldest backup, the scoping becomes an incident response engagement. The same is true when the logs are already gone. The work is to reconstruct the timeline from whatever the web server, the host and the database still hold.

Primary Sources

Frequently Asked Questions

Is CVE-2026-136716 being exploited?

Yes. Drupal's advisory SA-CORE-2026-019 says it is being exploited in the wild. CISA added it to the Known Exploited Vulnerabilities catalog on November 27, 2026 with a federal due date of November 30.

Did updating Drupal for SA-CORE-2026-017 protect my site?

No. Drupal says updating to 10.6.22, 11.3.22 or 11.4.13 did not protect against CVE-2026-136716. Update to 10.6.23, 11.3.23 or 11.4.14 and run the database updates. A site was protected earlier only if install.php was blocked or removed or the Drupal Steward mitigations were active.

How do I check whether my Drupal site was taken over through the installer?

Search the web server access logs since November 18, 2026 for installer POST requests that redirect, then check the user 1 email and changed date, administrator accounts, the install_time and install_session_token state values, settings.php and PHP files in the files directory. Do this before running the database update, which rewrites some of those values.

Does updating Drupal remove an attacker who already took over the site?

No. Drupal reports that a backdoor, a changed hash_salt and an attacker's administrator account all survived both the update and a user 1 password reset in testing. Preserve evidence first, then rebuild from trusted code and restore the database from a backup made before the earliest suspicious installer request.

Make Sherlock Forensics your preferred source in Google Search