Vulnerabilities
Drupal flaw lets anyone reinstall your live site
CVE-2026-132165 lets an unauthenticated attacker reinstall a live Drupal site. It is rated critical. The fixed versions and interim mitigations.
Every copy of Drupal core ships with an installer at core/install.php, and that file stays on the server after the site is built. Drupal disclosed on November 18 that, under the right conditions, an attacker with no account can reach that installer on a live site and attempt to reinstall it. The flaw is CVE-2026-132165, published as advisory SA-CORE-2026-017, and Drupal rates it critical with a risk score of 18 out of 25. A successful reinstall can hand the attacker control of the site and, in some setups, code execution on the host.
This affects a very large share of the web, because Drupal runs a lot of government, university and enterprise sites, and the installer is part of core rather than an add-on. There is some good news in the timing: as of November 20 there are no reports of the flaw being used in real attacks, and it is not in the United States Cybersecurity and Infrastructure Security Agency (CISA) Known Exploited Vulnerabilities (KEV) catalog. The advisory does record that a proof-of-concept exploit exists, and Drupal's security team warned that working exploits could appear within hours or days, so this is not a theoretical risk you can sit on. There is also a first behind the fix: Drupal credits Anthropic's open-source-software scanner, an artificial-intelligence (AI) code scanner tracked internally as ANT-2026-GMRPK0BU, with finding the bug, alongside five human maintainers.
How it works
Drupal's installer is the wizard that runs when you first stand up a site: it collects database credentials, writes the main configuration file settings.php, and sets up the first administrator account. Once a site is installed, that wizard is supposed to stay out of the way. The problem CVE-2026-132165 describes is that, under specific conditions, an unauthenticated visitor can reach core/install.php on an already-running site and start the installation flow again.
Drupal's advisory does not publish the exact technique, and it does not describe the precise check that is bypassed, so we will not invent one. What the advisory does state is the shape of the impact: an attacker who can drive the installer against a live site can attempt to reinstall it, which can lead to full site takeover or remote code execution. The reinstall runs with the web server's own privileges, which is why reaching the installer is so serious. If the process can rewrite configuration and point the site at attacker-controlled settings, the attacker inherits the site.
The one mechanical detail Drupal confirms is about file permissions. The advisory notes that some exploit paths are blocked when the web server account cannot write to or change permissions on settings.php. That is a strong hint that at least one path depends on the installer being able to overwrite the configuration file, but Drupal stops short of spelling out the full chain, and so do we. Treat the write permission on settings.php as a control that matters, not as a complete fix.
A second, lower-severity issue shipped in the same release. CVE-2026-132166 is a gadget chain in core rated moderately critical. On its own it does nothing; it is only usable alongside a separate deserialization flaw elsewhere on the site. Patch it as part of the same update, but the installer flaw is the one that needs your attention first.
What the risk is
The reason this flaw scores critical is that it needs no credentials. An anonymous request is enough to reach the installer, and the outcome can be complete control of the site. The risk vector Drupal published rates the attack complexity as "complex," meaning the specific conditions have to line up, and the target distribution as "uncommon," so not every Drupal site is reachable in the same way. That is why the score is 18 out of 25 rather than higher, though the conditions are reachable on real sites, which is why Drupal still rates it critical.
The exploit maturity in that same vector is listed as proof-of-concept, which matches the advisory: a working demonstration exists, but no public exploit code has surfaced and no in-the-wild attacks have been reported as of November 20. Drupal shipped the fix on November 18 and warned that the gap between a proof of concept and real attacks on a flaw like this is usually short.
The AI-scanner discovery is worth a moment because it changes the timeline on both sides. Anthropic's scanner found the bug before any attacker reported using it, which is the whole point of running such tools against open-source code. The flip side is that the same class of automation can shorten the time attackers need to turn an advisory into an exploit, so the old habit of patching Drupal on the next maintenance window is a worse bet than it used to be.
What to do
Update Drupal core to the fixed release for your branch. The fixed versions are:
- Drupal 10.6.x: upgrade to 10.6.22
- Drupal 11.3.x: upgrade to 11.3.22
- Drupal 11.4.x: upgrade to 11.4.13
If you are on an end-of-life branch, there is no fix coming. Drupal 11.0 through 11.2, Drupal 10.5 and older, and Drupal 8 and 9 are all out of support and will not receive a patch for this. Those sites need to migrate to a supported branch, and in the meantime the mitigations below are the only protection available to them.
Two interim mitigations buy time if you cannot patch today. They are stopgaps, not fixes, and Drupal recommends keeping them in place even after you patch. First, block public web access to core/install.php. On Apache this is a Files or FilesMatch rule in the site root .htaccess that denies the request; on Nginx it is a location block that returns 403. After you add the rule, request the path yourself and confirm it returns a 403 response rather than the installer page. Second, make sure the web server account cannot write to settings.php. Set the file to read-only for the web server user, which is good practice on any production Drupal site and is the permission Drupal says blocks some of the exploit paths.
To check whether a site was already reinstalled or tampered with, look for the signs a reinstall would leave. Compare the current settings.php against a known-good copy or your version control, and treat any unexpected change to the database connection details or the hash salt as a red flag. List the administrator accounts and look for any you did not create. Check the site install time and the users table for timestamps that do not match your own deployment history. If any of these look wrong, treat the site as compromised: restore from a clean backup taken before the suspicious change, rotate the database credentials and any API keys the site holds, and force a password reset on all accounts.
The wider lesson
This flaw sits in a component that is needed once and then left reachable forever. Installers, setup scripts and debug endpoints are useful on the first day and become attack surface after that, especially when the only thing stopping them is an internal check that assumes it cannot be tricked. The safer practice is to remove or deny first-run tooling as the last step of a deployment rather than trusting it to refuse to run. A public Drupal site has no reason to serve core/install.php, and blocking it at the web server costs nothing.
If you run Drupal and want a second set of eyes on your configuration and exposure, our web penetration testing work looks for exactly this kind of leftover endpoint, and our attack surface management service finds the internet-facing paths you did not know were reachable. Open the chat and Yaali, our AI agent, will pass your question to the engineer who would do the work.
Sources: Drupal advisory SA-CORE-2026-017, University of Toronto security advisory, Cyber Kendra, Techgenyz, DEV write-up.