Direct answer: CVE-2026-132165 is a flaw in the Drupal core installer, the core/install.php file. Under specific conditions, an attacker with no login can use the installer to try to reinstall Drupal and take over the site. Today, update to 11.4.13, 11.3.22, or 10.6.22.

The vendor received reports of attacks on live sites from 19 November 2026, 1 day after the advisory. CISA KEV added the flaw on 24 November. The CVE record and the CVSS score are not out yet, so scanners that wait for a CVSS score stay quiet.

Main condition: the vendor score went from Critical 18/25 to Highly critical 20/25, with a sign that attack code exists. Limit: this article has no attack code, no payload, and no attack steps.

We read the SA-CORE-2026-017 advisory, the 11.4.13 release notes, the Securing the installer guide, and CISA KEV on 25 November 2026. We ran each script in this article in podman, with the official Drupal 11.4.12 and 11.4.13 images, Apache, php-fpm, and nginx 1.30.7.

Important limit: The sites, logs, and accounts in our test are dummy data in a closed network. We did not test shared hosting, the cPanel panel, or Drupal installed without Composer.

Problem: the installer stays after the site is live

Drupal is an open source CMS written in PHP. In Indonesia, its users are universities, government offices, media, NGOs, and agencies that manage client sites.

Drupal core carries an install.php file for the first install. After the site is live, that file stays on the server and can still be opened from the internet. This table shows what is at stake.

PartWhat a Drupal site holdsImpact if the installer is misused
Admin accountsFull rights to manage the siteThe site is taken over
Content and dataArticles, users, form entriesRead and changed
settings.php and the databaseDatabase credentials and hash_saltSite secrets are exposed
Web serverPHP runs as the web userCode runs as the web user
Table of what a Drupal site holds: admin accounts, content and data, settings.php and the database, the web server, with the impact. Red box: the SA-CORE-2026-017 summary.
Red: the largest impact. Amber: follow-on impact. Bottom box: the mechanism summary from the vendor, with no attack steps. Source: SA-CORE-2026-017 and the Drupal core file layout.

Rama Digital analysis: a self-hosted CMS is as attractive a target as an online shop. The same attack pattern on CMS and shops shows in the Craft CMS SQL flaw CVE-2026-123488 and the Magento PolyShell flaw CVE-2026-48356.

Timeline of CVE-2026-132165 from the advisory on 18 November 2026 to 25 November: first attack on 19 November, risk 20/25 on 23 November, CISA KEV on 24 November.
Amber dot: the advisory and the fix releases. Red dots: attacks, the risk increase, and KEV. Empty dots: the guide update and our reading date. Source: SA-CORE-2026-017, the Securing the installer guide, CISA KEV, and The DropTimes.

The advisory came out on 18 November with the 11.4.13, 11.3.22, and 10.6.22 releases. From The DropTimes, the score went up to 20/25 on 23 November, after the vendor received attack reports.

Rama Digital analysis: attacks started less than 27 hours after the advisory. Sites that wait for a CVE record or a CVSS score are already 6 days late.

How it works: the installer can reinstall the site

This part uses the official vendor summary and our test results. It helps you choose the correct steps. It does not explain how to attack.

The vendor summary

From the SA-CORE-2026-017 advisory, under specific conditions an attacker can use the installer to try to reinstall Drupal. The result can be a site takeover or remote code execution.

Some attack paths, not all, are held if the web server cannot write to or change permissions on settings.php. From CISA KEV, the attacker needs no login. KEV gives the weakness type CWE-636, not failing securely.

The vendor score uses the Drupal risk scale: AC:Complex/A:None/CI:All/II:All/E:Exploit/TD:Uncommon. This means: a complex attack, no account, all data can be read and changed, and attack code exists.

What our test found

  • The official drupal:11.4.12-apache image makes www-data the owner of sites/default and settings.php. Mode 444 does not stop the owner, because the owner can always change permissions.
  • On default Apache, /install.php redirects to /core/install.php. So check both URLs, not 1.
  • On nginx, a location = /core/install.php rule does not close /core/install.php/check. That URL still answered 200 in our test. A ^~ rule closes all 3.
  • From the 11.4.13 release notes, the fixed installer shows an error if settings.php is not writable. The installer no longer tries to fix file permissions.

Exploit status on 25 November 2026

This status can change. The same releases also close SA-CORE-2026-018 (CVE-2026-132166, Moderately critical 14/25), so 1 update closes 2 flaws.

SourceStatus
SA-CORE-2026-017 (18 November)Highly critical 20/25 after the update. First Critical 18/25. Type: remote code execution
Attacks in the wildThe vendor received reports of attacks on live sites from 19 November 2026, 19.00 UTC
CISA KEVAdded on 24 November 2026. Due date for US federal agencies: 27 November. KEV asks for forensic triage
CVE record and CVSSNot published on 25 November 2026
Drupal StewardSteward customers are protected from known vectors. The vendor still asks for the update

Who is most at risk

Every Drupal 8 to 11 site below a fixed version needs the update. The order in this table helps you choose which site to fix first.

Drupal setupRiskReason
A vulnerable version, the installer answers 200 from the internet, the web user owns settings.phpHighestAll paths that the vendor names are open
A vulnerable version, the installer is open, settings.php is read-only for the web userHighVendor: some paths are held, not all
A vulnerable version, the installer answers 403 or 404LowerStill update today. A block rule can disappear when the config changes
11.4.13, 11.3.22, 10.6.22Safe for this CVELook for signs in step 5 if a vulnerable version was open after 18 November
A decision tree of 3 questions: a fixed version, /core/install.php answers 200 from the internet, and the web user can change settings.php. Every path ends in the update.
Green card: safe for this CVE. Red card: highest risk. Amber card: high risk. Grey card: lower risk. Source: SA-CORE-2026-017, the Securing the installer guide, and Rama Digital analysis.

Rama Digital analysis: agencies that run many client sites have the largest risk. One team usually uses the same server config, so one open flaw shows on many sites at once.

On shared hosting, PHP often runs as the user that owns the files. There, the web user can always change settings.php. So the update and the installer block are the only defence.

Affected versions and fixed versions

Match the version of each site with this table. Vendor range: <10.6.22 || >=11.0.0 <11.3.22 || >=11.4.0 <11.4.13.

Drupal core versionCVE-2026-132165 statusAction
11.4.13, 11.3.22, 10.6.22SafeStill block the installer (step 4)
11.4.0 to 11.4.12VulnerableUpdate to 11.4.13
11.3.0 to 11.3.21VulnerableUpdate to 11.3.22
11.0.x to 11.2.xVulnerable, EOL, no patchMove to 11.4.13
10.6.0 to 10.6.21VulnerableUpdate to 10.6.22
10.5.x and older, Drupal 8 and 9Vulnerable, EOL, no patchMove to 10.6.22 or 11.4.13
Drupal 7Outside this advisory, EOL since January 2025Plan a migration
Table of Drupal core versions: 11.4.13, 11.3.22, and 10.6.22 are safe. Older versions in each branch are vulnerable. EOL branches with no patch must move to 11.4.13.
Green: safe. Red: vulnerable, update today. Amber: EOL with no patch. Bottom box: the theme regression in 11.4.13 and the Drupal 7 status. Source: SA-CORE-2026-017, the Drupal 11.4.13 release notes, and the Rama Digital podman test.

The theme regression in 11.4.13

Release 11.4.13 has a regression in the theme registry, for example the error "Theme hook field not found" on sites with Search APIAPIThe official door 2 systems use to exchange data, without anybody copying it by hand.Open the glossary. The vendor tracks it in issue #3639497, with a fix in 11.4.14. The vendor still asks for the update, so test the site after the update.

Before you start

  • Shell access to the Drupal server, with sudo rights for the web server config and file permissions.
  • A list of all Drupal sites, including staging sites, old sites, and client sites.
  • Composer on the server, or on the build machine that makes the site package.
  • A laptop outside the office network, for example on mobile data, for the exposure check in step 2.
  • A backup of the database and the site folder that you can restore.
  • A short change window for the update and a home page test.

Step 1: Check the Drupal core version

Manual way: log in as an admin, open the Status report at /admin/reports/status, then read the Drupal version. For many sites and for containers, use the script.

Save this script as check-version-drupal.sh. The script reads the version from text, a project folder, or a container, then compares it with the vendor range. The script changes nothing.

#!/usr/bin/env bash
# Check the Drupal core version for CVE-2026-132165 (SA-CORE-2026-017, installer, Drupal risk 20/25).
# Use: bash check-version-drupal.sh 11.4.12               (version from the Status report page)
#   or: bash check-version-drupal.sh /var/www/site          (Drupal project folder on the server)
#   or: bash check-version-drupal.sh --container NAME       (running Drupal container)
# Affected (vendor): <10.6.22, 11.0.0 up to <11.3.22, 11.4.0 up to <11.4.13.
# Fix: 11.4.13, 11.3.22, 10.6.22. Branches 11.0 to 11.2 and 10.5 and older are EOL.
# Folder and container modes read const VERSION in core/lib/Drupal.php. The script changes nothing.
# Exit code: 0 SAFE, 1 VULNERABLE or CHECK, 2 CANNOT CONFIRM.
set -u
export LC_ALL=C
clean() { local x=${1//[![:print:]]/}; printf '%s' "${x:0:90}"; }
fail() { echo "Result : CANNOT CONFIRM. $1"; echo "         With no proof of the version, treat the site as not safe."; exit 2; }
vulnerable() { echo "Result : VULNERABLE to CVE-2026-132165. $1"; echo "         Until the update is done, block the installer (step 4)."; return 1; }

rate() {
  local a b c
  IFS=. read -r a b c <<< "$1"
  a=$((10#$a)) b=$((10#$b)) c=$((10#$c))
  if (( a < 10 )); then vulnerable "Drupal $a is EOL. Move to 11.4.13."; return; fi
  if (( a == 10 && (b < 6) )); then vulnerable "Branch 10.$b is EOL. Update to 10.6.22 or 11.4.13."; return; fi
  if (( a == 10 && b == 6 && c < 22 )); then vulnerable "Update to 10.6.22."; return; fi
  if (( a == 10 )); then echo "Result : SAFE for CVE-2026-132165. Still block the installer (step 4)."; return 0; fi
  if (( a == 11 && b < 3 )); then vulnerable "Branch 11.$b is EOL. Update to 11.4.13."; return; fi
  if (( a == 11 && b == 3 && c < 22 )); then vulnerable "Update to 11.3.22."; return; fi
  if (( a == 11 && b == 4 && c < 13 )); then vulnerable "Update to 11.4.13."; return; fi
  if (( a == 11 && b <= 4 )); then echo "Result : SAFE for CVE-2026-132165. Still block the installer (step 4)."; return 0; fi
  echo "Result : CHECK. The advisory does not name version $1. Compare with SA-CORE-2026-017."; return 1
}

# Read the version from the content of core/lib/Drupal.php (stdin).
from_code() { sed -n "s/^[[:space:]]*const VERSION = '\([0-9][0-9.]*[0-9A-Za-z.-]*\)';.*/\1/p" | head -n 1; }

check() { # raw version
  if [[ $1 =~ ^7\.[0-9]{1,3}$ ]]; then
    echo "Version: $1"; echo "Result : CHECK. Drupal 7 is outside this advisory, but it is EOL. Move to 11.4.13."; return 1
  fi
  [[ $1 =~ ^([0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,3})(-[A-Za-z0-9.]+)?$ ]] || fail "Version $(clean "$1") is not readable."
  echo "Version: $1"
  if [ -n "${BASH_REMATCH[2]}" ]; then
    echo "Result : CHECK. This is a pre-release or dev version. Use the stable release 11.4.13 on a live site."; return 1
  fi
  rate "${BASH_REMATCH[1]}"
}

folder() {
  local d=${1%/} f="" x v lock
  for x in web/core/lib/Drupal.php docroot/core/lib/Drupal.php html/core/lib/Drupal.php core/lib/Drupal.php; do
    [ -f "$d/$x" ] && { f=$d/$x; break; }
  done
  [ -n "$f" ] || fail "Folder $(clean "$d") is not a Drupal 8 or later project. Drupal 7: give the version as text."
  echo "Source : $(clean "${f#"$d"/}")"
  v=$(from_code < "$f")
  [ -n "$v" ] || fail "const VERSION is not readable."
  if [ -f "$d/composer.lock" ]; then
    lock=$(grep -A 1 -F '"name": "drupal/core",' "$d/composer.lock" | sed -n 's/.*"version": "\([^"]*\)".*/\1/p' | head -n 1)
    [ -n "$lock" ] && [ "$lock" != "$v" ] && echo "Note   : composer.lock gives $(clean "$lock"). Run composer install, then check again."
  fi
  check "$v"
}

container() {
  local c=$1 d=${DOCKER:-docker} v
  [[ $d == docker || $d == podman ]] || fail "DOCKER must be docker or podman."
  [[ $c =~ ^[A-Za-z0-9][A-Za-z0-9_.-]{0,127}$ ]] || fail "Container name $(clean "$c") is not valid."
  command -v "$d" >/dev/null || fail "Command $d is missing."
  v=$("$d" exec "$c" sh -c 'cat /var/www/html/core/lib/Drupal.php 2>/dev/null || cat /opt/drupal/web/core/lib/Drupal.php' 2>/dev/null | from_code)
  [ -n "$v" ] || fail "core/lib/Drupal.php is not readable in container $c."
  echo "Source : container $c"
  check "$v"
}

[ $# -ge 1 ] || fail "Give a Drupal version, a project folder, or --container NAME."
if [ "$1" = "--container" ]; then
  [ $# -ge 2 ] || fail "Give a container name after --container."
  container "$2"; exit $?
elif [ -d "$1" ]; then
  folder "$1"; exit $?
elif [[ $1 == */* ]]; then
  fail "Folder $(clean "$1") does not exist."
elif [[ $1 =~ ^- ]]; then
  fail "Option $(clean "$1") is not known."
fi
echo "Source : text"
check "$1"; exit $?
# 1. Write the version from the Status report page (/admin/reports/status)
bash check-version-drupal.sh 11.4.12
# 2. Give the Drupal project folder. The script reads core/lib/Drupal.php.
bash check-version-drupal.sh /var/www/site
# 3. Check a running Drupal container. Find the container name with docker ps.
bash check-version-drupal.sh --container drupal-web
Terminal: the version script marks Drupal 11.4.12 VULNERABLE from text, from the project folder, and from the container. Each result says update to 11.4.13, exit code 1.
The official drupal:11.4.12-apache image. The container and host names are dummy data. Source: Rama Digital test in podman with the official drupal 11.4.12 and 11.4.13 images (Apache and php-fpm), nginx 1.30.7, and dummy data, 25 November 2026.

Check the result:

  • "VULNERABLE": do step 4 now, then step 3 today.
  • "CHECK": Drupal 7, a pre-release version, or a version that the advisory does not name. Compare it with the advisory, then use a stable release.
  • "SAFE for CVE-2026-132165": the version is fixed. Still block the installer and run step 5.
  • "CANNOT CONFIRM": the version, folder, or container cannot be read. Treat the site as not safe.

We tested the script with 20 version cases, control characters, folders with no Drupal, wrong options, and 4 container cases. The cases include EOL versions, pre-release versions, broken text, and an 11.4.13 container. All results were correct.

Step 2: Check settings.php permissions and installer exposure

Save this script as check-settings-drupal.sh. The script reads the owner and mode of sites/default and settings.php with stat. The script does not read the content of settings.php.

#!/usr/bin/env bash
# Check if the web server user can write settings.php or change its permissions (CVE-2026-132165).
# Use: bash check-settings-drupal.sh /var/www/site                (default web user: www-data)
#   or: bash check-settings-drupal.sh /var/www/site nginx          (a different web user)
# Vendor: some (not all) attack paths stop when the web server cannot write settings.php
# or change its permissions. The file owner can always change permissions, also at mode 444.
# The script reads only the owner and mode with stat. It does not read the content of settings.php.
# Exit code: 0 read-only for the web user, 1 DANGER, 2 CANNOT CONFIRM.
set -u
export LC_ALL=C
clean() { local x=${1//[![:print:]]/}; printf '%s' "${x:0:90}"; }
fail() { echo "Result : CANNOT CONFIRM. $1"; exit 2; }

[ $# -ge 1 ] || fail "Give the Drupal project folder."
d=${1%/} w=${2:-www-data}
[[ $w =~ ^[a-z_][a-z0-9_-]{0,31}$ ]] || fail "User name $(clean "$w") is not valid."
id "$w" >/dev/null 2>&1 || fail "User $w does not exist on this server."
s=""
for x in web/sites/default docroot/sites/default html/sites/default sites/default; do
  [ -d "$d/$x" ] && { s=$d/$x; break; }
done
[ -n "$s" ] || fail "Folder sites/default does not exist in $(clean "$d")."
groups=" $(id -nG "$w") "

# Write the status of 1 file or folder. 1 = the web user is the owner or can write.
rate() { # path, label
  local p=$1 o g m can=""
  read -r o g m < <(stat -c '%U %G %a' -- "$p")
  if [ "$o" = "$w" ]; then can="owner, can change permissions"
  elif (( 8#$m & 8#020 )) && [[ $groups == *" $g "* ]]; then can="group can write"
  elif (( 8#$m & 8#002 )); then can="all users can write"
  fi
  printf 'File   : %-16s %-18s %-4s %s\n' "$2" "$o:$g" "$m" "${can:-read-only for $w}"
  [ -z "$can" ]
}

echo "Source : $(clean "$s"), web user $w"
danger=0
rate "$s" "sites/default" || danger=1
if [ -f "$s/settings.php" ]; then rate "$s/settings.php" "settings.php" || danger=1
else echo "File   : settings.php      missing. Is the site not installed?"; danger=1; fi
for x in "$s/../../core/install.php" "$s/../../install.php"; do
  [ -f "$x" ] && echo "Note   : the installer file is at $(clean "${x#"$s"/../../}"). Block access to it (step 4)."
done
if (( danger )); then
  echo "Result : DANGER. User $w can change settings.php or its folder."
  echo "         More attack paths are open. Update core, then lock the permissions (step 4)."; exit 1
fi
echo "Result : settings.php is read-only for $w. This does NOT make the site safe. The update is still necessary."; exit 0

Save the second script as check-exposure-drupal.sh. The script opens 3 installer URLs with a plain GET, then records the response code. The script sends no data to the installer.

#!/usr/bin/env bash
# Check if the Drupal installer is reachable from the network where the script runs (CVE-2026-132165).
# Use: bash check-exposure-drupal.sh https://site.example.test    (run from outside, for example a laptop on mobile data)
#   or: bash check-exposure-drupal.sh https://example.test/portal   (Drupal in a subfolder)
# The script checks 3 URLs from the vendor guide "Securing the installer". It sends only GET.
# The script sends no form, cookie, or data, and it does not print page content.
# The script follows redirects. OPEN: code 200 on the installer URL. CLOSED: code 403 or 404,
# or a redirect to a different page.
# Exit code: 0 all closed, 1 one or more open, 2 CANNOT CONFIRM.
set -u
export LC_ALL=C
PATHS=("/core/install.php" "/install.php" "/core/install.php/check")
clean() { local x=${1//[![:print:]]/}; printf '%s' "${x:0:90}"; }
fail() { echo "Result : CANNOT CONFIRM. $1"; exit 2; }

[ $# -ge 1 ] || fail "Give the Drupal site address, for example https://site.example.test."
u=${1%/}
[[ $u =~ ^https?:// ]] || u=https://$u
[[ $u =~ ^https?://[A-Za-z0-9]([A-Za-z0-9.-]{0,251}[A-Za-z0-9])?(:[0-9]{1,5})?(/[A-Za-z0-9._~/-]*)?$ ]] || fail "Address $(clean "$1") is not valid."
command -v curl >/dev/null || fail "Command curl is missing."
echo "Source : ${u}, from this network"
open=0 answer=0 odd=0
for p in "${PATHS[@]}"; do
  r=$(curl -s -o /dev/null --max-time 10 -L --max-redirs 3 -w '%{http_code} %{url_effective}' "$u$p" 2>/dev/null); code=${r%% *} final=${r#* }
  case $code in
    200) if [[ $final == *install.php* ]]; then s=OPEN open=$((open + 1)); else s="CLOSED (redirect)"; fi ;;
    403|404|410) s=CLOSED ;;
    000) s="NO ANSWER" ;;
    *) s=CHECK odd=$((odd + 1)) ;;
  esac
  [ "$code" = 000 ] || answer=$((answer + 1))
  printf 'URL    : %-24s %-4s %s\n' "$p" "$code" "$s"
done
(( answer == 0 )) && fail "The site does not answer. Check the address and https, then try again."
if (( open > 0 )); then
  echo "Result : OPEN. The installer is reachable from this network."
  echo "         Update core (step 3). Until that is done, block the installer (step 4)."; exit 1
fi
(( odd > 0 || answer < ${#PATHS[@]} )) && fail "A URL gave a different code or no answer. Open that URL in a browser."
echo "Result : CLOSED from this network. Still update core to a fixed version."; exit 0
# On the Drupal server. Add the web user as a second value if it is not www-data, for example nginx or apache.
bash check-settings-drupal.sh /var/www/site
# From a laptop outside the office, for example on mobile data, to the public site address
bash check-exposure-drupal.sh https://site.example.test
Terminal: settings.php and sites/default belong to www-data, result DANGER. From the outside laptop, 3 installer URLs answer 200 and the script prints OPEN.
The official image makes www-data the owner of settings.php. The outside laptop is another container in a closed test network. Source: Rama Digital test in podman with the official drupal 11.4.12 and 11.4.13 images (Apache and php-fpm), nginx 1.30.7, and dummy data, 25 November 2026.

Check the result:

  • Permissions "DANGER": the web user is the owner or can write. Lock the permissions in step 4.
  • Exposure "OPEN": the installer can be opened from the internet. Block it in step 4 now.
  • Exposure "CLOSED" with code 403 or 404: the block rule works. Still update.
  • "NO ANSWER": the address is wrong, https does not work, or a firewall stops your laptop. Check the address, then try again.

We tested the permissions script with a www-data owner, a root owner, a group that can write, a web user that does not exist, and a user name that is not valid. We tested the exposure script with an open site, a blocked site, an address with no scheme, and an address that is not valid.

Step 3: Update core with Composer

Only the update closes the flaw. Back up the database and the site folder first.

# 1. Back up the database and the site folder outside the web root.
# 2. Go to the project folder. The composer.json file is here.
cd /var/www/site
composer update "drupal/core-*" --with-all-dependencies
# 3. Run the database updates and rebuild the cache, as the user that owns the site.
vendor/bin/drush updatedb -y
vendor/bin/drush cache:rebuild
# 4. Check again. The result must be SAFE.
bash check-version-drupal.sh /var/www/site
Terminal: composer update moves drupal/core from 11.4.12 to 11.4.13, drush updatedb and cache:rebuild succeed, then the version script prints SAFE, exit code 0.
This update has no new database updates. Your site can have modules that bring their own updates. Source: Rama Digital test in podman with the official drupal 11.4.12 and 11.4.13 images (Apache and php-fpm), nginx 1.30.7, and dummy data, 25 November 2026.

The composer update command follows the version limits in composer.json. A site on the 11.3 branch can move to 11.4 if the limit is ^11.3. Check the result with the step 1 script.

Sites without Composer use the tarball package. Follow the vendor update guide to replace the core folder. We did not test this method.

A 3 step ladder: update core to a fixed version, block the installer and lock settings.php with a not safe label, then keep evidence and replace secrets.
Step 1 closes the flaw. Step 2 only holds for a short time. Step 3 applies if there are signs of an attack. Source: SA-CORE-2026-017, the Securing the installer guide, the 11.4.13 release notes, and the Rama Digital podman test.

Check the result: the step 1 script must print "SAFE for CVE-2026-132165". Then open the home page, log in as an admin, and open 1 content page and 1 search page.

If a theme error shows after 11.4.13, do not go back to a vulnerable version. Block the installer, then follow issue #3639497 until 11.4.14 comes out.

Step 4: Temporary, block the installer and lock settings.php

Use this step until the update is done, then keep it. This step does NOT make the site safe. The vendor still asks for the update.

4a. Apache

From the Securing the installer guide, put the Location block in the server or vhost config. In .htaccess, that block causes a 500 error. On RHEL or Rocky, put the file in /etc/httpd/conf.d/.

# Apache on Debian or Ubuntu. Put it in the server config, not in .htaccess.
printf '<Location "/core/install.php">\n    Require all denied\n</Location>\n' | sudo tee /etc/apache2/conf-available/block-installer.conf
sudo a2enconf block-installer
sudo apachectl configtest && sudo apachectl graceful
# Make root the owner of the sites/default folder and settings.php, then make them read-only.
# The sites/default/files folder stays with the web user.
sudo chown root:root /var/www/site/web/sites/default /var/www/site/web/sites/default/settings.php
sudo chmod 555 /var/www/site/web/sites/default
sudo chmod 444 /var/www/site/web/sites/default/settings.php
Terminal: a Location block denies /core/install.php in Apache, then settings.php and sites/default belong to root and are read-only. From outside, 3 URLs answer 403.
This step holds the known paths. This step does not close the flaw. Source: Rama Digital test in podman with the official drupal 11.4.12 and 11.4.13 images (Apache and php-fpm), nginx 1.30.7, and dummy data, 25 November 2026.

4b. nginx

Use ^~, not the = sign. Our test shows that the = sign leaves /core/install.php/check open. If the site has both an http and an https server block, add it to both.

# nginx: add this block inside the server block of the site
location ^~ /core/install.php {
    return 404;
}
# Then test the config and reload nginx
sudo nginx -t && sudo nginx -s reload
Terminal: a location ^~ /core/install.php block with return 404 in nginx, nginx -t succeeds, then from outside 3 installer URLs answer 404 and the script prints CLOSED.
The official nginx:1.30.7 in front of php-fpm from the drupal:11.4.12-fpm image. With the = sign, the third URL still answered 200 in our test. Source: Rama Digital test in podman with the official drupal 11.4.12 and 11.4.13 images (Apache and php-fpm), nginx 1.30.7, and dummy data, 25 November 2026.

4c. Shared hosting and file removal

  • With no access to the server config, the vendor gives a <Files "install.php"> block with Require all denied in .htaccess. Composer scaffold overwrites .htaccess, so use an append mapping in drupal-scaffold.
  • Another vendor option: remove web/core/install.php through the post-install-cmd and post-update-cmd scripts in composer.json. Each core update brings that file back.
  • Do not block update.php with this rule. That is a different file. The drush site:install command also does not use install.php.

We tested file removal, not the Composer scripts or the .htaccess block.

Check the result: run step 2 again from outside the office. All 3 URLs must answer 403 or 404. The permissions script must print "read-only for www-data".

The site stays vulnerable until step 3 is done.

Step 5: Look for takeover signs in logs, files, and accounts

The update closes the flaw, but it does not undo an attack that already happened. The vendor gives no attack signs. The signs in this script are Rama Digital analysis from how the installer works and the Drupal file layout.

Save this script as check-signs-drupal.sh. The script reads the access logs, the change time of settings.php, the files folder, and the admin accounts through Drush. The script changes no files.

#!/usr/bin/env bash
# Look for signs of Drupal installer abuse (CVE-2026-132165). Rama Digital analysis.
# The vendor gives no IoC. The signs in this script come from how the installer works and the Drupal file layout.
# Use: bash check-signs-drupal.sh /var/www/site /var/log/apache2/access.log*
#   or: bash check-signs-drupal.sh /var/www/site /var/log/nginx/access.log*     (.gz logs are also read)
# Logs must use the combined format (Apache and nginx default). The script only reads. It changes no file.
# If vendor/bin/drush exists, the script reads admin accounts with drush, as the owner of the files folder.
# Exit code: 0 no strong or medium sign, 1 signs found, 2 CANNOT CONFIRM.
set -u
export LC_ALL=C
SINCE=1794960000   # 2026-11-18 00:00 UTC, the advisory date
clean() { local x=${1//[![:print:]]/}; printf '%s' "${x:0:90}"; }
fail() { echo "Result : CANNOT CONFIRM. $1"; exit 2; }
when() { date -u -d "@$1" '+%Y-%m-%d %H:%M UTC'; }

[ $# -ge 1 ] || fail "Give the Drupal project folder, then the access log files."
d=${1%/}; shift
s=""
for x in web/sites/default docroot/sites/default html/sites/default sites/default; do
  [ -d "$d/$x" ] && { s=$d/$x; break; }
done
[ -n "$s" ] || fail "Folder sites/default does not exist in $(clean "$d")."
strong=0 medium=0

# 1. Access log: POST to install.php with code 200 or 302 = strong. GET = weak (usually a scanner).
if [ $# -eq 0 ]; then
  echo "Log    : no log file. The log part is skipped."
else
  found=$(for f in "$@"; do [ -r "$f" ] && zcat -f -- "$f"; done 2>/dev/null | awk -F'"' '
    index($2, "install.php") {
      split($2, r, " "); split($3, k, " "); split($1, a, " ")
      if (r[1] == "POST" && (k[1] == "200" || k[1] == "302")) { n++; if (n <= 5) printf "STRONG %s %s %s %s\n", substr(a[4], 2), a[1], k[1], substr(r[2], 1, 40) }
      else if (r[1] == "GET" || r[1] == "HEAD") { g++; ip[a[1]]++ }
    }
    END { printf "POST %d\nGET %d %d\n", n, g, length(ip) }')
  for f in "$@"; do [ -r "$f" ] || echo "Log    : $(clean "$f") is not readable."; done
  while read -r kind a b c e; do
    case $kind in
      STRONG) printf 'STRONG : %s %-15s %s POST %s\n' "$a" "$b" "$c" "$(clean "$e")" ;;
      POST) echo "Log    : $a POST to install.php with code 200 or 302"; strong=$((strong + a)) ;;
      GET) echo "Log    : $a GET to install.php from $b addresses (weak, usually a scanner)" ;;
    esac
  done <<< "$found"
fi

# 2. settings.php changed after the advisory date.
if [ -f "$s/settings.php" ]; then
  m=$(stat -c %Y -- "$s/settings.php")
  if (( m >= SINCE )); then echo "STRONG : settings.php changed $(when "$m"). Compare with the team deploy schedule."; strong=$((strong + 1))
  else echo "File   : settings.php last changed $(when "$m")"; fi
fi

# 3. Files folder: the Drupal protection .htaccess must exist. PHP files must not exist (the Twig cache in files/php is excluded).
f=$s/files
if [ -d "$f" ]; then
  if ! grep -qsF 'Drupal_Security_Do_Not_Remove_See_SA_2006_006' "$f/.htaccess"; then
    echo "MEDIUM : the Drupal protection files/.htaccess is missing or changed"; medium=$((medium + 1))
  fi
  while IFS= read -r -d '' x; do
    echo "MEDIUM : PHP file at $(clean "${x#"$s"/}"), $(when "$(stat -c %Y -- "$x")")"; medium=$((medium + 1))
  done < <(find "$f" -path "$f/php" -prune -o -type f \( -iname '*.php' -o -iname '*.phtml' -o -iname '*.phar' \) -print0 2>/dev/null)
fi

# 4. Admin accounts: made or changed after the advisory date.
dr=$d/vendor/bin/drush
if [ -x "$dr" ]; then
  owner=$(stat -c %U -- "${f:-$s}")
  run=("$dr"); [ "$EUID" -eq 0 ] && [ "$owner" != root ] && run=(runuser -u "$owner" -- "$dr")
  accounts=$("${run[@]}" --root="${s%/sites/default}" php:eval '
    $r = array_keys(array_filter(\Drupal\user\Entity\Role::loadMultiple(), fn($x) => $x->isAdmin()));
    $ids = $r ? \Drupal::entityQuery("user")->accessCheck(FALSE)->condition("roles", $r, "IN")->execute() : [];
    $ids[1] = 1;
    foreach (\Drupal\user\Entity\User::loadMultiple($ids) as $u) {
      printf("%d %s %d %d\n", $u->id(), preg_replace("/[^A-Za-z0-9._@-]/", "_", $u->getAccountName()), $u->getCreatedTime(), $u->getChangedTime());
    }' 2>/dev/null | grep -E '^[0-9]+ [A-Za-z0-9._@_-]+ [0-9]+ [0-9]+$') || accounts=""
  if [ -z "$accounts" ]; then echo "Account: drush cannot read the accounts. Check the admin accounts at /admin/people."; fi
  while read -r uid name made changed; do
    [ -n "${uid:-}" ] || continue
    if (( made >= SINCE )); then echo "MEDIUM : new admin uid $uid $(clean "$name"), made $(when "$made")"; medium=$((medium + 1))
    elif (( changed >= SINCE )); then echo "MEDIUM : admin uid $uid $(clean "$name") changed $(when "$changed")"; medium=$((medium + 1))
    else echo "Account: admin uid $uid $(clean "$name"), no change since 18 November"; fi
  done <<< "$accounts"
else
  echo "Account: vendor/bin/drush is missing. Check the admin accounts at /admin/people."
fi

if (( strong > 0 )); then
  echo "Result : STRONG SIGN. Treat the site as taken over. Keep the evidence, then follow the response steps."; exit 1
elif (( medium > 0 )); then
  echo "Result : CHECK. $medium medium signs found. Compare with the team work notes."; exit 1
fi
echo "Result : no strong or medium sign. A clean result is not proof of safety."; exit 0
# The script only reads. Run it on the Drupal server.
# Apache
sudo bash check-signs-drupal.sh /var/www/site /var/log/apache2/access.log*
# nginx
sudo bash check-signs-drupal.sh /var/www/site /var/log/nginx/access.log*
Terminal: the signs script finds 1 POST to /core/install.php with code 302, 21 GETs from 4 addresses, 1 PHP file in the files folder, and 1 new admin. Result STRONG SIGN.
The logs, the PHP file, and the admin account are dummy data. IP addresses use a documentation block. Source: Rama Digital test in podman with the official drupal 11.4.12 and 11.4.13 images (Apache and php-fpm), nginx 1.30.7, and dummy data, 25 November 2026.

What each sign means

  • STRONG: a POST to the installer with code 200 or 302. A normal scanner only sends GET.
  • STRONG: settings.php changed after 18 November with no team deploy.
  • MEDIUM: a new admin, a PHP file in the files folder, or a missing protective .htaccess in that folder.
  • Weak: a GET to the installer from an unknown address. Record the count, but this is not proof of an attack.
3 levels of signs: a POST to /core/install.php with status 200 or 302 (strong), a new admin or a changed user 1 email (medium), and a GET from an unknown IP (weak).
Red: the strongest sign. Amber: match it with team work. Grey: usually a scanner. Bottom box: a clean result is not proof of safety. Source: Rama Digital analysis and the Rama Digital podman test.

Script limit: logs rotate and attackers can remove traces. So a clean result does not prove that the site is clean.

Check the result: each strong or medium sign must match team work. A sign that nobody knows is an incident. Follow this order:

  1. Block the installer with step 4. Do not remove files or accounts yet.
  2. Keep the access logs, a database dump, and a copy of the site folder as evidence.
  3. Update core with step 3.
  4. Replace the database password, the hash_salt in settings.php, and the passwords of all admins.
  5. Look for new modules, themes, and PHP files. Compare the code with Git or with the official release.
  6. If the site was reinstalled, restore a clean backup from before the attack, then update.

Example: 1 morning of response for 2 Drupal sites

This simulation uses dummy data. The site names, times, and results are not customer data.

Time (WIB)Dummy siteWhat was checkedResultAction
08.00campus-portal (11.4.12, Apache)Steps 1 and 2VULNERABLE, DANGER, 3 URLs OPENBlock the installer and lock permissions at 08.20
08.30campus-portalStep 51 POST 302 to the installer on 20 NovemberKeep evidence, start incident response
09.30campus-portalStep 3Update to 11.4.13Check again: SAFE, home page works
10.30ngo-news (10.6.21, nginx)Steps 1, 2, and 5VULNERABLE, 3 URLs 404, no signsUpdate to 10.6.22, check again tomorrow

Lessons from this simulation: sites with an open installer come first. Step 4 holds for a short time, but the update is still necessary that day. One unknown POST means that all site secrets must be replaced.

Who does the work

The server admin holds the web server and file permissions. The Drupal developer holds Composer and the test after the update. The site owner or the security team decides the incident response.

Rama Digital recommendation: record each self-hosted CMS, its version, and its server owner. Other flaws in the server and CMS layers are in the nginx flaw CVE-2026-123007 and the WordPress upgrade flaw CVE-2026-119977.

Checklist for today

  1. List all Drupal sites. Owner: the technical team. Evidence: a list of sites, versions, and servers.
  2. Check the version with step 1. Owner: the server admin. Evidence: the script output.
  3. Check permissions and exposure with step 2. Owner: the server admin. Evidence: the script output from the server and from outside the office.
  4. Block the installer and lock permissions with step 4. Owner: the server admin. Evidence: the step 2 output after the change.
  5. Update core with step 3. Owner: the Drupal developer. Evidence: the step 1 output and a home page test.
  6. Run step 5. Owner: the server admin. Evidence: the signs script output.
  7. Replace secrets if there are signs. Owner: the site owner. Evidence: a list of the replaced secrets.

Questions and answers

Our site is on 11.4.13. Do we still need to block the installer?

Yes. The vendor recommends securing the installer after the install, in addition to the update. The block does not affect the site, because drush site:install does not use install.php.

Does blocking install.php alone make the site safe?

No. The block holds the known paths, but it does not close the flaw. The update to 11.4.13, 11.3.22, or 10.6.22 is still necessary.

Why must we check 3 URLs?

On default Apache, /install.php redirects to /core/install.php. An extra path such as /core/install.php/check passes an nginx rule with the = sign. Our test found code 200 on that path.

Is Drupal 7 affected?

This advisory does not name Drupal 7. But Drupal 7 has been EOL since January 2025 and gets no security patches. Plan a migration.

This flaw has no CVSS score yet. Is it still urgent?

Yes. The vendor gives it 20/25, real attacks have happened since 19 November, and CISA KEV added it on 24 November.

Our site is on shared hosting with no root access. What can we do?

Update core through Composer or the hosting panel. Add the Files block to .htaccess as the vendor guide shows. Ask the hosting provider to make sure that the PHP user cannot change settings.php.

We use Drupal Steward. Do we still need to update?

Yes. From the vendor, Steward holds the known attack vectors, but the site must still update.

Does a clean signs check prove that the site is safe?

No. Logs rotate, and attackers can remove traces. The update and the installer block are still necessary.

Next step

These limits still apply: step 4 does not make the site safe, and the update does not undo access that was already used. If your site shows signs in step 5, or you need help to audit and fix a web application, use Vibe Code Rescue. For 1 urgent problem today, book a 30 minute session.

Sources