CVE-2026-136716
Patch Available.
This Vulnerability has been fixed in the Never-Ending Support (NES) version offered by HeroDevs.
Overview
Drupal is an open source content management system written in PHP. Organizations of all sizes use it to build and manage websites and web applications. Drupal core provides the base system, including install.php, the installer that sets up a new site and creates its first administrator account (user 1).
An Authorization Bypass vulnerability (CVE-2026-136716) has been identified in the Drupal core installer (install.php), which allows an anonymous visitor to resume the installation of a site whose installation was never recorded as finished and, depending on the step where it stopped, take over the site, including the user 1 administrator account. The Drupal Security Team published the issue as SA-CORE-2026-019, a follow-up to SA-CORE-2026-017, and reports that it is being exploited in the wild.
Per MITRE CWE-754: The product does not check or incorrectly checks for unusual or exceptional conditions that are not expected to occur frequently during day to day operation of the product.
This issue affects all versions of Drupal core before 10.6.23 (including Drupal 7, 8 and 9), Drupal core 11 before 11.3.23 and Drupal core 11.4 before 11.4.14.
Details
Module Info
- Product: Drupal
- Affected packages: drupal/core (Drupal 8 and later), drupal/drupal (Drupal 7)
- Affected versions: <10.6.23, >=11.0.0 <11.3.23, >=11.4.0 <11.4.14
- GitHub repository: https://git.drupalcode.org/project/drupal
- Published packages: https://packagist.org/packages/drupal/core, https://packagist.org/packages/drupal/drupal
- Package manager: Composer
- Fixed in:
- Drupal 10.6.23, 11.3.23 and 11.4.14
- NES for Drupal 7
Vulnerability Info
CISA-ADP rates this vulnerability Critical with a CVSS 3.1 base score of 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H). The Drupal Security Team rates it Highly critical (21/25, AC:Basic/A:None/CI:All/II:All/E:Exploit/TD:Uncommon). The advisory states that the issue is being exploited in the wild, and CISA added it to its Known Exploited Vulnerabilities catalog on November 27, 2026.
The Drupal installer records the last step it completed in an install_task value. When install.php is requested, the installer reads that value and refuses to run only when it is done. Any other value tells the installer to resume from the recorded step for whoever made the request. In Drupal 7 this check is in install_verify_completed_task() in includes/install.core.inc, and it is unchanged from Drupal 7.0 through 7.103:
try {
if ($result = db_query("SELECT value FROM {variable} WHERE name = :name", array('name' => 'install_task'))) {
$task = unserialize($result->fetchField());
}
}
// Do not trigger an error if the database query fails, since the database
// might not be set up yet.
catch (Exception $e) {
}
if (isset($task)) {
if ($task == 'done') {
throw new Exception(install_already_done_error());
}
return $task;
}SA-CORE-2026-017 fixed several ways to abuse install.php on a running site, but sites in unusual or incomplete install states, including production sites, remained exposed. A site can reach production with install_task set to an earlier step when an installation stops partway, and the advisory notes that nothing in the user interface shows this state. On such a site, an anonymous visitor who can reach install.php may resume the installation and, depending on where it had stopped, replace the user 1 account. Sites that have secured the installer are not vulnerable. On Drupal 7, drush vget install_task shows the recorded value; anything other than done indicates the vulnerable state. The advisory warns that a site that was already compromised may no longer be in the vulnerable state, so a current value of done does not prove a site was never exposed.
Upstream fixed the issue in Drupal 10.6.23, 11.3.23 and 11.4.14. The installer now refuses an interactive request to resume an installation unless that installation is tied to an installer session token:
if ($task === 'done' || (!empty($task) && \Drupal::state()->get('install_time'))) {
throw new AlreadyInstalledException($container->get('string_translation'));
}
if ($install_state['interactive'] && !empty($task) && \Drupal::state()->get('install_session_token') === NULL) {
throw new AlreadyInstalledException($container->get('string_translation'));
}Because code changes alone do not repair a site that is already stuck, the release also adds a post-update function, run through update.php or drush updb, that marks the installation as finished:
function system_post_update_mark_installation_finished(): void {
$state = \Drupal::state();
if ($state->get('install_task') !== 'done') {
$state->set('install_task', 'done');
}
if (!$state->get('install_time')) {
$state->set('install_time', \Drupal::time()->getRequestTime());
}
}Mitigation
The Drupal project only fixes supported release lines. Drupal 7, 8 and 9, Drupal 10.5 and earlier, and Drupal 11.2 and earlier are End-of-Life and will not receive any public updates to address this issue. The upstream patch does not apply to Drupal 7, whose installer is built differently, but the Drupal 7 installer has the same weakness.
Until an update can be applied, block web access to install.php on every production site by following Drupal's guide to securing the installer. Because the issue is being exploited, sites that left install.php reachable should also check their logs for unauthorized access, especially unexpected changes to or by the user 1 account, confirm that the user 1 email address is one the site owner controls, and consider resetting the user 1 password.
Users of the affected components should apply one of the following mitigations:
- Upgrade to Drupal 10.6.23, 11.3.23, 11.4.14 or later, then run update.php or drush updb so the included database update repairs any site left in an incomplete installation state.
- Leverage a commercial support partner like HeroDevs (NES for Drupal 7) for post-EOL security support.
Credits
- Andrew Berry (deviantintegral): finder, remediation
- Dave Long (longwave): finder, remediation
- Tim Hestenes Lehnen (hestenet): finder
- James Sherwin (very_random_man): finder
- Cathy Theys (yesct): finder
- Alex Pott (alexpott): remediation
- catch: remediation
- Mohit Aghera (mohit_aghera): remediation
- Jess (xjm): remediation