Every Drupal site ships with a setup script that most owners never think about again. It’s called install.php, it runs once when you build the site, and then it just sits there. As of this week, that forgotten file is the front door for one of the most serious Drupal attacks of the year.
The bug is tracked as CVE-2026-132165. Under the right conditions it lets someone with no account reinstall Drupal on top of a live site, make themselves an administrator, and in some setups run their own code on the server. Drupal fixed it on November 18. Attackers were using it on real sites by the evening of November 19. And the thing that found it in the first place wasn’t a human researcher. It was Anthropic’s automated OSS Scanner.
The short version
- What: a flaw in Drupal core’s installer that can lead to site takeover or remote code execution, no login needed
- Severity: “Highly critical,” 20 out of 25 on Drupal’s scale (raised from 18 after attacks began), CVSS 9.8
- Fixed in: Drupal 11.4.13, 11.3.22 and 10.6.22
- No fix coming: Drupal 11.0 to 11.2, 10.5 and older, plus Drupal 8 and 9
- Exploited since: November 19, 2026 at 19:00 UTC
- Federal deadline: CISA wants US agencies patched by November 27
- Found by: Anthropic’s OSS Scanner, later rediscovered by Searchlight Cyber
Patched on Tuesday, exploited on Wednesday
The timeline is the part that should worry anyone who patches “when we get around to it.” Drupal published advisory SA-CORE-2026-017 on November 18 with no reports of attacks. Roughly 30 hours later, the Drupal Security Team got word that the flaw “was exploited on live sites as early as 2026-11-19 19:00 UTC.” That was five days before any public technical write-up existed, which means somebody reverse engineered the patch on their own and moved fast.
CISA put the bug in its Known Exploited Vulnerabilities catalog on November 24 alongside two other flaws, and gave federal civilian agencies until November 27 to fix it. That’s the Friday after Thanksgiving, so a lot of government IT teams are spending the holiday week on this. The catalog entry also flags it for forensic triage, which means agencies don’t just have to patch. They have to go back through their logs to November 18 and check whether someone already got in.
How a setup script turns into a takeover
Drupal’s own advisory is deliberately vague, but Searchlight Cyber researchers Kevin Gervot and Adam Kues filled in the picture on November 24. They found the same bug independently, only to learn Anthropic’s scanner had already reported it under the ID ANT-2026-GMRPK0BU. Their write-up, nicknamed Fail2Install, explains why “under certain conditions” matters so much here.
Before the installer runs, it checks whether Drupal is already installed. The weakness is in how it handles errors during that check. If the database connection fails and the lookup for an existing install also fails, Drupal assumes the site was never set up. If the next connection then succeeds, the installer happily opens over the live site.
The clever part is forcing those failures on demand. The team first tried EMFILE, the Linux limit on how many files a process can have open, but found it unreliable. On Apache servers they exhausted the database connection pool instead. On PHP-FPM setups they ran the server out of TCP source ports. As they put it, the goal was to see “whether availability failures could become security primitives.” The answer was yes.
Code execution comes from the installer’s SQLite option. It lets you choose where the database file lives without restricting the file extension. Point it at a .php path inside the web root, put PHP code in the site name field, and Drupal writes that code into the file for you. Stock .htaccess rules should block direct requests to it, but a path handling gap in one Apache rewrite rule let the code run anyway.
There are real limits. Searchlight rated remote exploitation as likely on PHP-FPM servers with four virtual CPUs, while two vCPU machines depend more on configuration. Load-balanced setups with several replicas make the race much harder to win. Still, the chain worked against Drupal 8.9, 9, 10 and 11 on Apache or PHP-FPM, with MySQL or PostgreSQL. That covers a lot of the internet.
Which Drupal versions are safe
| Your branch | Update to | Security support |
|---|---|---|
| Drupal 11.4.x | 11.4.13 | Until April 2027 |
| Drupal 11.3.x | 11.3.22 | Until Drupal 11.5.0 lands in December 2026 |
| Drupal 10.6.x | 10.6.22 | Until Drupal 11.5.0 lands in December 2026 |
| Drupal 11.0 to 11.2, 10.5 and older | No patch | End of life. Move to a supported branch |
| Drupal 8 and 9 | No patch | End of life. Block the installer and plan a migration |
The same releases also fix a second, lesser issue, SA-CORE-2026-018 (CVE-2026-132166), a “gadget chain” rated 14 out of 25. On its own it isn’t directly exploitable. It only matters if some other bug lets an attacker feed unsafe input into PHP’s unserialize function.
Heads up before you update: Drupal’s release notes list a regression in these versions that affects the theme registry for some contributed and custom code, including the Search API module. Test on staging if you can. Also, the installer no longer tries to fix settings.php permissions on its own for new installs. It shows an error instead. Existing sites aren’t affected by that change.
What to do today if you run Drupal
Patching is the real fix. But blocking the installer takes two minutes, works on every version including the abandoned ones, and Drupal’s own documentation has always said you should do it after setup. Do both.
1. Block install.php on Apache by adding this near the top of the rewrite section in your web root .htaccess:
RewriteEngine on
RewriteRule ^core/install.php$ - [F,L]2. Or block it on Nginx inside your server block:
location = /core/install.php {
deny all;
return 404;
}One catch Windows Forum readers flagged: Composer’s scaffold plugin can quietly overwrite your .htaccess during core updates. If you put the rule there, check that it survived the upgrade, or move it into your main server config.
3. Update core with Composer and confirm the version:
composer update "drupal/core-*" --with-all-dependencies
drush updb -y && drush cr
drush status --field=drupal-version4. Make settings.php read-only for the web server user. Drupal says this blocks “some (but not all)” exploit paths.
5. Look for signs someone already got in. A patch doesn’t undo a takeover that happened before you applied it. Since attacks started November 19, check at least back to November 18:
- Requests to
/core/install.phpin your access logs, especially bursts of them - Administrator accounts you don’t recognize, or accounts created after November 18
- Unexpected
.phpor SQLite files anywhere under the web root - A sudden change in your site name, or a
settings.phpthat was modified recently
grep "install.php" /var/log/apache2/access.log* | less
find /var/www -newermt "2026-11-18" ( -name "*.php" -o -name "*.sqlite" ) -lsSites on Drupal Steward, the project’s paid web application firewall, are already shielded from the known attack vectors. Drupal still wants them to update in case attackers find another route.
The AI angle cuts both ways
Anthropic launched OSS Scanner in October as a free, opt-in service that keeps scanning enrolled open source projects for security holes. By early November it had disclosed more than 5,000 vulnerabilities across 680 projects. This Drupal bug is the clearest proof yet that it finds things that matter: a pre-authentication takeover in one of the web’s most widely used CMS platforms, sitting in a file that’s been there for years.
It’s also a reminder that faster discovery doesn’t automatically mean safer users. The patch itself became the map. Once a fix is public, anyone can diff the old and new code, and AI tools make that job quicker too. The UK’s NCSC said this month it has seen a “marked rise” in AI-driven hacking since September, and OpenAI recently showed its own pipeline building hundreds of Linux root exploits in a single run. When both the defenders and the attackers have machines doing the reading, the window between “patch available” and “patch required” basically disappears.
There’s also an open question about that 5,000 number. Anthropic hasn’t published a severity breakdown, so it’s hard to tell how many findings look like this one and how many are minor issues maintainers closed or downgraded. That matters for the projects deciding whether to stay enrolled, because every report still needs a human to triage it.
This is Drupal’s third exploited vulnerability of 2026. Attacks on CVE-2026-9082 hit thousands of sites in May, and a highly critical access bypass in the Commerce Core module (CVE-2026-118539) was used against online stores in late October. PHP sites in general have had a rough autumn, too, after the PHP2Shell security release sent hosts scrambling a month ago.
The takeaway for site owners is simple and a bit uncomfortable. Treat a “highly critical” advisory as a same-day job, not a next-sprint ticket. And if a file only runs once in your site’s life, make sure nobody else can run it again.
About this article: GeekBlog covers U.S. technology news, AI, phones, smartwatches and gaming. Every story is written and checked under our Editorial Policy. Spotted a mistake or have a story tip? Contact our editors.

