>
av.Amit VijayanCYBERSECURITY & RESEARCHLet\u2019s connect
Back to the library

Threat Hunting Playbooks

Hunting CVE-2026-132165 Exploitation: Drupal Installer Reinstall RCE in Splunk and CrowdStrike

Thumbnail for: Hunting CVE-2026-132165 Exploitation: Drupal Installer Reinstall RCE in Splunk and CrowdStrike

Why this matters now

CISA added CVE-2026-132165 to its Known Exploited Vulnerabilities catalog on November 24, 2026, with a federal remediation deadline of November 27 — three days. The flaw is in Drupal core's own installer: under specific conditions, an unauthenticated visitor can use /core/install.php to attempt to reinstall a site that is already live, take it over, and run code on the server. It is no longer theoretical. The Drupal Security Team has received a report that the flaw was exploited on live sites as early as November 19 at 19:00 UTC — one day after the fix shipped. If you host Drupal, the question is not whether to patch, but whether someone already reinstalled your site out from under you while your database was having a bad day.

CVECVE-2026-132165 — Drupal core installer can be used to reinstall an already-installed site, leading to site takeover or remote code execution
CVSSNo NVD CVSS score as of November 25, 2026 — the NVD entry and the MITRE CVE record had not yet been published when this article was written. Drupal's own rating is the authoritative score for now: Highly critical, 20 out of 25 (AC:Complex/A:None/CI:All/II:All/E:Exploit/TD:Uncommon). The rating was raised from 18/25 after the exploitation report arrived; the E:Exploit marker means an exploit exists. Do not treat the missing NVD score as a lower severity.
WeaknessCWE not yet published in the public CVE record as of November 25, 2026. CISA's KEV entry describes the flaw as a failure to fail securely: the installer treats a database it cannot verify as an empty site. Third-party trackers have suggested CWE-284, CWE-754 and CWE-502; those are not vendor-assigned and are not asserted here.
Affected productDrupal core: all releases below 10.6.22; 11.0.0 through 11.3.21; 11.4.0 through 11.4.12. Drupal 11.2.x and below, 10.5.x and below, and Drupal 8 and 9 are end of life and receive no fix. About 29 percent of the 528,430 Drupal sites reporting usage in the week of November 8, 2026 were on end-of-life branches.
VendorDrupal — security advisory SA-CORE-2026-017, published November 18, 2026. Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-GMRPK0BU. Drupal published an advance notice, PSA-2026-11-16, two days before the release.
DisclosureNovember 18, 2026 (SA-CORE-2026-017), with fixed releases 10.6.22, 11.3.22 and 11.4.13 the same day. The same releases also fix SA-CORE-2026-018 (CVE-2026-132166), a moderately critical gadget chain that Drupal says is not directly exploitable on its own.
CISA KEVAdded November 24, 2026; federal due date November 27, 2026; known ransomware campaign use Unknown; forensic triage required. That triage flag matters: CISA is telling agencies to hunt, not just patch.
PatchDrupal 11.4.13, 11.3.22, or 10.6.22, by branch. End-of-life branches must move to a supported branch — there is no fix on those branches.
Exploitation statusExploited in the wild. The Drupal Security Team received a report of exploitation on live sites as early as November 19, 2026 at 19:00 UTC, and updated the advisory to say so. CISA's KEV listing on November 24 confirms it. Drupal has published no indicators of compromise, no request patterns, no attacker infrastructure, and no victim count — the scale of the exploitation is unclear, and no number is asserted here. A public lab reported on November 20 describes an anonymous POST to /core/install.php reaching the configure-site form and replacing user 1's name, email and password on 11.4.12; that lab has not been independently verified.

The timeline is the whole story: advance notice on November 16, fix on November 18, exploitation on live sites by November 19, KEV on November 24, deadline November 27. A site that sat on an affected release through that window may already have been reinstalled, and upgrading now does nothing about that. Patching closes the hole; it does not evict an attacker who already holds your administrator account.

The technique, in hunt terms

Every Drupal site ships core/install.php, the script that builds a fresh site. You need it once. Core's default .htaccess rules do not block it, so on most installations it stays reachable from the internet for the life of the site. The installer has two jobs at the start of a request: verify that the configured database is reachable and does not already contain a Drupal site, and decide whether an installation is already complete. The vulnerable code gets both wrong when the database check fails.

The root cause, as documented by Ostorlab's analysis of the patch, has three parts. First, install_verify_database_ready() in core/includes/install.core.inc calls tableExists() on the last table in the system schema and treats any exception as "the database might not be set up yet" — it swallows the exception, so a database outage, an exhausted connection pool or a bad credential change looks exactly like a brand-new site. Second, install_begin_request() does not consult the install_time state that install_finished() writes when an installation completes, so a site whose install_task state is missing can reach the installation checks even though install_time shows it was installed. Third, install_bootstrap_full() starts a session but does not bind the installation to the session that started it — a second visitor can join an installation that is already in progress and finish it with their own choices.

The attack flow follows from that: wait for, or cause, the configured database connection to fail; request /core/install.php; walk the installer, choosing a database the attacker controls or one the installer can create; create an administrator account — in the public lab report, user 1 itself is replaced; then install a module or theme with the new administrator account, or use another admin feature that writes PHP, to run code as the web server user. Drupal rates exploitation as complex and the distribution of affected configurations as uncommon, because the database check has to fail at the right moment or an installation has to be in progress. That is also why blocking the installer removes the exposure even when a database outage happens. Some exploit paths are also blocked where the web server cannot write to or change permissions on settings.php — a partial brake, not a fix.

In MITRE ATT&CK terms: T1190 Exploit Public-Facing Application (the installer on the public web server), T1136 Create Account (the attacker-created administrator, or the replaced user 1), T1078 Valid Accounts (using that administrator account), and T1505.001 Web Shell (a module or theme installed to run PHP). Those are behavior mappings from the advisory's description, not vendor-assigned technique IDs.

The detection problem is that Drupal published no indicators of compromise, so there is no signature to match. What exists instead is a trail with three parts, and the hunts below follow it in order: the installer requests in your web logs, the walk-through that turns a request into a reinstall, and the changes a reinstall leaves behind — a reset install timestamp, a changed user 1, a rewritten settings.php, and new code on the host. Any one part on its own is weak. All three together are a compromise.

Hunt 1: Requests to the installer in your web logs

This is the cheapest hunt and the one to run first: who has requested /core/install.php at all. On a live site the installer should never be requested — it is not part of normal browsing, and Drupal's own guidance is to block it permanently. A single GET from a scanner is noise. A burst of requests, or any POST, from one source is a lead, and a POST after November 18 is a priority lead, because that is when the flaw became public and exploitation began the next day.

This Splunk search counts installer requests by source over the last thirty days. Replace index=web and sourcetype=access_combined with your own web-log index and sourcetype; the field names follow Splunk's Common Information Model for web access logs. Run it over at least thirty days: the disclosure was November 18 and the first reported exploitation was November 19, so a shorter window can miss the first wave.

index=web sourcetype=access_combined earliest=-30d uri_path="*/core/install.php"
| stats count as requests, count(eval(http_method="POST")) as posts, dc(uri_query) as distinct_params, values(status) as status_codes, earliest(_time) as first_seen, latest(_time) as last_seen by clientip
| where posts > 0 OR requests > 5
| sort - posts

Read the output in two passes. First, any source with POSTs: a POST to the installer is someone walking the installation flow, not a scanner doing a GET probe. Second, sources with many GETs and a spread of query strings: the installer walk uses parameters such as profile= and langcode=, so a source cycling through them is working the flow. Check the status codes too — a run of 200s means the installer answered; 403s or 404s mean your block is holding. Keep the source list: Hunts 2 and 3 are about what those same addresses did next.

The CrowdStrike side has no direct equivalent for this hunt: Falcon sensors do not see HTTP requests to the web server unless your web access logs are forwarded into Falcon LogScale. If they are, run the same search there against the ingested web dataset. If they are not, do not force a Falcon query for this step — the web server's own logs are the source, and the Falcon-side corroboration comes in Hunt 3, on the host itself.

Hunt 2: The reinstall walk-through — and the database failure that opens the door

A reinstall is a sequence, not a single request: the installer is opened, a language and an installation profile are chosen, database details are supplied, and the configure-site form creates the administrator account. In the web log that sequence shows up as several /core/install.php requests from one source, including POSTs and installer parameters. This Splunk search isolates exactly that pattern — installer requests that are POSTs or carry installer parameters — and counts the steps per source.

index=web sourcetype=access_combined earliest=-30d uri_path="*/core/install.php" (uri_query="*profile=*" OR uri_query="*langcode=*" OR http_method=POST)
| stats count as installer_steps, values(uri_query) as params, values(status) as status_codes, earliest(_time) as first_seen, latest(_time) as last_seen by clientip
| sort - installer_steps

A source with several steps here is past probing and into the installation flow. Cross-check it against Hunt 1: a source that appears in both, with POSTs in the second, is your strongest lead. Then check the precondition, because the flaw needs the database check to fail. Pull your database and application logs for the minutes before each install.php hit and look for connection failures — a database outage, an exhausted pool, a credential change that broke the connection. A burst of database errors from the web server followed by installer requests from an external address is the exact shape of this flaw being used, and it is also the shape of a coincidence worth ruling out: if your database was healthy and no installation was in progress at that moment, the pre-patch check should have thrown AlreadyInstalledException and the attempt should have failed. This precondition check is a hunting hypothesis, not a published indicator — Drupal has not disclosed the precise conditions — but it is the mechanism the advisory and the patch both describe, and it is what separates an attempt from a success.

One more check in this hunt, on the host rather than in the logs. A reinstall resets the install timestamp, so a recent install_time on a site that was installed long ago is a strong lead. Run it on each Drupal host:

drush state:get install_time

Compare the value against your deployment records. If the timestamp moved after November 19 and nobody on your team reinstalled the site, treat the host as compromised and move to Hunt 3 before you patch anything — patching first destroys nothing, but it also answers nothing, and the reinstall evidence is in the state you are about to overwrite.

Hunt 3: Post-takeover — the administrator, the settings file, and code on the host

A successful reinstall leaves three kinds of evidence: a changed administrator account, a rewritten settings.php, and new code the attacker installed to run PHP. Hunt all three, and correlate each back to the source IPs from Hunts 1 and 2 — an admin action from an address that also walked the installer is a takeover, not a coincidence.

First, the administrator. The attacker ends the install flow by creating an administrator account, and the public lab report describes user 1 itself being replaced. This Splunk search looks for administrative actions in the web log — user creation, module and theme administration — and groups them by route so you can see which ones came from your suspect addresses:

index=web sourcetype=access_combined earliest=-30d (uri_path="*/user/1/edit*" OR uri_path="*/admin/people/create*" OR uri_path="*/admin/modules*" OR uri_path="*/admin/appearance*")
| stats count as admin_actions, dc(clientip) as sources, values(clientip) as ips, earliest(_time) as first_seen, latest(_time) as last_seen by uri_path
| sort - admin_actions

Confirm on the host with the user table — recently created administrators, ordered by creation time:

drush sqlq "SELECT uid, name, created FROM users_field_data ORDER BY created DESC LIMIT 20;"

Any administrator created after November 19 that your team does not recognize is a finding, and a user 1 whose name, email or password changed after that date is a takeover. Check settings.php the same way — its modification time and its database settings against your deployment records:

stat -c '%y %n' sites/default/settings.php
grep -n "^\$databases" -A 12 sites/default/settings.php

Second, the code. A reinstall that ends in code execution usually means a module or theme the attacker installed, or a PHP file dropped where uploads live. This CrowdStrike query catches new PHP files written under the custom module and theme directories, where legitimate deployments change code only through your release process:

#event_simpleName=FileWritten
| TargetFileName=/modules\/custom\/.*\.php$/ or TargetFileName=/themes\/custom\/.*\.php$/
| table([@timestamp, ComputerName, UserName, FileName, TargetFileName, ImageFileName])
| sort(@timestamp, order=desc)

And the settings.php write itself, which a reinstall performs and a running site almost never does outside a deployment:

#event_simpleName=FileWritten
| TargetFileName=/settings\.php$/
| table([@timestamp, ComputerName, UserName, FileName, TargetFileName, ImageFileName])
| sort(@timestamp, order=desc)

Third, the web worker spawning a shell — the moment installed PHP turns into commands on the host. This is the same pattern as the IIS web-shell hunt: a web server process has no business launching a shell, a network tool, or a scripting interpreter outside its own worker pool.

#event_simpleName=ProcessRollup2
| ParentBaseFileName=/^(php-fpm|httpd|apache2|nginx|php-cgi)$/
| FileName=/^(sh|bash|dash|perl|python3?|curl|wget|nc|ncat|socat)$/
| table([@timestamp, ComputerName, UserName, FileName, CommandLine, ParentBaseFileName, ImageFileName])
| sort(@timestamp, order=desc)

Fourth, the attacker's database. The reinstall lets the attacker point the site at a database they control, so the web server opens a new outbound connection to an unfamiliar host on a database port. This CrowdStrike query lists outbound database connections from your hosts; restrict it to your web servers and exclude your real database hosts before escalating:

#event_simpleName=NetworkConnectIP4
| RemotePort=3306 or RemotePort=5432 or RemotePort=1433
| table([@timestamp, ComputerName, ImageFileName, RemoteAddress, RemotePort])
| sort(@timestamp, order=desc)

Defender KQL: the Windows-hosted Drupal site

Drupal usually runs on Linux, but Windows-hosted sites on IIS exist, and Defender XDR has a genuine angle there. A settings.php write or a new PHP file under the web root, and the IIS worker spawning a shell, are the same two signals as the CrowdStrike queries above:

DeviceFileEvents
| where Timestamp > ago(30d)
| where FileName =~ "settings.php" or (FolderPath has "modules" and FileName endswith ".php")
| project Timestamp, DeviceName, ActionType, FileName, FolderPath, InitiatingProcessFileName
| sort by Timestamp desc
DeviceProcessEvents
| where Timestamp > ago(30d)
| where InitiatingProcessFileName in~ ("w3wp.exe", "httpd.exe", "php-cgi.exe")
| where FileName in~ ("cmd.exe", "powershell.exe", "pwsh.exe")
| project Timestamp, DeviceName, AccountName, FileName, ProcessCommandLine, InitiatingProcessFileName
| sort by Timestamp desc

Triage: sorting real compromise from noise

First, know the noise. A lone GET to /core/install.php proves nothing: monitoring, security scanners and internet-wide probing all request it, and the Imunify360 and Ostorlab write-ups both say so. What matters is the combination — installer requests, a walk-through with POSTs and installer parameters, and a state change on the host. A scanner does not complete the configure-site form.

Second, check the state before you check the logs. drush state:get install_time is the fastest discriminator in the whole incident: a recent timestamp on an old site means the installer ran to completion. Pair it with the user table and the settings.php modification time. If all three are untouched, the attempt almost certainly failed — the pre-patch check threw AlreadyInstalledException, or the database was healthy when the attacker knocked. If any one of them moved, treat the site as compromised: preserve the web logs and the Drupal watchdog log, snapshot the host, and rebuild from known-good media rather than patching in place. A reinstall hands the attacker the database, the administrator account and the configuration; patching after that closes a door they no longer need.

Third, for a Hunt 1 hit with no state change, check whether the attempt could have succeeded. Was there a database outage, a failed credential change, or an installation in progress in the minutes before the hit? If yes, widen the hunt window and check the other evidence harder. If no, and the status codes are 403s from your block, log the source and move on — but keep the block, because the next database outage is when the attempt becomes dangerous.

Fourth, compare the enabled modules and themes against your baseline. A reinstall that ends in code execution usually leaves a module or theme your release process never deployed:

drush pm:list --status=enabled --type=module
drush pm:list --status=enabled --type=theme

Fifth, if your sites are hosted or managed by a provider, ask in writing whether the fleet is on 10.6.22, 11.3.22 or 11.4.13, whether it has hunted web logs for /core/install.php POSTs back to November 18, and whether any site's install_time or user 1 changed after November 19. A provider that cannot answer the second and third questions has not done the hunt.

Remediation and hardening

Upgrade every Drupal site to the fixed release for its branch: 11.4.13, 11.3.22, or 10.6.22. Sites on 11.2.x and below, 10.5.x and below, or Drupal 8 and 9 must move to a supported branch, because those branches receive no fix. Upgrade every environment, including staging and any disaster-recovery copy — a staged copy with the installer reachable is the same exposure with less monitoring. Run database updates and rebuild caches, then confirm the version (grep -n "const VERSION" core/lib/Drupal.php or drush status --field=drupal-version).

Then block the installer and keep it blocked, on patched sites too. The patch does not remove core/install.php, and Drupal recommends securing it permanently. Pick one of the three methods and keep it: deny the path in the web server configuration (for nginx, location = /core/install.php { deny all; }), add an .htaccess rule in the core/ directory denying install.php with Require all denied, or remove core/install.php and keep it removed with a Composer script after each update. The web-server rule is the least likely to be overwritten by an update. Verify it the way Ostorlab suggests — a 403 or 404 is the desired result, and any other response means the installer still answers:

curl -sS -o /dev/null -w '%{http_code}\n' https://example.com/core/install.php

Make settings.php read-only to the web server user where your deployment allows it. It blocks some exploit paths — not all, and not a substitute for the upgrade — but it raises the cost of the reinstall path that depends on rewriting the file.

Hunt before you declare the incident over. The KEV deadline is November 27, and CISA flagged this one for forensic triage, not just patching: check install_time, user 1, settings.php and the enabled modules on every site, and rotate every credential the site's database configuration could have exposed — the attacker who completes a reinstall controls the database settings, so treat the old database credentials as exposed. The same discipline runs through the WordPress core RCE hunt and the PolyShell hunt on Magento: a CMS flaw with a short KEV deadline is a hunt-the-installation question first and a patch question second, because the patch never tells you whether someone already walked in.

Sources

Keep exploring.

All articles