Locking Down Drupal core/install.php After CVE-2026-132165: Web Server Rules and Log Checks
Drupal core ships an installer at core/install.php. It is only needed for the first setup, but it stays on disk, and Drupal's default .htaccess rules do not block it. CVE-2026-132165 (SA-CORE-2026-017) is a critical flaw
Drupal core ships an installer at core/install.php. It is only needed for the first setup, but it stays on disk, and Drupal's default .htaccess rules do not block it. CVE-2026-132165 (SA-CORE-2026-017) is a critical flaw in that installer: under certain conditions an anonymous request can start a reinstall, which can lead to site takeover or code execution. Fixes shipped on 18 November 2026, exploitation on live sites was reported from 19 November, and CISA added it to the KEV catalog on 24 November.
Fixed versions
- 11.4.x: 11.4.13
- 11.3.x: 11.3.22
- 10.6.x: 10.6.22
- 11.0 to 11.2, 10.5 and older, 8, 9: end of life, no fix. Block the installer and plan an upgrade.
- Drupal 7: only through commercial long-term support vendors. Block the installer regardless.
The same releases also fix CVE-2026-132166 (SA-CORE-2026-018), which is not directly exploitable alone but can help turn a separate deserialization bug into code execution.
Hardening steps
- Deny web access to
/core/install.phpat the web server level (Apache or nginx). - Request the URL and confirm you get a 403.
- Update core, then run database updates and clear caches.
- Make
settings.phpandsites/defaultnon-writable by the web server user. On its own this does not fully protect a vulnerable site, so do it in addition to the block and the update.
Blocking the installer does not affect a running site.
What to look for afterwards
- POST requests to
install.phpin access logs after go-live - New admin accounts
- Modules nobody remembers installing
- Unexpected PHP files, and changes to
settings.php
Updating closes the route in but does not tell you whether it was used before the fix. Remember staging copies and old campaign sites too.
More detail: Drupal installer flaw, affected versions and FAQs
Written by the team at Affix Center, an IT services company in Lower Parel, Mumbai.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.