Drupal: critical anonymous RCE via reinstall of Drupal core (CVE-2026-132165)
Severity: critical · Patch status: patched · Since 2026-11-18 · CVE-2026-132165, CVE-2026-132166
Drupal's Security Team published SA-CORE-2026-017 on 2026-11-18: a critical flaw in Drupal core (CVE-2026-132165) that an anonymous attacker can reach through the installer. Under specific conditions, install.php can be used to try to reinstall Drupal, which can lead to site takeover or code execution. Drupal says some exploit paths are blocked when the web server cannot write to or change permissions on settings.php. Anthropic's OSS Scanner found the bug. The same release line fixes SA-CORE-2026-018 (CVE-2026-132166), a moderately critical gadget chain that is not directly exploitable and only matters if a separate unsafe unserialize() flaw exists. Fixed in 10.6.22, 11.3.22 and 11.4.13. Drupal 11.2 and older and 10.5 and older are end-of-life with no fix, so those sites should block the installer and plan a move to a supported branch. Drupal warned on 2026-11-16 that exploits could appear within hours or days. Drupal Steward WAF customers are covered for the known vectors. We found no source reporting exploitation, and CVE-2026-132165 is not in the CISA KEV catalogue (version 2026.11.18).
What to do
- Upgrade Drupal core to 10.6.22, 11.3.22 or 11.4.13. These releases also contain the SA-CORE-2026-018 fix.
- If you cannot upgrade now, block /core/install.php in the web server configuration or the web-root .htaccess, and follow Drupal's guide to securing the installer.
- Make settings.php unwritable for the web server user and stop the web server changing its permissions. This blocks some exploit paths only; it does not replace the upgrade.
- On Drupal 11.2 or older, or 10.5 or older (end-of-life, no fix), block the installer now and schedule a move to a supported branch.
- Review whether any code deserializes untrusted input, since that is the condition CVE-2026-132166 needs.
- Search web-server logs for requests reaching install.php on live sites, especially from unknown clients, and treat any hit as an incident to investigate.
Fixed versions
Sources
All live incidents on Threat Watch