CVE Professor
/
All CVEs
CVE-2026-132165

CVE-2026-132165 — Drupal — CWE-306

CRITICAL CVSS 9.8 ⚡ EPSS 11.1% 🚨 CISA KEV NVD+KEV

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

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality High C:H
Integrity High I:H
Availability High A:H
EPSS — Exploit Prediction Scoring System
11.1%
30-day probability
In the 97. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

🎯 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)
  • ⚡ Attack Chain

    1. Discovery & Reconnaissance

  • Fingerprinting: The attacker identifies Drupal sites by checking for /core/misc/drupal.js, /core/misc/drupal.css, or the X-Generator: Drupal header.
  • Version Detection: The attacker checks the meta generator tag in the HTML source or probes for version-specific files.
  • Installer Check: The attacker verifies the existence of /core/install.php or /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.php is writable, or if certain database tables are missing or corrupted.
  • 2. Exploitation

  • 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:
  • * 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)
  • Illustrative PoC (curl):
  • # 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"
  • Critical Step: If the installer successfully proceeds, it will:
  • 1. Connect to the database. 2. Drop existing tables or update schemas. 3. Create a new users table entry for admin with the password AttackerPass123!. 4. Update settings.php if necessary.

    3. Post-Exploitation

  • Login: The attacker logs in to /user/login with admin / AttackerPass123!.
  • RCE via Module Upload:
  • 1. Navigate to /admin/modules/install. 2. Upload a malicious .tar.gz module containing a PHP webshell or backdoor. 3. Enable the module.
  • Alternative RCE: Use the "Features" or "Configuration Management" modules to inject PHP code into theme files or custom modules.
  • Data Exfiltration: Access /admin/config/system/info to view database credentials, then exfiltrate the entire database.
  • Persistence: Create a new admin account with a different password, or add a malicious hook to a core module to ensure persistence even if the attacker's account is deleted.
  • 🌍 Real World Impact

  • Confidentiality (High): Full access to the database, including user credentials, personal data, and sensitive business information. Access to settings.php reveals database credentials, which may grant access to other applications using the same DB.
  • Integrity (High): The attacker can modify any content, configuration, or code. They can deface the site, inject malware, or alter business logic.
  • Availability (High): The attacker can delete the database, corrupt files, or disable the site entirely. The re-installation process itself may cause downtime.
  • Practical Consequences:

  • Data Breach: Exposure of customer PII, financial data, or intellectual property.

  • Site Takeover: Complete control of the website, allowing for phishing, malware distribution, or further attacks on internal networks.

  • Reputational Damage: Loss of trust from users and customers.

  • Financial Loss: Costs associated with incident response, legal liabilities, and potential fines (e.g., GDPR).
  • 🛡️ Remediation & Mitigation

    1. Patching (Immediate)

  • Upgrade: Apply the latest security release of Drupal Core that addresses CVE-2026-132165. Check the Drupal security advisories page for the specific version.
  • Verify: After patching, verify that install.php is no longer accessible or that it correctly refuses to run on an installed site.
  • 2. Workarounds (If Patching is Delayed)

  • Restrict Access to install.php:
  • * Web Server Configuration (Apache):
    <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.

  • File Permissions:

  • * 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).
  • WAF Rules:

  • * Block requests to /core/install.php or /install.php from unauthenticated users.
    * Monitor for POST requests to the installer endpoint.

    3. Detection

  • Web Server Logs:
  • * Look for POST requests to /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.

  • File Integrity Monitoring (FIM):

  • * 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.
  • Database Monitoring:

  • * Look for unexpected DROP TABLE or CREATE TABLE statements.
    * Monitor for new admin accounts created in the users table.
  • IoCs:

  • * New admin accounts with generic passwords.
    * Unexpected modules enabled.
    * Changes to settings.php (e.g., new database credentials, modified trusted_host_patterns).

    ⚠️ Urgency

  • CVSS Score: 9.0 (Critical)
  • CISA KEV: YES — Actively exploited in the wild.
  • Exploit Complexity: Low (Unauthenticated, no user interaction required).
  • Patching Priority: IMMEDIATE (P0)
Recommendation: 1. Patch immediately if possible. 2. If patching is not immediately feasible, restrict access to 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]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="Drupal"
PoC & Exploit Intelligence (GitHub)
abraxas/drupal-install-takeover ★ 9 Python 2026-11-25
CVE-2026-132165 - Drupal - Critical: 18/25 - Remote - Site takeover - installer resume replaces the admin account. No password. A finished site whose installer
lxdwnpiper/CVE-2026-132165-Drupal ★ 2 Python 2026-11-26
Drupal CVE-2026-132165 POC RCE
CVE-2026-132165
googlesky/CVE-2026-132165 Python 2026-11-26
Drupal core SA-CORE-2026-017 (CVE-2026-132165), Highly critical and exploited in the wild: an attacker can re-run install.php on an installed site for takeover
Detection-only exposure check for a single Drupal site against CVE-2026-132165 (unauthenticated core installer takeover). GET-only, no exploit.
CVSS Score
9.8 / 10 · CVSS CRITICAL
Weakness Types (CWE)
CWE-306
Affected Products (1)
drupal
References & Advisories (3)
Related CVEs
0.0
CVE-2026-142163
Improper Restriction of Excessive Authentication Attempts vulnerability in Drupal E-mail OTP Login allows Brut
0.0
CVE-2026-142395
Deserialization of Untrusted Data vulnerability in Drupal Mail Safety allows Object Injection. This issue affe
0.0
CVE-2026-142396
Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting") vulnerability in Drupal M
0.0
CVE-2026-142397
Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting") vulnerability in Drupal M
9.8
CVE-2026-121827
ZohoCorp ManageEngine Applications Manager versions 182800 and below were affected by an remote command execut
8.8
CVE-2026-77417
Local CI is a ground-up rewrite of the GitHub Actions orchestration layer that runs entirely on a personal mac
8.8
CVE-2026-105102
An authentication bypass vulnerability in the Boa web interface of BDCOM routers allows unauthenticated attack