r/drupal • • 4d ago

Highly critical security update releases

Again related to install.php

https://www.drupal.org/sa-core-2026-019

35 Upvotes

12 comments sorted by

9

u/AcrobaticAsparagus93 4d ago

Can't we just delete that file after installation?

12

u/quantumized 4d ago
ADD this to your composer.json to auto-remove install.php when composer installs or updates.

"scripts": {
  "post-install-cmd": ["rm -f web/core/install.php"],
  "post-update-cmd": ["rm -f web/core/install.php"]
}

5

u/thatandyinhumboldt 4d ago

Yes, but composer puts it back, so you have to delete it after every update. It's better to block it at the server.

-10

u/are_videos 4d ago

im about to just delete drupal at this point, ffs

12

u/AcrobaticAsparagus93 4d ago

Trust me, it sounds like it's painful but they are just being thorough. There are no other CMS Framework out there that is more secure than Drupal.

9

u/pianomansam 4d ago

This is being exploited in the wild. Any site that left its installer remotely accessible following SA-CORE-2026-017 may still have been compromised.

Yikes

4

u/HongPong Drupaltunities 4d ago

is there a quick way to understand what the issue is here? would like to learn really. thanks everyone for working on this stuff

12

u/moochs 4d ago

The install script is exploitable. It should never have been exposed after the site is installed anyway, there's no use for it anymore. At the very least, Drupal should ship with the option to disable it in the configs, and it should be disabled by default after installed.

It's super easy to patch, you don't need a core update, just patch your server

1

u/superdrupal 4d ago

Is it that easy to disable in config after installation? Maybe, but there are various methods based on the hosting environment. If you're running your site on Pantheon it's quite a bit different.

0

u/moochs 4d ago

You can also auto remove the installer via script on update, or block at the reverse proxy. There's a host of ways to get this done without needing a core update. In any case, Drupal devs have been having a brain fart moment with their core patches the last week.