Drupal's installer flaw needed a second fix, and it's being exploited. Update and block install.php
If your website runs on Drupal 10 or 11, update it today and block the installer. Drupal released a second fix for a flaw in its installer on Wednesday, because the first fix didn't cover every site, and the Drupal Security Team says it's being exploited.
Updating isn't the whole job this time. There's a setting to add and some checks to run.
What happened
On 18 November Drupal published SA-CORE-2026-017, rated "Highly critical". It fixed problems in install.php, the script that sets up a new Drupal site. Under certain conditions, a stranger could use it to "attempt to reinstall Drupal" on a live site. The advisory was later updated to say it had been exploited on live sites from 19 November. CISA added it to its list of exploited flaws on 24 November.
Then on 25 November came SA-CORE-2026-019. It says some sites "in unusual or incomplete install states" were still open to site takeover after the first fix, "including production sites". No login is needed, and the advisory says plainly: "This is being exploited in the wild."
The awkward part is that you can't tell by looking. The advisory says it "is not apparent in the user interface" whether a site is in the vulnerable state.
Does it affect you?
The affected versions are everything before 10.6.23, 11.3.23 and 11.4.14. The fixed versions are:
- Drupal 11.4.x: 11.4.14
- Drupal 11.3.x: 11.3.23
- Drupal 10.6.x: 10.6.23
If you're on 11.2.x or older, or 10.5.x or older, there's no fix. Those branches are end of life, so you'll need to move up to a supported one.
The advisory also says: "If you have already secured the installer, you are not vulnerable." Lots of sites never have, because nobody thinks about install.php once the site is built.
If you're not sure which version you're on, it's under Reports, then Status report, in the Drupal admin. Or run drush status on the server.
What to do this week
1. Update Drupal, then run update.php. The advisory is clear that the code update alone isn't enough: "An update hook must run to fix existing production sites in this state." Run drush updatedb or visit update.php after updating.
2. Block the installer in your web server config. Drupal's page on securing the installer gives the rules. For Apache, in the virtual host rather than .htaccess:
<Location "/core/install.php">
Require all denied
</Location>For nginx:
location ^~ /core/install.php {
return 404;
}Test with apachectl configtest or nginx -t before you reload. Blocking the installer doesn't stop updates, because those go through update.php.
3. Check it worked. From your own machine:
curl -I https://yoursite.co.uk/core/install.php
curl -IL https://yoursite.co.uk/install.php
curl -I https://yoursite.co.uk/core/install.php/fooAll three should come back 403 or 404.
4. Look for signs someone got in first. Drupal has published a page on checking whether your site was compromised through the installer. The quickest checks are:
drush state:get install_task
drush state:get install_session_token
drush user:information --uid=1The first should say done. If the second has a value, the page calls that a strong sign of compromise. On the third, look for an email address you don't recognise. Also check Administrator accounts under People for anyone you don't know, and search your access logs from 18 November onwards for odd requests to the installer.
5. If something looks wrong, treat the site as compromised. Drupal's guidance is that updating and resetting the main admin account don't clean a site that's already been taken. You'd be looking at a restore from a backup taken before 18 November, plus new passwords and keys. If you're not sure how good your backups are, my post on testing a restore is a ten-minute start.
If someone else built your site
Plenty of small businesses have a Drupal site an agency built years ago and nobody has logged into the server since. If that's you, forward this to whoever looks after it and ask two questions: are we on 10.6.23, 11.3.23 or 11.4.14, and is install.php blocked?
If there's nobody to ask, or the site is on an old branch with custom modules that make the upgrade nerve-wracking, the team at Dev Partners look after existing software and can take it on. Their post on what to do if your software supplier went bust is worth a read if that's your situation.
The bigger point
Two fixes in a week for the same part of the code is a sign of how fast this is moving. As Dev Partners wrote last week, AI can now turn a security patch into an attack, and here the attacks started the day after the first fix.
Blocking install.php is a one-off job that protects you against this whole family of problems, whatever comes next. Do it once, write it down, and add it to the checklist for any new Drupal site.
And if any of those checks turns up something you don't like the look of, that's what my breach first response is for.
Liked that? Get the next one by email
When a security flaw lands that could affect your server, I'll email you what it means and what to do. Plus the odd opinion piece. Not often, no spam.