SA-CORE-2026-017: Critical severity Drupal Drupal vulnerability
Drupal core ships with an install.php file for installing Drupal core. Under specific conditions, an attacker can use the installer to attempt to reinstall Drupal. This can lead to a site takeover or remote code execution. Some exploit paths are mitigated if the web server cannot write to or change permissions on settings.php. In addition to upgrading, the Drupal Security Team recommends securing the Drupal installer after installation. Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-GMRPK0BU. Drupal Steward protection: This issue is being protected by Drupal Steward. Sites that use Drupal Steward are already protected from known attack vectors, but sites should upgrade in the near future in case additional attack vectors are discovered.
Credit
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 11.4.13Fixed in 11.3.22Fixed in 10.6.22 - Configuration
Restrict the web server from writing to settings.php or changing its permissions.
Drupal settings.php file permissions = The web server cannot write to the file or change its permissions
Event History
Frequently Asked Questions
What conditions make exploitation more likely?
The issue is exploitable only under specific conditions that allow an attacker to use install.php to attempt a Drupal reinstallation. Exploit paths are mitigated when the web server cannot write to or change permissions on settings.php.
What should administrators do besides upgrading?
Secure the Drupal installer after installation, as recommended by the Drupal Security Team. If upgrading cannot happen immediately, review and restrict the web server's ability to write to or alter permissions on settings.php, since this mitigates some exploit paths.
Does Drupal Steward fully address this issue?
No. Drupal Steward protects against some known attack vectors, but it does not cover all possible exploits. Sites using it should still upgrade soon because additional attack vectors may be discovered.