Back to Intelligence

CVE-2026-132165: Drupal 'Fail2Install' Unauthenticated RCE — Detection and Remediation Guide

SA
Security Arsenal Team
November 27, 2026
12 min read

The U.S. Cybersecurity and Infrastructure Security Agency (CISA) has added a critical Drupal core vulnerability — tracked as CVE-2026-132165, dubbed "Fail2Install" — to its Known Exploited Vulnerabilities (KEV) catalog. The flaw carries a CVSS score of 9.8 and allows unauthenticated remote code execution against vulnerable Drupal installations. Under Binding Operational Directive 22-01, federal civilian agencies are required to remediate by November 27, 2026. Every organization running Drupal — not just federal agencies — should treat this as a patch-now event.

Unauthenticated RCE against a public-facing CMS is the worst-case scenario in web application security: no credentials required, direct path to code execution in the context of the web server, and typically a straight line to webshell deployment, credential theft from settings.php, and lateral movement into the hosting environment. CISA KEV inclusion means exploitation is confirmed, not theoretical. If you operate Drupal, assume probing has already begun against your perimeter.


Technical Analysis

What We Know

AttributeDetail
CVECVE-2026-132165
AliasFail2Install
CVSS9.8 (Critical)
TypeUnauthenticated remote code execution
Affected ComponentDrupal Core (installer logic)
Exploitation StatusActively exploited — listed in CISA KEV
CISA Remediation DeadlineNovember 27, 2026

The "Fail2Install" Pattern — Why Installer Flaws Are So Dangerous

While full technical write-ups are still emerging, the naming and classification tell defenders a great deal. Vulnerabilities in the "Fail2Install" class abuse the installer/re-installer logic present in CMS core — the code path intended to run once during initial site setup. When an application fails to properly verify that installation has already completed (or fails to lock down install.php and related endpoints after installation), an unauthenticated remote attacker can re-invoke installer routines and coerce the application into executing attacker-controlled input.

From a defender's perspective, the attack chain typically looks like this:

  1. Reconnaissance — The attacker fingerprints Drupal (e.g., CHANGELOG.txt, /core/CHANGELOG.txt, meta tags, X-Generator headers) and identifies a vulnerable version.
  2. Initial Access — An unauthenticated HTTP request (often a POST) targets the installer code path — classically install.php or /core/install.php — with crafted parameters designed to trigger code execution.
  3. Execution — Code runs in the context of the web server user (www-data, apache, nginx) via PHP-FPM or mod_php.
  4. Persistence — The attacker writes a webshell (commonly a .php file dropped into a web-accessible upload directory such as sites/default/files/) and/or creates a rogue admin user via database access using credentials from sites/default/settings.php.
  5. Post-Exploitation — Shells spawning from the web server process (sh, bash, curl/wget to pull second-stage payloads, nc reverse shells), database dumping, and lateral movement.

This matters for detection engineering: even without a public PoC, every stage above leaves observable artifacts in web access logs, process telemetry, and the filesystem.

Exploitation Status

  • CISA KEV listed — confirmed active exploitation in the wild.
  • CVSS 9.8 — network-exploitable, no authentication, no user interaction, high impact across confidentiality, integrity, and availability.
  • Expect mass scanning and opportunistic exploitation. Drupal's install base (government, higher education, healthcare, and enterprise marketing sites) makes it a high-value target for both financially motivated actors and initial access brokers.

Detection & Response

The detections below target the observable behaviors of this attack class: requests to installer endpoints, web server processes spawning shells, and webshell artifacts in Drupal file directories. Tune paths and process names to your stack (Apache vs. Nginx + PHP-FPM).

Sigma Rules

YAML
---
title: Drupal Installer Endpoint Access (Potential Fail2Install Exploitation)
id: 3f8a2c91-7b4d-4e6a-9c21-5d8f1a2b3c4d
status: experimental
description: Detects HTTP requests to Drupal installer endpoints (install.php / core/install.php), a primary indicator of CVE-2026-132165 Fail2Install exploitation attempts. Any request to these endpoints on an already-installed site is highly suspicious.
references:
  - https://thehackernews.com/2026/11/drupal-fail2install-exploit-details.html
  - https://attack.mitre.org/techniques/T1190/
author: Security Arsenal
date: 2026/11/18
tags:
  - attack.initial_access
  - attack.t1190
logsource:
  category: webserver
detection:
  selection:
    cs-uri-stem|contains:
      - '/install.php'
      - '/core/install.php'
      - '/update.php'
  filter_method:
    cs-method: 'GET'
    sc-status:
      - 403
      - 404
  condition: selection and not filter_method
falsepositives:
  - Legitimate site installation or update activity (maintenance windows)
  - Vulnerability scanners (verify source against approved scanner ranges)
level: high
---
title: Web Server Process Spawning Shell or Downloader (Post-Exploitation)
id: 9d1e4f72-3a5b-4c8d-b6e7-2f9a1c3d5e7f
status: experimental
description: Detects a web server or PHP-FPM worker process spawning a shell or common post-exploitation tool (sh, bash, curl, wget, nc, python). Strong indicator of successful code execution via a web application vulnerability such as CVE-2026-132165.
references:
  - https://thehackernews.com/2026/11/drupal-fail2install-exploit-details.html
  - https://attack.mitre.org/techniques/T1059/
author: Security Arsenal
date: 2026/11/18
tags:
  - attack.execution
  - attack.t1059.004
  - attack.t1105
logsource:
  category: process_creation
  product: linux
detection:
  selection_parent:
    ParentImage|endswith:
      - '/apache2'
      - '/httpd'
      - '/nginx'
      - '/php-fpm'
      - '/php-fpm8.3'
      - '/php-fpm8.2'
  selection_child:
    Image|endswith:
      - '/sh'
      - '/bash'
      - '/dash'
      - '/curl'
      - '/wget'
      - '/nc'
      - '/ncat'
      - '/python'
      - '/python3'
      - '/perl'
  condition: selection_parent and selection_child
falsepositives:
  - Drupal cron or Drush invocations triggered via web (rare; verify CommandLine)
  - Legitimate modules executing system commands (e.g., image processing pipelines should use dedicated binaries, not shells)
level: critical
---
title: PHP File Created in Drupal Public Files Directory (Webshell Drop)
id: 5c7b3e81-2d4f-4a9c-8e1b-6a3f9d2c4b7e
status: experimental
description: Detects creation of PHP files inside Drupal's public files directory (sites/default/files), a classic webshell staging location following exploitation of CVE-2026-132165. PHP should never be written to or executed from this directory in normal operation.
references:
  - https://thehackernews.com/2026/11/drupal-fail2install-exploit-details.html
  - https://attack.mitre.org/techniques/T1505.003/
author: Security Arsenal
date: 2026/11/18
tags:
  - attack.persistence
  - attack.t1505.003
logsource:
  category: file_event
  product: linux
detection:
  selection:
    TargetFilename|contains:
      - '/sites/default/files/'
    TargetFilename|endswith:
      - '.php'
      - '.phtml'
      - '.phar'
      - '.php7'
      - '.php5'
falsepositives:
  - None expected in a hardened deployment — this directory should never contain executable PHP
level: critical

KQL — Microsoft Sentinel / Defender

The first query hunts web request logs (via CommonSecurityLog from a WAF/reverse proxy, or Azure App Service / IIS logs depending on your ingestion path) for installer endpoint access. The second hunts Linux endpoint process telemetry for web server processes spawning shells.

KQL — Microsoft Sentinel / Defender
// Hunt 1: Requests to Drupal installer/update endpoints — potential Fail2Install exploitation
// Works against CommonSecurityLog (CEF from WAF/proxy) — adjust table if using Syslog or AppServiceHTTPLogs
CommonSecurityLog
| where TimeGenerated > ago(14d)
| where RequestURL has_any ("/install.php", "/core/install.php", "/update.php")
| where not (RequestMethod == "GET" and HttpStatusCode in ("403", "404"))
| summarize RequestCount = count(),
            FirstSeen = min(TimeGenerated),
            LastSeen = max(TimeGenerated),
            Methods = make_set(RequestMethod),
            StatusCodes = make_set(HttpStatusCode),
            TargetHosts = make_set(DestinationHostName)
  by SourceIP, RequestURL
| order by RequestCount desc
;

// Hunt 2: Web server / PHP-FPM spawning shells or downloaders (post-exploitation)
// DeviceProcessEvents for Linux hosts onboarded to Defender for Endpoint
DeviceProcessEvents
| where TimeGenerated > ago(14d)
| where InitiatingProcessFileName has_any ("apache2", "httpd", "nginx", "php-fpm")
   or InitiatingProcessFileName startswith "php-fpm"
| where FileName in~ ("sh", "bash", "dash", "curl", "wget", "nc", "ncat", "python", "python3", "perl")
| project TimeGenerated, DeviceName, AccountName,
          InitiatingProcessFileName, InitiatingProcessCommandLine,
          FileName, ProcessCommandLine, SHA256
| order by TimeGenerated desc
;

// Hunt 3: Suspicious GET requests to .php files under sites/default/files (webshell callback)
CommonSecurityLog
| where TimeGenerated > ago(14d)
| where RequestURL has "/sites/default/files/"
| where RequestURL endswith ".php" or RequestURL contains ".php?"
| summarize Requests = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated)
  by SourceIP, RequestURL, DestinationHostName
| order by Requests desc

Velociraptor VQL

Use this artifact to sweep Linux web servers for the two highest-fidelity post-exploitation artifacts: webshells recently dropped into the Drupal files directory, and web server processes with suspicious child processes.

VQL — Velociraptor
-- CVE-2026-132165 (Fail2Install) post-exploitation hunt
-- 1) PHP/executable files inside Drupal's public files directory (webshell staging)
-- 2) Web server processes with shell/downloader children

-- Webshell sweep: adjust glob base path to your docroot
SELECT FullPath, Size, Mtime, Ctime,
       hash(path=FullPath) AS Hash
FROM glob(globs=['/var/www/**/sites/default/files/**/*.php',
                 '/var/www/**/sites/default/files/**/*.phtml',
                 '/var/www/**/sites/default/files/**/*.phar',
                 '/srv/www/**/sites/default/files/**/*.php'])
ORDER BY Mtime DESC

-- Process tree check: web server / php-fpm spawning suspicious children
SELECT Pid, Ppid, Name, Exe, CommandLine, Username, CreateTime
FROM pslist()
WHERE Name =~ '^(sh|bash|dash|curl|wget|nc|ncat|python3?|perl)$'
  AND Ppid IN (
        SELECT Pid FROM pslist()
        WHERE Name =~ '(apache2|httpd|nginx|php-fpm)'
      )

Verification & Remediation Script (Bash)

The following script helps you (1) confirm your installed Drupal version, (2) sweep access logs for exploitation indicators, and (3) check for webshell artifacts. Run it on each Drupal host. It does not apply the patch — patching must go through your normal Composer/Drush workflow and change control.

Bash / Shell
#!/bin/bash
# CVE-2026-132165 (Fail2Install) - Drupal verification and triage script
# Run as root or with sudo on each Drupal web host.

set -u
DOCROOT="${1:-/var/www/html}"   # Override docroot: ./fail2install_check.sh /var/www/mysite
LOGDIR="${2:-/var/log}"

echo "=== [1] Installed Drupal core version ==="
if command -v drush >/dev/null 2>&1; then
  drush -r "$DOCROOT" status --field=drupal-version 2>/dev/null || echo "drush status failed - check site bootstrap"
fi
if [ -f "$DOCROOT/composer.lock" ]; then
  grep -A1 '"name": "drupal/core"' "$DOCROOT/composer.lock" | grep '"version"' || echo "drupal/core not found in composer.lock"
fi

echo ""
echo "=== [2] Access log sweep: installer/update endpoint hits ==="
# Any 200 response to install.php on an installed site is a red flag
find "$LOGDIR" -maxdepth 3 \( -name 'access*.log*' -o -name '*access.log*' \) 2>/dev/null | while read -r f; do
  zgrep -hE '(/install\.php|/core/install\.php|/update\.php)' "$f" 2>/dev/null
done | grep -vE '" (403|404) ' | awk '{print $1, $7, $9}' | sort | uniq -c | sort -rn | head -50

echo ""
echo "=== [3] Webshell sweep: PHP files in sites/default/files ==="
find "$DOCROOT" -path '*/sites/default/files/*' -type f \( -name '*.php' -o -name '*.phtml' -o -name '*.phar' -o -name '*.php5' -o -name '*.php7' \) -printf '%T+ %p\n' 2>/dev/null | sort -r | head -50

echo ""
echo "=== [4] Recently modified PHP files in docroot (last 14 days) ==="
find "$DOCROOT" -type f -name '*.php' -mtime -14 -printf '%T+ %p\n' 2>/dev/null | sort -r | head -50

echo ""
echo "=== [5] settings.php permission check ==="
find "$DOCROOT" -name 'settings.php' -path '*/sites/*' 2>/dev/null | while read -r sp; do
  ls -l "$sp"
  echo "  -> Recommended: 440 or 444, owned by root:webgroup"
done

echo ""
echo "Triage complete. If sections 2-4 return unexpected results, isolate the host and begin IR procedures."

Remediation

1. Patch Immediately

  • Apply the Drupal core security update that resolves CVE-2026-132165 per the official Drupal security advisory at https://www.drupal.org/security. Update via your standard Composer workflow (composer update drupal/core-recommended drupal/core-composer-scaffold drupal/core-project-message --with-all-dependencies) and run database updates (drush updatedb) afterward.
  • CISA KEV deadline: November 27, 2026 for federal civilian agencies under BOD 22-01. Private-sector organizations should treat this as their own deadline — KEV-listed Drupal flaws are exploited at scale within days.
  • Verify the running version post-patch (drush status --field=drupal-version) and confirm against the fixed versions listed in the advisory. Do not assume a container image rebuild pulled the fixed release — check the lockfile.

2. If You Cannot Patch Today — Compensating Controls

  • Block installer endpoints at the edge. Deny all external access to /install.php, /core/install.php, and /update.php at your WAF, reverse proxy, or web server configuration. On an installed site these endpoints serve no legitimate external purpose.
  • Harden the files directory. Ensure PHP execution is disabled in sites/default/files (and all public files paths). For Nginx, return 403 on *.php under those locations; for Apache, use php_flag engine off / SetHandler none via .htaccess or vhost config. Drupal ships a protective .htaccess there — verify it hasn't been removed.
  • Restrict settings.php. Permissions 440/444, owned outside the web server write context. Rotate the database credentials and $hash_salt if you find any evidence of compromise — assume they were read.
  • Egress filtering. Block outbound connections from web servers except to approved update/package endpoints. This breaks the curl/wget second-stage download and most reverse shells.

3. Hunt Before You Patch

Because exploitation predates your patch, patching alone does not evict an attacker. Before or immediately after patching:

  • Run the access-log sweep and filesystem checks above (or the Sigma/KQL/VQL hunts in your SIEM/EDR) covering at minimum the last 30 days.
  • Audit Drupal user accounts for rogue administrators (drush user:list --roles=administrator) and review the watchdog/database log for unexpected module or configuration changes.
  • Verify core file integrity — drush core:requirements plus a diff of docroot against a known-good deployment artifact or the official release tarball for your version.
  • If any indicator fires: isolate the host, preserve disk and memory, rotate all credentials reachable from the host (database, API keys, SMTP, downstream services), and initiate your IR plan. A CVSS 9.8 unauthenticated RCE with KEV status means you should assume full web-server-context compromise on any hit.

4. Structural Improvements

  • Inventory your Drupal estate — including forgotten microsites, marketing campaign pages, and dev/staging instances exposed to the internet. These are disproportionately the entry point in CMS compromises.
  • Reduce exposure: put admin and update paths behind VPN or IP allowlists; require SSO/MFA for all authenticated Drupal roles.
  • Subscribe to the Drupal security advisory feed (drupal.org/security/rss.xml) and route it to your vulnerability management queue with SLA tracking tied to KEV status.

Executive Takeaways

  • CVE-2026-132165 (Fail2Install) is a CVSS 9.8 unauthenticated RCE in Drupal core with confirmed active exploitation and CISA KEV listing. The federal remediation deadline is November 27, 2026 — adopt it as your own.
  • Patching is necessary but not sufficient. Hunt for pre-patch compromise: installer-endpoint requests, PHP files in sites/default/files, and web server processes spawning shells.
  • Edge-level blocking of installer/update endpoints and disabling PHP execution in the files directory are fast, low-risk compensating controls that meaningfully reduce attack surface.
  • If any detection fires, assume compromise of the web server context, including database credentials in settings.php, and respond accordingly.

Related Resources

Security Arsenal Penetration Testing Services AlertMonitor Platform Book a SOC Assessment vulnerability-management Intel Hub

Is your security operations ready?

Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.