# Drupal Core install.php Remote Code Execution Vulnerability (CVE-2026-132165, SA-CORE-2026-017)

> Drupal core's bundled installer (/core/install.php) can, under specific conditions, be abused by unauthenticated attackers to reinstall an already-installed site, replace administrator accounts and take over the site or achieve remote code execution. Drupal's advisory reports exploitation on live sites as early as 2026-11-19 19:00 UTC; fixes shipped 2026-11-18 in 10.6.22, 11.3.22 and 11.4.13.

- **Published:** 2026-11-27T09:35:11Z
- **Last reviewed:** 2026-11-27T09:35:11Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-6970
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-6970.png
- **ID:** TL-2026-6970
- **Severity:** HIGH (CVSS 8.1)
- **Category:** VULNERABILITY
- **Status:** ACTIVE
- **Detections:** 9 (1 shown free below) · **IOCs:** 10
- **CVEs:** CVE-2026-132165, CVE-2026-132166

## Description

CVE-2026-132165 (Drupal SA-CORE-2026-017, 'Highly critical' 20/25 on Drupal's risk scale, AC:Complex/A:None/CI:All/II:All/E:Exploit/TD:Uncommon) affects the installer script that ships with every copy of Drupal core as /core/install.php and remains on disk after installation. Core's default .htaccess rules do not block it. NSFOCUS CERT describes the root cause as the installer improperly validating installation task states on already-installed sites under specific conditions. Drupal states that an attacker can use the installer to attempt to reinstall Drupal, which can lead to site takeover or remote code execution. At least one exploit path can be used by anonymous users. Drupal says some, but not all, exploit paths are mitigated if the web server cannot write to or change permissions on settings.php. NSFOCUS lists the risk condition as an affected version where core/install.php is externally accessible or the web server can write to or modify permissions on settings.php, and states that details and a PoC are public. NSFOCUS gives a CVSS score of 8.1 without publishing a vector; Drupal rates exploit complexity as complex and affected configurations as uncommon.

Exploitation status: the Drupal advisory carries an update that the Security Team received a report the flaw was exploited on live sites as early as 2026-11-19 19:00 UTC, and the advisory's exploit-maturity field is 'Exploit' (documented or deployed exploit code exists). NSFOCUS (2026-11-27) states active exploitation in the wild has been observed. Early press coverage (BleepingComputer and The Hacker News, 2026-11-19; SecurityOnline 2026-11-18) predates or does not reflect this update and reported no confirmed attacks; the advisory is treated as authoritative. No source publishes attacker infrastructure, IPs, user agents, request logs, dropped files, malware families or attribution.

Discovery: the flaw was found by Anthropic's OSS Scanner and tracked as ANT-2026-GMRPK0BU; reporters credited on the advisory include Lee Rowlands, Pamela Barone, Scott Euser, Stephan Zeidler and Tyler Nighswander. Drupal Steward (managed WAF-style protection) covers known attack vectors but customers are still told to upgrade, since alternative attack paths may exist.

Companion issue: SA-CORE-2026-018 / CVE-2026-132166 (Moderately critical 14/25, exploit maturity Theoretical) is a gadget chain in core that is not directly exploitable on its own; it requires a separate vulnerability allowing unsafe input to unserialize(), and administrator privileges. It was fixed in the same releases. It is related but is not the installer flaw and no exploitation of it is reported.

Affected: Drupal core < 10.6.22; >= 11.0.0 and < 11.3.22; >= 11.4.0 and < 11.4.13. Drupal 11.2.x and below and 10.5.x and below, and Drupal 8/9, are end-of-life with no security coverage (NSFOCUS notes they may also be affected). CWE: Drupal lists none; SecurityOnline maps CWE-306 (unverified third-party mapping).

## MITRE ATT&CK

- T1190 Exploit Public-Facing Application
- T1059 Command and Scripting Interpreter
- T1136 Create Account
- T1098 Account Manipulation
- T1005 Data from Local System
- T1565.001 Stored Data Manipulation
- T1531 Account Access Removal

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**Web Server Worker Spawning Shell or Download Tool — Drupal RCE Follow-On (CVE-2026-132165)** (`TL-2026-6970-SPL-003`)

Detects Sysmon-for-Linux process-creation events where a PHP/web server worker (php-fpm, apache2, httpd, nginx, php-cgi) spawns a shell, interpreter or download tool (sh, bash, dash, curl, wget, nc, python3, perl). Covers command execution after CVE-2026-132165 site takeover/RCE and staging of additional tooling. Web workers rarely spawn interactive shells on a healthy Drupal host.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1059.004, T1190, T1105
- **Data sources:** sysmon_for_linux (index=linux, sourcetype=sysmon:linux), DeviceProcessEvents, linux process_creation telemetry (auditd execve)
- **Severity:** critical
- **Confidence:** high

### Splunk SPL

```spl
index=linux sourcetype="sysmon:linux" EventCode=1 (ParentImage="*/php-fpm*" OR ParentImage="*/apache2" OR ParentImage="*/httpd" OR ParentImage="*/nginx" OR ParentImage="*/php-cgi") (Image="*/sh" OR Image="*/bash" OR Image="*/dash" OR Image="*/curl" OR Image="*/wget" OR Image="*/nc" OR Image="*/ncat" OR Image="*/python3" OR Image="*/perl")
| eval tool=case(match(Image,"/(curl|wget)$"),"download_tool", match(Image,"/(nc|ncat)$"),"netcat", true(),"shell_or_interpreter")
| stats count, values(CommandLine) AS command_lines, values(Image) AS images, values(ParentImage) AS parents, min(_time) AS first_seen BY host, User, tool
| convert ctime(first_seen)
```

### Microsoft KQL

```kql
DeviceProcessEvents
| where Timestamp > ago(24h)
| where InitiatingProcessFileName in~ ("php-fpm", "php-fpm8.2", "php-fpm8.3", "php-fpm8.4", "apache2", "httpd", "nginx", "php-cgi")
| where FileName in~ ("sh", "bash", "dash", "curl", "wget", "nc", "ncat", "python3", "perl")
| extend Tool = case(FileName in~ ("curl", "wget"), "download_tool", FileName in~ ("nc", "ncat"), "netcat", "shell_or_interpreter")
| project Timestamp, DeviceName, Tool, InitiatingProcessFileName, FileName, ProcessCommandLine, AccountName
```

### Sigma

```yaml
title: Web Server Worker Spawns Shell or Download Tool - Drupal RCE Follow-On
id: 2b6c9f35-e804-4a1d-8c57-f3a1d7b60e92
status: experimental
description: Detects a PHP-FPM, Apache, nginx or php-cgi worker spawning a shell, interpreter or download utility on Linux. Indicates command execution after exploitation of an internet-facing application such as Drupal (CVE-2026-132165).
references:
  - https://www.drupal.org/sa-core-2026-017
  - https://nsfocusglobal.com/drupal-remote-code-execution-vulnerability-cve-2026-132165-advisory/
  - https://www.drupal.org/docs/administering-a-drupal-site/security-in-drupal/securing-the-installer-installphp
author: Threadlinqs Team
date: 2026/11/27
tags:
  - attack.initial-access
  - attack.t1190
  - attack.execution
  - attack.t1059.004
  - attack.command-and-control
  - attack.t1105
  - cve.2026.132165
logsource:
  category: process_creation
  product: linux
detection:
  selection_parent:
    ParentImage|endswith:
      - '/apache2'
      - '/httpd'
      - '/nginx'
      - '/php-cgi'
  selection_parent_fpm:
    ParentImage|contains: '/php-fpm'
  selection_child:
    Image|endswith:
      - '/sh'
      - '/bash'
      - '/dash'
      - '/curl'
      - '/wget'
      - '/nc'
      - '/ncat'
      - '/python3'
      - '/perl'
  condition: (selection_parent or selection_parent_fpm) and selection_child
falsepositives:
  - Applications that deliberately shell out from PHP (image processing, PDF generation, git or drush calls)
  - Health-check scripts executed by the web server
level: high
```

**Known false positives:**

- Modules that legitimately call shell utilities (ImageMagick, wkhtmltopdf, drush) through PHP exec()
- Monitoring scripts launched by the web server user

**Tuning notes:** Baseline legitimate child processes per site for 7 days and exclude exact parent/child/command-line triples. Tighten by alerting only when the user is www-data/apache/nginx and the command line contains network or encoding utilities. Correlate with installer access (SPL-001) on the same host.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- Drupal Installer Task-State Progression and Write Requests — Reinstall Flow (CVE-2026-132165) (locked: unlock with TL Creds)
- Drupal [indicator] Tampering, Permission Change or Credential Read by Web Worker — Reinstall Precondition and Artifact (locked: unlock with TL Creds)
- Web Worker or Child Process Outbound Connection to Public IP on Non-Standard Port — Post-Takeover Command and Control (locked: unlock with TL Creds)
- Drupal Installer Path-Variant Requests ([indicator]/<suffix>, encoded separators) — Block Bypass Attempt (locked: unlock with TL Creds)
- PHP File Dropped into Drupal Writable Paths by Web Worker — Web Shell Persistence After Takeover (locked: unlock with TL Creds)
- Reverse Shell or Download-and-Execute Command Line Spawned by Web Worker — Drupal RCE Payload Staging (locked: unlock with TL Creds)
- Drupal [indicator] Reachable on Installed Site — CVE-2026-132165 Installer Reinstall Probing and Exploitation (locked: unlock with TL Creds)
- Drupal Administrator Account Created, Deleted or Blocked in Short Window — Account Replacement After Reinstall (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sources

- [Drupal core - Highly critical - Remote code execution - SA-CORE-2026-017](https://www.drupal.org/sa-core-2026-017)
- [Drupal core - Moderately critical - Gadget chain - SA-CORE-2026-018 (CVE-2026-132166)](https://www.drupal.org/sa-core-2026-018)
- [Drupal Remote Code Execution Vulnerability (CVE-2026-132165) Advisory - NSFOCUS](https://nsfocusglobal.com/drupal-remote-code-execution-vulnerability-cve-2026-132165-advisory/)
- [Securing the installer (install.php) - Drupal documentation](https://www.drupal.org/docs/administering-a-drupal-site/security-in-drupal/securing-the-installer-installphp)
- [Drupal 11.4.13 release](https://www.drupal.org/project/drupal/releases/11.4.13)
- [Drupal patches critical RCE flaw, warns exploits may surface quickly - BleepingComputer](https://www.bleepingcomputer.com/news/security/drupal-patches-critical-rce-flaw-warns-exploits-may-surface-quickly/)
- [Drupal Patches Critical Installer Flaw - The Hacker News](https://thehackernews.com/2026/11/drupal-patches-critical-installer-flaw.html)
- [Drupal Fixes Critical Installer Flaw and Gadget Chain - The Drop Times](https://www.thedroptimes.com/node/74161)
- [Drupal Remote Code Execution CVE-2026-132165 - SecurityOnline](https://securityonline.info/drupal-remote-code-execution-cve-2026-132165/)
- [Drupal Steward](https://www.drupal.org/steward)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-6970
