>samit_hota
Back to advisories

Security Advisory · SH-2026-268

CRITICALCVE-2026-136716CVSS 9.8OPEN

Critical Drupal Core Flaw Allows Unauthenticated Site Takeover via Exposed Installer

Affected: Drupal Core

Samit Hota·
#kev#drupal

A critical flaw in Drupal Core’s installation state handling leaves web applications vulnerable to complete remote site takeover if an installation sequence is interrupted or left unfinished. Identified as CVE-2026-136716, this Drupal Core vulnerability stems from an improper check for unusual or exceptional conditions (CWE-754) during environment initialization.

When a site sits in a half-configured state—whether due to a failed automated pipeline step, an aborted manual setup, or database connectivity drops—the application fails to properly restrict access to the core setup routing.

The Mechanics of Installation Hijacking

The root cause resides in how Drupal evaluates site state within its core bootstrapping routines. Under normal conditions, once settings.php contains active database credentials and a site hash key, the core installer (core/install.php) locks down further configuration attempts.

Under CVE-2026-136716, exceptional runtime conditions break this guardrail. If an installation process fails mid-execution or environment variables leave the site in an ambiguous state, an unauthenticated remote attacker can access install.php directly. The CVSS 3.1 vector of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H reflects the severe nature of the flaw: low attack complexity, zero privileges required, and no user interaction needed to execute a full compromise.

Once an attacker reaches the unlocked installation endpoint, they can supply their own database configuration or force a database reset. This allows them to create an administrative account, write malicious configurations, and execute arbitrary code on the underlying web server via Drupal’s module ecosystem.

Assessing Real-World Exposure

While the maximum CVSS score of 9.8 highlights the absolute severity of an unauthenticated full site takeover, the actual threat surface depends heavily on deployment habits. The measured EPSS score sits at 1.2% (68.4th percentile), reflecting that exploitation requires a target to be in an active state of incomplete setup or broken maintenance rather than standard operational runtime.

The primary targets for this vulnerability class include:

  • Staging and ephemeral environments: Staging servers spawned via automated CI/CD pipelines that crash prior to completing site setup scripts.
  • Failed migrations: Production or development sites undergoing database restorations or major updates where the database connection temporarily drops, causing Drupal to report an uninstalled state.
  • Exposed web roots: Infrastructure where access to core/install.php is not explicitly restricted at the web server level (e.g., Nginx or Apache routing).

For organizations running fully provisioned, stable Drupal instances with populated settings.php files, the vulnerability cannot be triggered unless the site drops back into an incomplete state. However, automated mass scanners routinely probe for exposed install.php endpoints across known IP ranges to catch newly staged or broken deployments.

Remediation and Prevention Strategy

To mitigate exposure to CVE-2026-136716, security teams and site administrators must secure both the application code and web server routing rules.

  • Apply Core Updates: Update Drupal Core to the latest security release issued by the vendor. This ensures proper state checking even when database connections fail or installation flags are inconsistent.
  • Block Access to install.php: Restrict public access to core/install.php at the reverse proxy or web server layer. In Nginx, ensure requests to install.php are denied or restricted strictly to internal maintenance IPs:
    location ~* ^/core/install\.php {
        allow 192.168.1.0/24; # Restrict to trusted administrative range
        deny all;
    }
  • Verify File Permissions and settings.php: Ensure that sites/default/settings.php is read-only (chmod 444 or chmod 400) once installation is complete, preventing the web server process from overwriting configuration values during unexpected state shifts.
  • Audit Active Deployments: Scan internal and external perimeter assets for lingering installation endpoints or failed automated build artifacts to ensure no half-configured instances remain exposed to the public internet. Federal agencies subject to BOD 26-04 guidance should ensure compliance updates are applied ahead of mandatory enforcement deadlines.

Found something similar in your stack?

Let's find out before it becomes an incident.

Book an advisory call