Hongdam หงส์ดำLINE

Security · · 5 minutes to read

Drupal's install.php flaw is exploited; an exact-match block let /install.php/foo through

ช่องโหว่ install.php ของ Drupal ถูกใช้โจมตีจริงแล้ว และกฎบล็อกแบบตรงตัวยังปล่อย /install.php/foo ผ่าน

CISA lists the Drupal installer flaw as exploited, deadline 27 November. Drupal 11.4.13 changes four things in the installer. On Apache, a rule matching only the exact path let /core/install.php/foo through.

Drupal published SA-CORE-2026-017 on 18 November 2026, rated Highly critical, 20 of 25 1. An attacker who reaches /core/install.php, Drupal's setup script, can under some conditions make it run again over a site that is already installed. The result is a site takeover or remote code execution (the attacker runs their own code on your server) 1. The advisory's update says attacks on live sites began by 19 November, 19:00 UTC 1. CISA added CVE-2026-132165 to its Known Exploited Vulnerabilities catalog (the US list of flaws attackers are using) on 24 November, with a due date of 27 November for US federal agencies 23. The advisory credits Anthropic's open-source scanner with finding it 1.

BranchFixed inStatus
Drupal 11.4.x11.4.13supported
Drupal 11.3.x11.3.22supported
Drupal 10.6.x10.6.22supported
Drupal 11.2.x and older, 10.5.x and older, 8, 9no fixend of life

A site on an end-of-life branch gets no patch 1. Blocking the installer, below, is the step that covers it.

The fix changes four things in the installer

We downloaded the 11.4.12 and 11.4.13 release files from Drupal.org and compared them 56. Outside version numbers and bundled libraries, three files in core changed; the installer changes are in core/includes/install.core.inc. The same changes are present in 10.6.22 and 11.3.22 (measured 25 November 2026, by searching each release's copy of that file for the new code).

  1. A failed database check now stops the installer. Before, install_verify_database_ready() caught any error while checking for an existing install and carried on as if the database were empty. The comment said the database "might not be set up yet". Now the error throws, and the installer reports that the configured database could not be verified 6. CISA files the flaw under CWE-636, "not failing securely" 3: the old code treated an error as permission.
  2. A finished install now refuses to restart. The installer reads its last completed task and the install_time value, which Drupal writes when installation finishes. If either says the site is done, it throws AlreadyInstalledException 6.
  3. Only the first browser can continue. The installer now stores a random token in the session of the first browser to reach the full start-up, and a hash of it in the database. A different browser gets "Access denied" 6.
  4. The installer stops changing file permissions on settings.php. Drupal's file check used to try chmod() on settings.php to make it writable whenever the web server owned the file. Every call in the installer now passes auto_fix: FALSE 6. This matches the advisory's note that some attack paths fail when the web server cannot write to or change permissions on settings.php 1.

The other two changed files harden cache classes against PHP object injection, where an attacker feeds the site crafted serialized data that rebuilds objects of their choosing: YamlCacheCollectorDiscovery now refuses to be unserialized, and CacheCollector checks the type of its cache and lock objects before writing 6. The 11.4.13 package also updates the bundled Guzzle HTTP library to 7.16.3, whose changelog lists two security fixes of its own 6.

Block install.php: the prefix and file rules blocked all six forms, the exact-match rule missed one

Drupal's documentation, updated 21 November, says to block the installer once a site is installed, and gives three ways 4. It warns against an exact-match rule in Nginx, because servers that send any URL containing .php/ to PHP will still run /core/install.php/foo 4. The extra part after the file name is called path info, and PHP runs the file with it.

We tested the Apache versions of those rules on 25 November 2026: Apache 2.4.67, the unmodified Drupal 11.4.13 tree with its own .htaccess, AcceptPathInfo On to stand in for a PHP handler, 10 URLs per rule, one request each, 40 in all. A 200 means the installer file was served.

URLNo rule<Location>.htaccess <Files>Exact <LocationMatch>
/core/install.php200403403403
/core/install.php/foo200403403200
/core/install.php?profile=standard200403403403
/core//install.php200403403403
/core/./install.php200403403403
/core/%69nstall.php200403403403
/install.php301301403301
/index.php, /update.php, /core/rebuild.php200200200200

The exact rule, <LocationMatch "^/core/install\.php$">, blocked the plain path and let path info through: the same gap Drupal describes for Nginx 4. <Location "/core/install.php"> caught it, because Apache applies a Location to any URL that starts with the location plus a slash 7. The 301 on /install.php is Drupal's own .htaccess sending visitors to /core/install.php, where the block answers. The site, update.php (database updates) and rebuild.php answered 200 under every rule.

Apache's documentation gives one more reason to prefer a file rule: several URLs can reach the same file, so a URL-based rule should not carry access control alone 7. A <Files "install.php"> rule matches the file whatever URL reached it.

What to run today

Update first, to the release for your branch in the table above 1, and run drush updatedb or /update.php 4. Then block the installer. In Apache's server configuration, for every virtual host that serves the site 4:

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

On shared hosting, add a <Files "install.php"> block with Require all denied to the .htaccess in the web root 4. Composer rewrites that .htaccess on every composer install, so a hand edit disappears; Drupal's page shows the drupal-scaffold append setting that re-adds it each time 4. In Nginx, use the prefix form, location ^~ /core/install.php { return 404; }, not location = 4.

Then check from outside:

curl -sI https://example.com/core/install.php     | head -1
curl -sIL https://example.com/install.php         | grep HTTP
curl -sI https://example.com/core/install.php/foo | head -1

All three should end in 403 or 404 4. A 200 on any of them means the installer still answers.

CISA marks this entry for forensic triage 3. A site that was reachable and unpatched after 19 November has a reason to look for signs of a reinstall: a changed settings.php, admin accounts nobody made, or a fresh install_time value in the key_value table.

Sources

  1. Drupal core - Highly critical - Remote code execution - SA-CORE-2026-017 drupal.org
  2. CISA Adds Three Known Exploited Vulnerabilities to Catalog (24 November 2026) cisa.gov
  3. CISA Known Exploited Vulnerabilities catalog (JSON feed) cisa.gov
  4. Securing the installer (install.php) | Drupal.org drupal.org
  5. drupal-11.4.12.tar.gz (Drupal.org release files) ftp.drupal.org
  6. drupal-11.4.13.tar.gz (Drupal.org release files) ftp.drupal.org
  7. core - Apache HTTP Server Version 2.4 (Location directive) httpd.apache.org

Hongdam Studio services on this topic