Back to Intelligence

CVE-2026-136716: Drupal Core Critical Flaw Actively Exploited — Detection and Remediation Guide

SA
Security Arsenal Team
November 27, 2026
11 min read

Drupal's security team has issued an urgent advisory for CVE-2026-136716, a highly critical vulnerability in Drupal Core that attackers are already exploiting in the wild to take over vulnerable websites. The flaw stems from improper handling of unusual or incomplete installation states — a class of weakness that is particularly dangerous because it can expose sensitive installation logic and configuration pathways to unauthenticated remote attackers on sites that were never fully, or cleanly, installed.

If you operate Drupal sites — and many government, higher-education, healthcare, and enterprise organizations do — treat this as a drop-everything patch event. Drupal vulnerabilities with active exploitation historically move from disclosure to mass scanning and automated exploitation within hours. Once attackers gain a foothold on a CMS like Drupal, the typical endgame is webshell deployment, credential theft from settings.php and the database, SEO spam/malvertising injection, or pivot into internal infrastructure if the web server is not properly segmented.

What Is at Risk

Drupal sites whose installation is in an unusual or incomplete state — for example, interrupted installer runs, partially provisioned instances, staging/copies of production sites, or sites where install.php and installation profiles remain reachable — are the primary exposure surface. Successful exploitation can allow an attacker to take over the site entirely: execute arbitrary code in the web server context, read or rewrite the Drupal configuration, access the backend database, and modify or inject content served to your visitors.

A compromised CMS is rarely the end of the attack — it is the beginning. Web servers frequently hold database credentials, API keys, and network trust that attackers monetize quickly.

Technical Analysis

Affected Component

  • Product: Drupal Core (the vulnerability resides in core installation-state handling logic)
  • Exposure condition: Sites in unusual or incomplete installation states, including instances where installation routes (such as the core installer) remain reachable or where installation artifacts were left behind after provisioning
  • Impact: Full website takeover — remote code execution in the web server context, configuration disclosure, and content/database compromise
  • Severity: Rated highly critical by Drupal's security team; treat as emergency-change priority

Defenders should confirm the exact affected branches and fixed releases against the official Drupal security advisory (published via drupal.org/security and the Drupal Security mailing list) before declaring remediation complete — do not assume your major version is out of scope.

How the Vulnerability Works (Defender's Perspective)

Installation-state flaws in CMS platforms are dangerous for a consistent reason: the installer is written with elevated trust. It expects to run in a controlled, one-time window, writes configuration files, and often assumes the operator is the legitimate site owner. When a site lingers in — or can be forced back into — an incomplete installation state, an unauthenticated attacker can interact with code paths that were never meant to be exposed post-deployment.

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

  1. Discovery: Attackers scan for Drupal fingerprints (headers, /CHANGELOG.txt, theme/module paths, cookie patterns) and probe for reachable installer routes such as /core/install.php or /install.php.
  2. Triggering the flaw: Malcrafted requests interact with installation-state handling to abuse the improper logic — re-invoking or hijacking installer workflows on a live or partially-installed site.
  3. Takeover: The attacker leverages the abused state to write or overwrite configuration, inject a malicious module/theme payload, or achieve direct code execution.
  4. Persistence: A webshell or PHP payload is dropped into a writable directory — commonly under the public files path (sites/default/files/) — giving the attacker durable access even after the original flaw is patched.

Critical defensive note: patching removes the vulnerability, but it does not remove implants. Any site that was reachable and unpatched during the exploitation window must be hunted, not just updated.

Exploitation Status

  • Status: Confirmed active exploitation in the wild, per Drupal's warning.
  • Expected adversary behavior: Automated mass scanning for Drupal fingerprints and exposed installer routes, followed by webshell deployment and resale of access to downstream actors.
  • Action: Patch immediately, hunt for pre-patch compromise, and monitor CISA's Known Exploited Vulnerabilities (KEV) catalog for inclusion, which would impose remediation deadlines for U.S. federal agencies and is a strong priority signal for everyone else.

Detection & Response

SIGMA Rules

The rules below target the observable behaviors of this campaign: web server processes executing commands or scripting engines (webshell behavior) and creation of executable PHP files in Drupal's public files directory. Tune the Image paths to your actual web stack (Apache, Nginx + PHP-FPM, IIS) before deploying.

YAML
---
title: Drupal Web Server Process Spawning Command Interpreter
tid: 2e9c1f04-7a3b-4d58-b6a1-cve2026136716a
status: experimental
description: Detects web server or PHP worker processes spawning command interpreters or scripting engines, consistent with webshell execution following CMS compromise such as CVE-2026-136716 Drupal Core exploitation.
references:
  - https://securityaffairs.com/204085/security/drupal-warns-of-new-critical-flaw-exploited-in-the-wild.html
  - https://attack.mitre.org/techniques/T1505/003/
author: Security Arsenal
date: 2026/01/15
tags:
  - attack.persistence
  - attack.t1505.003
logsource:
  category: process_creation
  product: linux
detection:
  selection_parent:
    ParentImage|endswith:
      - '/apache2'
      - '/httpd'
      - '/nginx'
      - '/php-fpm'
      - '/php'
  selection_child:
    Image|endswith:
      - '/bash'
      - '/sh'
      - '/dash'
      - '/zsh'
      - '/python'
      - '/python3'
      - '/perl'
      - '/curl'
      - '/wget'
      - '/nc'
      - '/ncat'
  condition: selection_parent and selection_child
falsepositives:
  - Legitimate Drupal cron or drush jobs invoked by the web stack
  - Health-check or monitoring scripts executed under the web user
level: high
---
title: Webshell File Creation in Drupal Public Files Directory
id: 5b3d8a71-2c4e-4f09-9d77-cve2026136716b
status: experimental
description: Detects creation of PHP or script files inside Drupal's public files directory (sites/default/files), a common webshell persistence location after CMS takeover via flaws such as CVE-2026-136716.
references:
  - https://securityaffairs.com/204085/security/drupal-warns-of-new-critical-flaw-exploited-in-the-wild.html
  - https://attack.mitre.org/techniques/T1505/003/
author: Security Arsenal
date: 2026/01/15
tags:
  - attack.persistence
  - attack.t1505.003
logsource:
  category: file_event
  product: linux
detection:
  selection:
    TargetFilename|contains:
      - '/sites/default/files/'
      - '/sites/default/files/styles/'
      - '/modules/'
      - '/themes/'
    TargetFilename|endswith:
      - '.php'
      - '.phtml'
      - '.phar'
      - '.inc'
  condition: selection
falsepositives:
  - Developers legitimately deploying module or theme files during maintenance windows
level: critical
---
title: Suspicious Access to Drupal Installer Routes
id: 8f1a2c63-6d9b-4e18-a240-cve2026136716c
status: experimental
description: Detects HTTP requests to Drupal installer endpoints (install.php, core/install.php) which should never be reachable on a fully provisioned production site; access may indicate reconnaissance or exploitation attempts against CVE-2026-136716 installation-state handling.
references:
  - https://securityaffairs.com/204085/security/drupal-warns-of-new-critical-flaw-exploited-in-the-wild.html
  - https://attack.mitre.org/techniques/T1190/
author: Security Arsenal
date: 2026/01/15
tags:
  - attack.initial_access
  - attack.t1190
logsource:
  category: webserver
detection:
  selection:
    uri_path|contains:
      - '/install.php'
      - '/core/install.php'
      - '/core/install'
  condition: selection
falsepositives:
  - Legitimate initial site installation or rebuild activity (time-bound and attributable)
level: high

KQL (Microsoft Sentinel / Defender)

This query hunts web access logs (ingested via CEF/Syslog from Apache, Nginx, or a WAF) for requests to Drupal installer routes combined with POST methods or error/success patterns indicative of exploitation attempts. Run it over the full period your sites were unpatched — not just the last 24 hours.

KQL — Microsoft Sentinel / Defender
let InstallerRoutes = dynamic(["/install.php", "/core/install.php", "/core/install"]);
union withsource=tableName (CommonSecurityLog | where isnotempty(RequestURL)), (Syslog | where isnotempty(SyslogMessage))
| extend Url = coalesce(column_ifexists("RequestURL", ""), column_ifexists("SyslogMessage", ""))
| where Url has_any (InstallerRoutes)
| extend Method = column_ifexists("RequestMethod", "")
| extend SrcIP = column_ifexists("SourceIP", column_ifexists("HostIP", ""))
| summarize AttemptCount = count(), Methods = make_set(Method), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated)
    by SrcIP, Url, tableName
| order by AttemptCount desc

If you have endpoint telemetry on the web servers, layer this process-based query to catch post-exploitation webshell execution:

KQL — Microsoft Sentinel / Defender
DeviceProcessEvents
| where InitiatingProcessFileName in~ ("apache2", "httpd", "nginx", "php-fpm", "php")
| where FileName in~ ("bash", "sh", "dash", "python", "python3", "perl", "curl", "wget", "nc", "ncat")
| project TimeGenerated, DeviceName, InitiatingProcessFileName, FileName, ProcessCommandLine, AccountName
| order by TimeGenerated desc

Velociraptor VQL

This artifact hunts for recently created PHP/script files in Drupal webroot directories (candidate webshells) and suspicious child processes of the web stack. Deploy it across your Drupal fleet as a hunt, and review hash values of any hits against known-good deployments.

VQL — Velociraptor
-- Hunt for potential webshells in Drupal webroots and suspicious web-server child processes
SELECT * FROM foreach(row={
    SELECT FullPath, Mtime, Size, Hash
    FROM glob(glob="/**/sites/default/files/**/*.php", accessor="file")
    WHERE Mtime > now() - 14*24*60*60
}, query={
    SELECT "webshell_candidate" AS FindingType, FullPath, Mtime, Size, Hash FROM _value
    UNION SELECT "suspicious_child_process" AS FindingType, Pid AS FullPath, Name AS Mtime,
           CommandLine AS Size, Exe AS Hash
    FROM pslist()
    WHERE ParentPid in (SELECT Pid FROM pslist() WHERE Name =~ "apache2|httpd|nginx|php-fpm")
      AND Name =~ "bash|sh|dash|python|perl|curl|wget|nc"
})

Remediation and Verification Script

Use this Bash script on Linux web servers to (a) inventory Drupal installations and report core versions, (b) check whether installer routes are reachable, and (c) sweep for recently modified PHP files in the files directory. Run it before patching (to capture evidence) and again after (to verify closure). Review output manually — this is a triage aid, not an auto-remediator.

Bash / Shell
#!/usr/bin/env bash
# CVE-2026-136716 triage helper — run as root or with sudo
# 1) Locate Drupal installs and report core versions
for root in /var/www /srv/www /home/*/public_html; do
  find "$root" -maxdepth 4 -name "CHANGELOG.txt" -path "*core*" 2>/dev/null
done | while read -r f; do
  echo "[+] Drupal core detected near: $(dirname "$f")"
done

# If drush is available per-site, print the precise core version:
#   drush --root=/var/www/html status --fields=drupal-version

# 2) Verify installer routes are NOT publicly reachable (expect 403/404)
for host in localhost your-site.example.com; do
  for path in /install.php /core/install.php; do
    code=$(curl -sk -o /dev/null -w "%{http_code}" "https://${host}${path}")
    echo "[i] https://${host}${path} -> HTTP ${code} (200 is a red flag)"
  done
done

# 3) Sweep for PHP/script files modified in the last 14 days inside files dirs
find /var/www -path "*/sites/default/files/*" \( -name "*.php" -o -name "*.phtml" -o -name "*.phar" \) \
  -mtime -14 -printf "%TY-%Tm-%Td %TH:%TM  %p\n" 2>/dev/null | sort

# 4) Audit access logs for installer-route hits during the exposure window
grep -E "(/core/install\.php|/install\.php)" /var/log/apache2/access.log* \
  /var/log/nginx/access.log* 2>/dev/null | tail -n 200

# 5) Harden: lock down settings.php after verifying integrity
#   chmod 0444 /var/www/html/sites/default/settings.php
# Block installer routes at the web server (Nginx example):
#   location ~ ^/(core/)?install\.php { deny all; return 404; }

Remediation

  1. Patch immediately. Update Drupal Core to the fixed release listed in the official Drupal security advisory for CVE-2026-136716 (drupal.org/security). Use Composer (composer update drupal/core-* --with-dependencies) or your standard release pipeline, and push through an emergency change window rather than waiting for the next maintenance cycle.
  2. Assume pre-patch exposure. Because exploitation was confirmed in the wild before many organizations patched, hunt every site that was reachable during the exposure window: review access logs for installer-route requests, scan webroots for unauthorized PHP files, and inspect child processes of the web stack. Restore from known-good backups if compromise is confirmed.
  3. Eliminate the exposure condition. Ensure no production site remains in an incomplete or re-enterable installation state: remove or block access to install.php / core/install.php at the web server layer, remove leftover installation profiles and staging copies of production sites, and verify sites/default/settings.php is complete and read-only to the web user.
  4. Deny execution in upload directories. Configure the web server so PHP cannot execute under sites/default/files/ — this blunts the most common webshell persistence path even if an attacker bypasses other controls.
  5. Rotate credentials on suspected hosts. Database credentials in settings.php, API keys, and any secrets stored in the Drupal configuration should be rotated for any site with evidence of exploitation attempts.
  6. Monitor CISA KEV. If CVE-2026-136716 is added to the Known Exploited Vulnerabilities catalog, federal civilian agencies face a binding remediation deadline, and the due date is a practical prioritization benchmark for private organizations as well.
  7. Segment and egress-restrict web servers. Drupal servers should not be able to initiate arbitrary outbound connections or reach internal management interfaces. Egress filtering converts a full site takeover from an enterprise incident into a contained web-tier incident.

Closing

CVE-2026-136716 is the latest reminder that CMS installation and provisioning hygiene is attack surface. Sites that are "mostly configured" or that ship with reachable installer routes are exactly what mass-exploitation crews scan for in the hours after a critical advisory drops. Patch now, hunt for what may have landed before you patched, and permanently close the installation-state condition so this class of flaw cannot be reached again.

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.