Tag: SA-CORE-2026-017

Drupal’s installer got patched twice in a week, and attackers used both gaps

Drupal’s installer got patched twice in a week, and attackers used both gaps

Every Drupal site ships with a file whose whole job is to build a brand new site: core/install.php. On most production sites it sits there for years, answering “already installed” to anyone who asks. In the last week it has answered something else, twice, and attackers were listening both times.

On November 25, 2026 the Drupal Security Team published SA-CORE-2026-019 (CVE-2026-136716), a “Highly critical” access bypass that lets an unauthenticated attacker take over a site through the installer. It exists because the fix from one week earlier, SA-CORE-2026-017 (CVE-2026-132165, the bug Searchlight Cyber nicknamed “Fail2Install”), did not cover sites stuck in unusual or incomplete installation states. Drupal says both are exploited in the wild, and CISA added the new one to its Known Exploited Vulnerabilities (KEV) catalog on November 27 with a November 30 deadline.

Severity in one line: critical. Unauthenticated, remote, full site takeover, confirmed exploitation, and a fix that only works if you also run the database updates.

At a glance

  • CVEs: CVE-2026-136716 (SA-CORE-2026-019, November 25, 2026) and the earlier CVE-2026-132165 (SA-CORE-2026-017, November 18, 2026).
  • Scores: Drupal risk 21/25 and 20/25, both “Highly critical”. CVSS 3.1 9.8 for both on NVD (CVE-2026-136716 from CISA’s ADP entry; CVE-2026-132165 from NVD, with CISA’s ADP entry at 8.1).
  • Affected: Drupal core before 10.6.23, 11.0.0 to before 11.3.23, and 11.4.0 to before 11.4.14, when the installer is reachable. Drupal 11.2.x and older, 10.5.x and older, and Drupal 8 and 9 are end-of-life and get no fix.
  • Exploitation: confirmed by Drupal for both. First reported exploitation of CVE-2026-132165 on November 19, 2026 at 19:00 UTC. Both are in CISA KEV (added November 24 and November 27).
  • Fix: 10.6.23, 11.3.23 or 11.4.14, then run update.php (or drush updatedb), then block install.php at the web server.
  • Who should care: anyone running a supported Drupal 10 or 11 release below the fixed versions, anyone on an end-of-life branch (Searchlight lists Drupal 8.9 and 9 as affected by the first bug), and teams whose deploys skip database updates.

What happened

The story starts with SA-CORE-2026-017 on November 18, 2026. Drupal’s advisory was short: under specific conditions an attacker can use the installer to try to reinstall Drupal on an existing site, which can lead to site takeover or remote code execution. Drupal credited the find to Anthropic’s OSS Scanner.

Drupal later updated that advisory: the Security Team received a report of exploitation on live sites as early as November 19 at 19:00 UTC. That is roughly a day after the patch. On November 24, CISA put CVE-2026-132165 into KEV, and Searchlight Cyber researchers Kevin Gervot and Adam Kues published their own write-up of the bug. Their report to Drupal had been a duplicate, but they had confirmed pre-auth code execution on a stock Apache and PostgreSQL setup back on October 27.

Then came SA-CORE-2026-019 on November 25. Drupal’s wording: the first fix closed several installer holes, but some sites in unusual or incomplete installation states were still open to takeover, production sites included. The vulnerable state is not visible in the admin interface, sites already compromised may no longer look vulnerable, and any site that left its installer reachable after SA-CORE-2026-017 may already have been taken over. The advisory is blunt: “This is being exploited in the wild.”

Timeline for November 2026: Nov 18 SA-CORE-2026-017 fixes CVE-2026-132165, Nov 19 exploitation reported from 19:00 UTC, Nov 24 Searchlight write-up and KEV listing, Nov 25 SA-CORE-2026-019 for exploited CVE-2026-136716, Nov 27 KEV listing with a Nov 30 deadline.
Two Drupal installer advisories in a week, both exploited.

How it works

Drupal has not published exploit details, so this section leans on named researchers, labelled as such, and stays conceptual.

The installer first asks: “Is Drupal already installed here?” According to Searchlight, in the vulnerable versions that check failed open. A transient database failure made the installer treat a live site as not installed, which brought the setup forms back.

The clever part of the Searchlight research is how they made that error happen on demand. They looked at three system limits: open file descriptors, the database’s maximum connections, and TCP ephemeral source ports. Push any of them to the edge and new database connections fail for a moment. Resource exhaustion is usually filed under “availability”; here it became an authentication bypass. Searchlight says it worked with Apache or PHP-FPM and MySQL or PostgreSQL on Drupal 8.9, 9, 10 and 11, with PHP-FPM harder. Drupal 7 and Drupal 8 before 8.9 are not affected, per the researchers.

Once the installer is open, the attacker gets to configure the site. Searchlight describes turning that into code execution: the installer accepted a user-chosen SQLite database file path, so a database file could be placed under the web root with a PHP extension and content the attacker controls, and the stock Apache .htaccess rule meant to stop such files running was not anchored, so a crafted path slipped past it. Even without that step, my reading is that whoever completes a reinstall controls the administrator account it sets up; Drupal itself just calls the result site takeover.

Four-step chain: starve the database so a check fails, the installer fails open on a live site, the attacker reinstalls and takes the administrator account, then a SQLite file with a .php name in the web root runs as code. Step three is my inference.
The Fail2Install chain as Searchlight Cyber describes it, at a conceptual level. Drupal has not published exploit details.

CVE-2026-136716 is the leftover gap. Drupal only says it affects sites in unusual or incomplete installation states and that an update hook must run to fix sites already in that state. Hive Security read the fix commit and inferred that the first patch missed one stored state: an install task recorded with no install time. The new update hook writes the missing values. That is a reading of a diff, not a Drupal statement, but it explains why upgrading code alone is not enough.

Who is affected and how badly

The precondition is simple: the installer has to be reachable from the internet. Drupal says sites that already secured install.php are not vulnerable to SA-CORE-2026-019. The catch: securing it is a web server rule or Composer script each site owner adds, per Drupal’s “Securing the installer” page, and the reported exploitation says enough sites never did.

No login is needed. For CVE-2026-136716 Drupal describes site takeover, and CISA scores it automatable with total technical impact. Code execution as the web server account comes from Searchlight’s research on the first bug, CVE-2026-132165. The unusual-state condition sounds narrow, but the admin UI can’t show it, so treat every reachable installer as exposed until updates have run.

End-of-life branches (Drupal 8, 9, 10.5 and older, 11.2 and older) get no fix from Drupal. Searchlight lists 8.9 and 9 as affected by the first bug; nobody has said whether they are affected by the second. Either way, blocking the installer is the only protection those sites can get, and Drupal says sites with a secured installer are not vulnerable to SA-CORE-2026-019.

Unknown as of November 28, 2026: who is exploiting these bugs, how many sites were hit, and what attackers do next. Drupal has published no victim count or IOCs.

What to do now

  1. Block the installer first, right now, before the maintenance window. On nginx, Drupal recommends a prefix match in the server block: location ^~ /core/install.php { return 404; }. Don’t use an exact location = match, which can miss paths like /core/install.php/foo. On Apache, put <Location "/core/install.php"> Require all denied </Location> in the virtual host, not in .htaccess, because Composer scaffolding overwrites .htaccess.
  2. Before you upgrade, save the evidence: web access logs since November 18, a database dump, and a copy of settings.php.
  3. Upgrade to 10.6.23, 11.3.23 or 11.4.14.
  4. Run update.php or drush updatedb. Drupal says an update hook must run to fix existing production sites in the vulnerable state. If your CI pipeline deploys code and skips database updates, the new release does not protect you.
  5. Check user 1, as Drupal advises: look at logs for changes to or by that account, set its email address to one you control, and consider resetting its password. Look for administrator accounts you don’t recognise.
  6. Verify the block from outside. Drupal’s page suggests requesting /core/install.php, /install.php and /core/install.php/foo; each should return 403 or 404. A 200 means the block isn’t working.
  7. If anything looks wrong, treat the site as compromised and follow the “Your Drupal site got hacked. Now what?” page that the advisory links. My own baseline for a compromised site: rebuild from trusted code, restore a database backup from before November 18, and rotate the database credentials and other secrets.

Detection and monitoring

Nobody has published IP addresses, hashes or user agents, so you detect behaviour. On an installed site nobody has a reason to submit installer forms, and that shows up in web access logs that record the method and full path. The code execution path Searchlight describes leaves two more traces: an odd .php/core/ request path, and a PHP file in the uploads directory, visible if you collect host file events. I wrote four Sigma rules around those signals.

RuleCategoryLog sourceATT&CKLevel
Drupal installer POST requestWeb/App, emerging threatwebserverT1190High
Burst of installer requests from one client (correlation)Web/App, emerging threatwebserverT1190Medium
PHP file requested with trailing /core/ pathWeb/App, emerging threatwebserverT1505.003High
PHP file created in Drupal public filesLinux, generic TTPlinux / file_eventT1505.003High

The one I’d turn on first is the simplest: alert on any POST request whose path contains /install.php. Scope it to production hosts, because building a new site or adding a multisite site through the browser fires it legitimately. It also fires on blocked attempts that got a 403 or 404, which is useful attempt telemetry even when the request failed.

title: Drupal Installer POST Request - Potential CVE-2026-136716 / CVE-2026-132165 Site Takeover
id: d251aa0a-f5e0-4e6a-85f2-31c59d86e62c
status: test
description: |
    Detects HTTP POST requests to the Drupal installer (install.php). Drupal names the installer as the vector for both
    exploited flaws, SA-CORE-2026-017 and SA-CORE-2026-019. A reinstall most likely requires submitting installer
    forms (inference), which a site that is already installed should never receive.
references:
    - https://www.drupal.org/sa-core-2026-019
    - https://www.drupal.org/sa-core-2026-017
    - https://www.drupal.org/docs/administering-a-drupal-site/security-in-drupal/securing-the-installer-installphp
    - https://netsec101.com/?p=563
author: netsec101.com
date: 2026-11-28
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2026-136716
    - cve.2026-132165
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    selection_path:
        cs-uri-stem|contains:
            - '/core/install.php'
            - '/install.php'
    selection_method:
        cs-method: 'POST'
    condition: all of selection_*
falsepositives:
    - Building a brand new Drupal site or adding a multisite site through the browser installer
    - Staging or development hosts that are reinstalled on purpose (scope the rule to production hosts)
level: high

For monitoring, run the rules back over your logs to November 18, 2026, the day the first fix shipped, since Drupal says exploitation started as early as the next evening. Also check by hand that user 1 and the administrator list look right, and that the installer state looks finished after updates (Hive Security suggests drush state:get install_task, which should return done). Keep the installer rules on after you patch: any later hit means someone is testing for the next installer bug.

I wrote up all four rules, with tuning notes, lab tests and the ATT&CK gaps, in a separate detection post. The YAML lives in my Detection Rules repo.

My take

I think the patch is the least interesting part of this story. The real bug is cultural: a production web app that keeps a “build me a new site” endpoint online forever, guarded only by a runtime check that says “looks installed to me”. Searchlight fooled that check with a briefly unavailable database; the second advisory fooled it with state the first fix never imagined. A third bypass would not surprise me. A blocked URL doesn’t care about clever state.

So my first action on any Drupal estate today is the web server rule, not the upgrade. It takes minutes, it covers end-of-life sites that will never get a patch, and it protects you from whatever the next installer bug turns out to be. I’d also like to see Drupal block the installer by default once a site is installed. Leaving it to a docs page invites sites to skip it.

The underrated detail is the update hook. Pipelines that ship code and leave drush updatedb as a manual step will show the patched version and stay vulnerable. On a fleet, check that the hook ran, not just the version.

Finally, the speed. An AI scanner found the first bug, two human researchers found it independently, and attackers used it about a day after the fix. With a gap that short, “we patch Drupal monthly” is not a plan for highly critical core advisories.

Sources