How To

Drupal SA-CORE-2026-019 (CVE-2026-136716): Check and Patch

Two Drupal core advisories in eight days point at the same file, core/install.php, and attackers have used both. Drupal SA-CORE-2026-019 (CVE-2026-136716) landed on 25 November 2026 as a highly critical access bypass. It covers sites the previous fix left behind: SA-CORE-2026-017 (CVE-2026-132165) patched an installer flaw that could lead to site takeover or code execution. Sites left in an unusual or incomplete install state were still open to takeover after that fix, even in production.

Original content from computingforgeeks.com - post 196581

One Composer update closes both, but only if drush updb runs afterwards, and that database update also rewrites the values you need to tell whether someone got in first. So this guide follows the order Drupal’s own compromise-check page sets: find the version, block the installer on nginx and Apache, check for a takeover, and only then update the 11.4, 11.3 or 10.6 branch and lock down settings.php. All of it was run in November 2026 on Ubuntu 24.04 with Drupal 11.4.14, 11.3.23 and 10.6.23, and every block shows the server’s real response, not an assumed one.

The versions exposed to both advisories

Each advisory has its own affected range, and a site that took the SA-CORE-2026-017 update last week is still exposed to SA-CORE-2026-019. That catches the teams who patched fastest, because their dashboards went green a week ago and nobody has looked since. Read the second column for the earlier flaw and the third for the new one. The last column is the release that clears both on that branch.

BranchSA-CORE-2026-017 (CVE-2026-132165)SA-CORE-2026-019 (CVE-2026-136716)Update to
11.4.xbelow 11.4.13below 11.4.1411.4.14
11.3.xbelow 11.3.22below 11.3.2311.3.23
10.6.xbelow 10.6.22below 10.6.2310.6.23
11.2.x, 11.1.x, 11.0.xaffected, end of lifeaffected, end of lifemove to 11.3 or 11.4
10.5.x and older, Drupal 9 and 8affected, end of lifeaffected, end of lifemove to 10.6 or 11

Both are rated highly critical, 20 out of 25 for the earlier advisory and 21 out of 25 for the new one, and Drupal says both are exploited. The update note on SA-CORE-2026-017 reports attacks on live sites from 19 November 2026 at 19:00 UTC, barely a day after the release. CISA added CVE-2026-132165 to its Known Exploited Vulnerabilities catalog on 24 November with a 27 November due date. CVE-2026-136716 was not in the catalog as of its 25 November edition, so don’t wait for a KEV entry before treating it as urgent, because Drupal already reports it exploited in the wild.

These numbers were correct on 26 November 2026. Drupal has shipped two security releases in a week on this code, so check the SA-CORE-2026-019 advisory and the security page on the day you patch, and take a newer point release if one exists.

The installed core version, from Composer and Drush

The admin status report shows the version too, but you want the answer from the command line, where you will also patch. Composer reads it from the lock file, which is what was actually deployed, so it can’t be fooled by a stale page cache. Run it from the project root, the directory that holds composer.json, not from web/, or Composer will not find the project.

cd /var/www/drupal
composer show drupal/core | head -12

Drush confirms the same version from the bootstrapped site, along with the PHP build and whether it can reach the database. If you’re new to the tool, our guide to managing Drupal with Drush covers the basics.

vendor/bin/drush status --fields=drupal-version,php-version,db-driver,db-status,bootstrap,root,site

Our lab site sat on 11.4.13. That release fixed SA-CORE-2026-017, so a site on it passes every check written for the earlier advisory while still being exposed to the new one. The admin UI gives no hint of the difference, which is why a version check by hand is worth more this week than any green badge.

composer show and drush status reporting Drupal core 11.4.13 before the SA-CORE-2026-019 update

A quicker way to see what is pending is composer outdated, filtered to Drupal packages. It compares the lock file with the newest release your constraints allow.

composer outdated "drupal/*"

Each core package shows the installed release, a ! for an update you should take, and the target release.

Direct dependencies required in composer.json:
drupal/core-composer-scaffold 11.4.13 ! 11.4.14 A flexible Composer project ...
drupal/core-project-message   11.4.13 ! 11.4.14 Adds a message after Compose...
drupal/core-recipe-unpack     11.4.13 ! 11.4.14 A Composer project unpacker ...
drupal/core-recommended       11.4.13 ! 11.4.14 Core and its dependencies wi...
drupal/core                   11.4.13 ! 11.4.14 Drupal is an open source con...

An installed release below the fixed one for your branch in the table above means the site is still exposed. A version number tells you what is installed, though, not which advisories apply, and that is a job for the audit command below.

pm:security has been removed. Please use composer audit command.

Older runbooks still call drush pm:security to list insecure packages. Current Drush releases no longer ship it, and the run on our lab box stopped with exactly this message. A script that ignores the exit code would report nothing and look like a clean result, so check any cron job or CI step that still calls it. The replacement is Composer’s own advisory check, and --locked audits the lock file rather than whatever happens to sit in vendor/.

composer audit --locked

It found 18 advisories across 7 packages. The first was SA-CORE-2026-019 against drupal/core, and most of the rest were Symfony and Twig. Those matter because the core release does not bundle every dependency fix, so the update further down has to move them too.

composer audit listing CVE-2026-136716 SA-CORE-2026-019 against drupal/core 11.4.13 plus Symfony advisories

Put composer audit in your deploy pipeline and fail the build when it returns anything. It reads the same advisory feed Drupal publishes to, so the next core advisory shows up there the hour it lands.

An installer the web server refuses to serve

SA-CORE-2026-019 says it plainly: if you have already secured the installer, you are not vulnerable. That makes the block the first thing to do, ahead of the update, because it takes minutes and stops the attack while you check the rest. A production site never needs install.php after day one, and new sites can use drush site:install, which does not go through it. Before the block, our nginx lab served the installer to anyone who asked.

== /core/install.php
HTTP/1.1 200 OK

The Drupal guide to securing the installer gives a block for each web server. Our lab vhost listened on plain HTTP. On a real site, put the block in the server block or vhost that serves HTTPS, and in the port 80 one too if it serves the site rather than redirecting.

The nginx location block

Find the server block that serves the site with sudo nginx -T, then open that file. A block added to the wrong file does nothing, and nginx won’t warn you about it. On a site built from our Drupal on Ubuntu with Nginx guide, it lives under sites-available. In our lab nginx -T printed /etc/nginx/sites-enabled/drupal.conf, a symlink to the file below, so ls -l /etc/nginx/sites-enabled/ tells you which real file to edit.

sudo vim /etc/nginx/sites-available/drupal.conf

Add this inside the server { } block, ahead of the PHP location. The ^~ prefix match matters: an exact match with = misses /core/install.php/foo, which a \.php(/|$) PHP location still hands to PHP.

    location ^~ /core/install.php {
      return 404;
    }

Test the config before reloading, then check the three paths the guide lists.

sudo nginx -t && sudo systemctl reload nginx
curl -I http://example.com/core/install.php
curl -IL http://example.com/install.php
curl -I http://example.com/core/install.php/foo

All three installer paths returned 404. The screenshot also carries the admin update.php check, which belongs after the takeover checks and is covered there, because logging in as user 1 now would overwrite the very login time you are about to audit.

curl returning 404 for Drupal install.php behind nginx while update.php still returns 200

A 403 or 404 is a pass. A 200 on any of the three means the block sits in the wrong server block or below a location that matches first, so move it and test again. Run the curl checks from outside the server as well, because a CDN or load balancer in front can cache or route the installer on its own.

The Apache Location block

On Apache, the block belongs in the virtual host. Drupal’s guide warns that the same directive in .htaccess returns a 500, because <Location> isn’t allowed there. List the vhosts to find the right file.

sudo apachectl -S

Our lab ran Apache on port 8080 beside nginx, so both servers could be tested against one Drupal root.

VirtualHost configuration:
*:8080                 example.com (/etc/apache2/sites-enabled/drupal.conf:1)
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"

That path is a symlink into sites-available, so open the real file. A site set up with our Drupal on Ubuntu with Apache guide has the same layout, and on Rocky Linux or RHEL it sits under /etc/httpd/conf.d/ instead.

sudo vim /etc/apache2/sites-available/drupal.conf

Add the Location section inside <VirtualHost>. This is the full lab vhost with the block at the end.

<VirtualHost *:8080>
    ServerName example.com
    DocumentRoot /var/www/drupal/web

    <Directory /var/www/drupal/web>
        AllowOverride All
        Require all granted
    </Directory>

    <FilesMatch \.php$>
        SetHandler "proxy:unix:/run/php/php8.3-fpm.sock|fcgi://localhost"
    </FilesMatch>

    <Location "/core/install.php">
      Require all denied
    </Location>
</VirtualHost>

If you install new sites through the browser, the guide’s alternative is Require ip 203.0.113.10 with your own address instead of Require all denied. Chain the syntax check to the reload, because a typo in the vhost takes the whole site down rather than just the installer. On RHEL the service is httpd.

sudo apachectl configtest && sudo systemctl reload apache2
curl -sI http://example.com:8080/core/install.php

Apache printed Syntax OK and answered 403 Forbidden for the installer.

Apache returning 403 Forbidden for Drupal core/install.php after a Location Require all denied block

The Location match is a prefix, so it also covers /core/install.php/foo. We checked all three paths with install.php restored on disk.

curl -sIL http://example.com:8080/core/install.php
curl -sIL http://example.com:8080/install.php
curl -sIL http://example.com:8080/core/install.php/foo

The bare /install.php got a 301 to the core path, which then hit the block.

HTTP/1.1 403 Forbidden
HTTP/1.1 301 Moved Permanently
Location: http://example.com:8080/core/install.php
HTTP/1.1 403 Forbidden
HTTP/1.1 403 Forbidden

A 301 followed by a 403 is a pass, since nothing reached the installer. Shared hosting without vhost access can’t use this block. Drupal’s guide covers a <Files "install.php"> rule in .htaccess instead, appended through the drupal-scaffold file mapping so a core update does not overwrite it.

Deleting install.php on every Composer run

A web server block can be lost in a config migration. Deleting the file as well means a missing block exposes nothing, and Drupal recommends this together with one of the blocks above. Composer scripts do it after every install and update, so a core update can’t quietly bring the file back.

composer config scripts.post-install-cmd "rm -f web/core/install.php"
composer config scripts.post-update-cmd "rm -f web/core/install.php"
composer install

The install run printed the script, and the file was gone afterwards.

> rm -f web/core/install.php
ls: cannot access 'web/core/install.php': No such file or directory

Run composer config scripts before you copy these lines. composer config replaces the whole event, so a project that already hooks post-install-cmd (the drupal-composer/drupal-project template does, for its ScriptHandler) would lose that entry. Add the rm line to the existing array in composer.json by hand in that case. Two more traps can leave the file in place:

  • Your web root may not be web/. Older projects use docroot/ or the project root, so match the path, or the script deletes nothing and stays silent about it.
  • A deploy that runs composer install --no-scripts skips the deletion, so keep the web server block in place as well.

That is why Drupal pairs the deletion with a block rather than offering it as a replacement.

Signs of a takeover, checked before the update

Drupal’s page on checking whether your site was compromised through the installer says to run its checks before the database update, because the update sets install_task to done and fills an empty install_time with the time it ran. Run them first and those two values still mean something. Run them afterwards and you are left comparing against a backup. Check every site whose /core/install.php was reachable at any point since 18 November 2026, and on a multisite add -l with the site URI to every Drush command below. Drupal keeps that page updated, so read the current version alongside this section.

Installer requests in the access log

The web server’s access log is the evidence an attacker inside Drupal can’t reach, but some hosts rotate it within days, so copy it somewhere safe before anything else. Check CDN and hosting provider logs too if they sit in front of the server. Then summarize every installer request by method, status and response size, rotated files included.

sudo zgrep -hE '"(GET|POST|HEAD) /core/install\.php' /var/log/nginx/access.log* | awk '{gsub(/"/,"",$6); print $6, $9, $10}' | sort | uniq -c | sort -rn

The lab log held only our own HEAD checks.

      7 HEAD 404 0
      1 HEAD 200 0

That single 200 is the point to take away. It was our check from localhost before the block went in, against a site that was already installed, so it proves only that the installer was reachable. Drupal’s page says the same: an installed site answers every installer request with a 200 and a page of about 2 KB saying Drupal is already installed, POSTs included, and scanners leave lines like that everywhere. It reads the results this way:

  • A 403 or 404 means the request was blocked or the file didn’t exist, which is safe.
  • A 200 of about 2 KB is usually the “already installed” page and not a sign of compromise by itself.
  • POST requests answered with a 302 or 303, much larger responses, requests carrying op= or id=, or a burst of installer requests from one address need investigating.

To look at the POSTs one by one, with source, time, status and size, filter for them.

sudo zgrep -h '"POST [^"]*install\.php' /var/log/nginx/access.log* | awk '{print $1, $4, $6, $7, $9, $10}'

It printed nothing on the lab box, which is the result you want. On Apache the files are /var/log/apache2/access.log* on Ubuntu and /var/log/httpd/access_log* on RHEL, with the same field layout in the default combined format. Log timestamps are usually in server time, so start the search on 17 November to cover the timezone offset, as Drupal’s page does. Write down the earliest suspicious request, because it decides which backup you can trust. Drupal’s page adds one more log search, for PHP requests under the files directory, where a planted backdoor would be called.

sudo zgrep -hE '/sites/[^ ]*/files/[^ ]*\.php' /var/log/nginx/access.log*

The lab log had no such lines. On a live site any hit here deserves more attention than anything in the installer summary.

User 1 and the administrator role

The SA-CORE-2026-019 advisory comes down to three checks on the account side:

  • The logs show no unexpected changes to or by the user 1 account.
  • User 1’s email address is one you control.
  • User 1’s password has been reset, which Drupal says to consider.

User 1 is the account the installer creates, and by default it bypasses every permission check, so whoever controls it controls the site. A takeover can just as easily add a new administrator as change the old one, so one query covers both: user 1 plus everyone holding the administrator role. Read the email column first, because an attacker who changes it can reset the password whenever they like.

cd /var/www/drupal
vendor/bin/drush sql:query --extra=--table 'SELECT u.uid, u.name, u.mail, u.status, FROM_UNIXTIME(u.changed) AS changed, FROM_UNIXTIME(u.login) AS last_login FROM users_field_data u LEFT JOIN user__roles r ON r.entity_id = u.uid WHERE u.uid = 1 OR r.roles_target_id = "administrator"'

FROM_UNIXTIME is MySQL and MariaDB syntax, so swap in your database’s date function on PostgreSQL or SQLite. A role with admin permissions under another machine name needs adding to the WHERE clause. On the lab site, user 1 was the only administrator, and its email was the one we set at install.

+-----+-------+-------------------+--------+---------------------+---------------------+
| uid | name  | mail              | status | changed             | last_login          |
+-----+-------+-------------------+--------+---------------------+---------------------+
|   1 | admin | [email protected] |      1 | 2026-11-26 10:19:48 | 2026-11-26 10:22:40 |
+-----+-------+-------------------+--------+---------------------+---------------------+

The changed and last_login columns carry the most weight. Drupal notes that an attack rerunning the installer can replace user 1’s name, email, password and timezone without touching created, so an old creation date proves nothing, and a user 1 password that suddenly no longer works is a warning sign in its own right. A changed time after 18 November that nobody on your team can explain means the account was edited. Then pull Drupal’s user events from the database log, which records logins and one-time login links.

vendor/bin/drush watchdog:show --type=user --count=10

This reads the database log, so it needs the dblog module; a site that logs through the syslog module has the same events in the system log instead. Both entries here came from a drush user:login we ran during the lab build.

 ---- -------------- ------ ---------- ----------------------------------------
  ID   Date           Type   Severity   Message
 ---- -------------- ------ ---------- ----------------------------------------
  52   26/Nov 10:22   user   Info       User admin used one-time login link at
                                        time 1795688559.
  51   26/Nov 10:22   user   Info       Session opened for admin.
 ---- -------------- ------ ---------- ----------------------------------------

On your site, any one-time login or session you can’t tie to a person needs a closer look. The database log only reaches back as far as its row limit, and an attacker with admin rights can clear it, which is why the access log comes first.

The install state Drupal records

Three state values tell you whether the site was ever in the vulnerable state, and whether an installer session started on it. Read them before drush updb touches them.

vendor/bin/drush state:get install_task
vendor/bin/drush state:get install_session_token
date -d "@$(vendor/bin/drush state:get install_time)"

Our lab values were read after the update, so done here only shows the hook ran. The token came back empty and the install time matched the lab build.

done

Thu Nov 26 10:19:48 UTC 2026

Drupal’s page reads them like this. Any install_task other than done means the site is vulnerable right now, but done proves nothing, since a completed attack sets it too. A value in install_session_token means an installer session started and never finished, which Drupal treats as a strong sign. An install_time after 18 November on an older site is suspicious unless it matches your own update run. If the date line fails with invalid date '@', no install time is stored at all; on its own that proves nothing, but combined with an install_task other than done the site is in the vulnerable state.

Site settings the installer rewrites

Rerunning the installer also resets the site name, the site email, the default timezone and the addresses that get update notifications. An attacker’s address in that last list would hear about every future security release before you do.

vendor/bin/drush config:get system.site name
vendor/bin/drush config:get system.site mail
vendor/bin/drush config:get system.date timezone.default
vendor/bin/drush config:get update.settings notification.emails

All four matched what we set when building the lab site. The last command only works with the Update Status module enabled.

'system.site:name': 'Lab site'
'system.site:mail': [email protected]
'system.date:timezone.default': UTC
'update.settings:notification.emails':
  - [email protected]

A name, address or timezone nobody on the team chose is as strong a sign as a changed user 1.

settings.php and the files directory

Under some conditions the installer can rewrite settings.php, so check its modification date and count the active hash_salt lines. More than one is a warning sign.

ls -l web/sites/*/settings.php
grep -nE "^\s*.settings\[.hash_salt.\]" web/sites/*/settings.php

The lab file dated from the build and had one salt line, shown here with the value cut. This listing was taken after the hardening step further down, so the mode and owner on yours will differ at this point. Check any file settings.php includes, such as settings.local.php, the same way, and confirm with the drush status call from earlier that the site still talks to the database host and name you expect.

-r--r--r-- 1 mercy mercy 37228 Nov 26 10:19 web/sites/default/settings.php
289:$settings['hash_salt'] = <redacted>;

Then look for PHP files and recently changed .htaccess files in the public files directory. Drupal compiles Twig templates to PHP under files/php/twig/, so that path is skipped here and checked separately below.

find web/sites/*/files -path "*/php/twig/*" -prune -o \( -name "*.php*" -o -name ".htaccess" \) -newermt 2026-11-17 -print

Two .htaccess files turned up on the lab site, both written by Drupal itself when we built it. That is why you compare their contents with a backup rather than treating every hit as hostile. A PHP file outside the Twig cache is a different matter, and a strong sign of a planted backdoor.

web/sites/default/files/.htaccess
web/sites/default/files/config_<redacted>/sync/.htaccess

The Twig cache already holds PHP, which makes it a good hiding place. A cache rebuild empties it and Drupal recompiles templates only as pages are viewed, so anything still there straight after a rebuild did not come from Drupal. The rebuild also deletes whatever was hidden there, so copy the whole files directory somewhere outside the web root first, as Drupal’s page asks you to preserve files for any investigation.

vendor/bin/drush cache:rebuild
find web/sites/*/files/php/twig -type f

On the lab site the rebuild removed the directory outright, so nothing survived.

 [success] Cache rebuild complete.
find: ‘web/sites/*/files/php/twig’: No such file or directory

Read any file that does survive with cat before deleting it, since you may need it as evidence.

If any of these checks looks wrong, stop and treat the site as compromised. Follow Drupal’s “Your Drupal site got hacked. Now what?” page rather than just patching, because an update does not remove an admin account, a changed setting or a backdoor that is already there.

A database backup before the update

A patch release rarely breaks anything, but this one runs a database update, and you want a way back that does not depend on the update working. Dump the database and keep copies of the two Composer files. With those three files, a rollback is the old lock file, composer install and an import, which takes minutes rather than an evening of guessing.

mkdir -p ~/backups
vendor/bin/drush sql:dump --gzip --result-file=$HOME/backups/pre-11.4.14.sql
cp composer.json composer.lock ~/backups/

Drush appends .gz itself, so the file lands as pre-11.4.14.sql.gz.

 [success] Database dump saved to /home/mercy/backups/pre-11.4.14.sql.gz
total 388K
-rw-rw-r-- 1 mercy mercy 385K Nov 26 10:20 pre-11.4.14.sql.gz

This dump is also the last record of the install state before the update rewrites it. Drupal calls a backup from before 18 November the strongest evidence you have, and any dump can be searched without a restore. On a MySQL or MariaDB dump, the pattern from Drupal’s page pulls the two state rows out of the gzip.

zgrep -oE "\(.state.,.install_(task|time).,[^)]*\)" ~/backups/pre-11.4.14.sql.gz

A safe result shows done and a Unix timestamp you can turn into your real install date with date -d @<value>.

('state','install_task','s:4:\"done\";')
('state','install_time','i:1795688388;')

Keep the dump off the web root and out of any directory nginx or Apache serves. It holds every password hash and email address on the site, so a dump in a public path is a worse leak than the bug you’re fixing. Keep it until the compromise checks are finished and you are sure you won’t need it as evidence, then delete it.

The Composer update on each supported branch

Every supported branch has a fixed release, and the right command depends on the caret constraint that drupal/recommended-project wrote into your composer.json. That caret decides whether a plain update stays on your branch. Read the drupal/core-recommended line in composer.json before you run anything, because the outcome differs by branch.

  • A project on ^11.4 stays on 11.4 and lands on 11.4.14 with a plain update.
  • A project on ^11.3 jumps to 11.4.14 with a plain update unless you pin it.
  • A project on ^10.6 stays on 10.6 and lands on 10.6.23 with a plain update.

Each case was run on its own lab site, and the commands below are the ones that produced the output shown. Run Composer and Drush as the account that owns the code and sites/default, never as root, or the update leaves root-owned files that the next deploy can’t touch. The 11.3 and 10.6 output is trimmed to the core, Symfony and Twig lines. Drupal’s compromise-check page also tells you to update Composer itself with composer self-update alongside the core update.

Drupal 11.4 to 11.4.14

On 11.4, update every core package together and let Composer move the dependencies they pin. The wildcard matters, because core-recommended requires one exact drupal/core release, so the two packages have to move together.

composer update "drupal/core-*" --with-all-dependencies

Our run made 28 updates, taking core to 11.4.14, the Symfony components to 7.4.24 and Twig to 3.31.1. Composer runs its audit after writing the lock file, and it came back clean. If you held back 11.4.13 because Search API or custom code threw “Theme hook field not found”, the release notes say 11.4.14 fixes that theme registry regression too.

composer update drupal/core-* upgrading Drupal 11.4.13 to 11.4.14 and Symfony to 7.4.24

The Symfony part deserves a second look. The 11.4.14 release notes say the Symfony 7.4.24 security update is not included in the release, and Drupal recommends updating Symfony alongside it. On our box --with-all-dependencies pulled 7.4.24 anyway, because core-recommended pins Symfony with a tilde that allows new patch releases. If your audit still lists symfony/* afterwards, something in your project holds it back, and that needs fixing before you call the site patched.

Drupal 11.3 to 11.3.23 without a minor jump

The same command on an 11.3 site does something you might not expect. We built an 11.3.22 site from drupal/recommended-project:11.3.22, which writes ^11.3 into composer.json. Then we asked Composer what it would do, with a dry run so nothing changed.

composer update "drupal/core-*" --with-all-dependencies --dry-run

The caret allows any 11.x at or above 11.3, so Composer planned a minor upgrade.

  - Upgrading drupal/core (11.3.22 => 11.4.14)

Moving to 11.4 is supported, but it is a minor upgrade with its own update hooks and contrib compatibility to check, which is not what you want to test during an incident. A contrib module that isn’t ready for 11.4 would turn a ten minute patch into an outage. To stay on 11.3 and take only the security release, pin the core packages with a tilde.

composer require "drupal/core-recommended:~11.3.23" "drupal/core-composer-scaffold:~11.3.23" "drupal/core-project-message:~11.3.23" --update-with-all-dependencies

Composer kept the site on the 11.3 branch and moved Symfony and Twig with it.

Running composer update drupal/core-recommended drupal/core-composer-scaffold drupal/core-project-message --with-all-dependencies
  - Upgrading drupal/core (11.3.22 => 11.3.23)
  - Upgrading drupal/core-composer-scaffold (11.3.22 => 11.3.23)
  - Upgrading drupal/core-project-message (11.3.22 => 11.3.23)
  - Upgrading drupal/core-recommended (11.3.22 => 11.3.23)
  - Upgrading symfony/http-kernel (v7.4.23 => v7.4.24)
  - Upgrading twig/twig (v3.30.0 => v3.31.1)
Writing lock file
No security vulnerability advisories found.

One package was left behind. A recommended-project build on 11.3 also requires drupal/core-recipe-unpack with a caret, and our pinned run left it on 11.3.22 with ^11.3 still in composer.json, so the next plain update would pull it to 11.4. Pin it the same way.

composer require "drupal/core-recipe-unpack:~11.3.23" --update-with-all-dependencies
composer show "drupal/core*"

All five core packages now report the same release.

  - Upgrading drupal/core-recipe-unpack (11.3.22 => 11.3.23)
No security vulnerability advisories found.
drupal/core                   11.3.23 Drupal is an open sour
drupal/core-composer-scaffold 11.3.23 A flexible Composer pr
drupal/core-project-message   11.3.23 Adds a message after C
drupal/core-recipe-unpack     11.3.23 A Composer project unp
drupal/core-recommended       11.3.23 Core and its dependenc

The tildes stay in composer.json after this. They keep later composer update runs on 11.3 too, so change them back to ^11.3 when you plan the move to 11.4. Don’t leave that for long: the 11.3.23 release notes give 11.3 security coverage only until December 2026, when 11.5.0 ships.

Drupal 10.6 to 10.6.23

Drupal 10 has no newer minor to jump to, so ^10.6 stays on the branch and the 11.4 command works unchanged. We ran it on a 10.6.22 site built the same way.

composer update "drupal/core-*" --with-all-dependencies

Core moved to 10.6.23 and Symfony to 6.4.51, which the 10.6.23 release notes also say is not bundled with the release.

  - Upgrading drupal/core (10.6.22 => 10.6.23)
  - Upgrading symfony/http-kernel (v6.4.50 => v6.4.51)
  - Upgrading twig/twig (v3.30.0 => v3.31.1)
No security vulnerability advisories found.

Drupal 10.6 has security coverage until December 2026, when 11.5.0 ships. After that date the next installer advisory, if there is one, will have no 10.x release to fix it. Patch it today, and put the move to 11 on the calendar for this month rather than next quarter, so it isn’t done in a hurry the next time.

The post-update hook only drush updb runs

New code on disk closes the hole, but it does not repair a site already in the vulnerable install state. The advisory is explicit that an update hook must run on existing production sites, so a deploy that skips the database step leaves that state in place. Plenty of pipelines run composer install and a cache rebuild and nothing else, which is exactly the gap. Before running it, list what is pending.

vendor/bin/drush updatedb:status

One post-update is waiting in the system module, and its description says what it repairs.

 -------- --------------- ------------- --------------------------------------
  Module   Update ID       Type          Description
 -------- --------------- ------------- --------------------------------------
  system   mark_installa   post-update   Mark the installation as finished on
           tion_finished                 sites with incomplete install state.
 -------- --------------- ------------- -------------------------------------- 

Visiting /update.php as an administrator does the same job if you have no shell, which is why the installer block leaves that page alone. Now that the account checks are saved, it is safe to prove that page still works. A logged-out request gets a 403 from Drupal there, which looks like a broken page but is normal, so open a one-time login link from Drush with curl and keep the session cookie it sets.

ULI=$(vendor/bin/drush user:login --uid=1 --uri=http://example.com --no-browser)
curl -sL -c ~/cookies.txt -o /dev/null -w "%{http_code}\n" "$ULI"
curl -s -b ~/cookies.txt -o /dev/null -w "%{http_code}\n" http://example.com/update.php
curl -s -o /dev/null -w "%{http_code}\n" http://example.com/update.php

The login and the admin request returned 200, and the logged-out request got the expected 403.

200
200
403

The cookie file now holds a logged-in admin session, so treat it like a password and delete it when you finish. Run the hook with Drush, and note the time you ran it, because a later install_time check needs that to tell your update from an attacker’s.

vendor/bin/drush updatedb -y

The hook ran and the site reported 11.4.14. The 11.3.23 and 10.6.23 sites ran the same system_post_update_mark_installation_finished hook, so the step is identical on every branch.

drush updatedb running system_post_update_mark_installation_finished after the Drupal 11.4.14 update

Rebuild the caches and confirm nothing is left. The state:get call reads the value the hook sets, and the audit should now be empty.

vendor/bin/drush cache:rebuild
vendor/bin/drush updatedb:status
vendor/bin/drush state:get install_task
composer audit --locked

Run after the hook, all four came back clean on the 11.4.14 site.

 [success] Cache rebuild complete.
 [success] No database updates required.
done
No security vulnerability advisories found.

Treat done as proof the hook ran, not as proof the site was never attacked. A successful attack leaves the same value behind, which is why the checks came first and why the pre-update dump stays until they are settled.

A settings.php the web server cannot rewrite

SA-CORE-2026-017 notes that some, but not all, exploit paths are mitigated if the web server cannot write to or change permissions on settings.php. Drupal names this for that advisory only, so treat it as defence in depth rather than a fix. Read-only permissions alone don’t get you there. The owner of a file can always chmod it, so if the PHP workers run as the file’s owner, mode 444 protects nothing. Start by finding which user PHP-FPM runs as.

ps -o user= -C php-fpm8.3 | sort | uniq -c

The workers run as www-data, and only the master process runs as root. Give the site directory and settings.php to the deploy user, then take away write access. The directory matters as much as the file, because a writable directory lets the owner replace settings.php outright.

cd /var/www/drupal
sudo chown mercy:mercy web/sites/default web/sites/default/settings.php
sudo chmod 555 web/sites/default
sudo chmod 444 web/sites/default/settings.php

Leave sites/default/files owned by www-data, because Drupal writes uploads and aggregated assets there. Then test from the web server’s side, not your own, since your account owns the file and would pass every check. The chmod probe asks for the mode the file already has, so even a hardening gap changes nothing.

cd /var/www/drupal/web/sites/default
sudo -u www-data test -w settings.php || echo "www-data cannot write settings.php"
sudo -u www-data chmod 444 settings.php
stat -c "%A %U:%G %n" . settings.php
cd /var/www/drupal

The write test and the chmod both have to fail for the hardening to count.

Drupal settings.php owned by the deploy user so the www-data PHP-FPM worker cannot write or chmod it

Both checks failed for www-data with “Operation not permitted” on the chmod, which is the result you want. We also ran the opposite case: with www-data owning the file, the same chmod succeeded, so a 444 mode on a www-data file would have given false comfort. Replace mercy with whatever account your deployments run as. A composer install run as that account after the hardening still finished cleanly in our lab, scaffold and install.php removal included, so the read-only directory does not get in the way of later updates.

Stopgaps when the update has to wait

A frozen release window or a contrib module that breaks on the new core can delay the update. None of these replace it, but each cuts the exposure while you wait:

  • The nginx or Apache block above is live, and all three installer URLs return 403 or 404 from outside.
  • The install.php file is deleted from the deployed code, by the Composer scripts or by hand.
  • The PHP-FPM user can’t write or chmod settings.php or its directory. Drupal names this only for SA-CORE-2026-017, and only for some of its exploit paths.
  • Sites on Drupal Steward run its recommended mitigations, which Drupal says cover the known attack vectors of both advisories.

The advisory still tells Steward sites to upgrade soon in case new attack paths turn up, and that goes for every stopgap here. Sites on 11.2.x and older, or 10.5.x and older, get no fix at all. For them, blocking the installer and deleting the file are the only protection until the site moves to 11.3, 11.4 or 10.6, and that move belongs in this sprint.

Drupal installer audit checklist

Run through this on every Drupal site you own, in this order, including staging and the forgotten ones. A staging copy with a production database dump is a full takeover target:

  1. /core/install.php, /install.php and /core/install.php/foo each return 403 or 404 over HTTPS.
  2. web/core/install.php does not exist after composer install.
  3. The access logs, copied somewhere safe, show no installer POST since 17 November answered with a redirect, and nothing else on Drupal’s compromise-check page matches.
  4. User 1’s email is an address your team controls, its last login matches a person, the administrator role holds only accounts you can name, and the site email, name, timezone and update notification addresses are yours.
  5. install_session_token is empty and install_time matches your real install date, read before the database update.
  6. No PHP file sits in the files directory outside files/php/twig/, and settings.php has one hash_salt line.
  7. drush status --field=drupal-version reports 11.4.14, 11.3.23, 10.6.23 or a newer release on the same branch.
  8. composer audit --locked reports no advisories, Symfony included, drush updatedb:status reports no database updates required, and /update.php still loads for an administrator.
  9. The PHP-FPM user gets “Operation not permitted” when it tries to chmod settings.php.

Items 1 and 2 stop the attack, items 3 to 6 tell you whether it already happened, and items 7 to 9 close both advisories for good. If any of items 3 to 6 fails, stop and investigate before you run the update, because the update erases part of the evidence.

Keep reading

Java4Shell (CVE-2026-114938): Find and Patch Vulnerable JVMs Security Java4Shell (CVE-2026-114938): Find and Patch Vulnerable JVMs UFW Firewall Commands with Examples on Ubuntu 26.04 / 24.04 Security UFW Firewall Commands with Examples on Ubuntu 26.04 / 24.04 nginx HTTP/2 RCE CVE-2026-123007: Check, Disable HTTP/2, Patch Security nginx HTTP/2 RCE CVE-2026-123007: Check, Disable HTTP/2, Patch agent-framework PyPI Malware: Check 1.26.1/1.26.2 and Rotate Keys AI agent-framework PyPI Malware: Check 1.26.1/1.26.2 and Rotate Keys Roundcube 1.7.7 and 1.6.22 Security Update: Check and Upgrade Email Roundcube 1.7.7 and 1.6.22 Security Update: Check and Upgrade Best CISA Books for the Certified Information Systems Auditor Exam Books Best CISA Books for the Certified Information Systems Auditor Exam

Leave a Comment

Press ESC to close