Critical Drupal Flaw Lets Anonymous Attackers Reinstall Sites and Take Them Over

The Drupal Security Team has patched a critical remote code execution vulnerability that can let attackers take over vulnerable sites.
Drupal is a content management system (CMS) widely used by large organizations that manage multi-site installations and huge data structures, including government bodies, educational organizations, major research universities, and high-profile enterprise and media organizations.
The vulnerability: CVE-2026-132165
The flaw was discovered by Anthropic’s OSS Scanner, and anonymous users can exploit it to reinstall the Drupal CMS.
According to the Drupal Security Team’s Wednesday advisory:
- Drupal core ships with an install.php file used to install Drupal core.
- Under specific conditions, an attacker can use the installer to try to reinstall Drupal.
- This can lead to site takeover or remote code execution.
- Some exploit paths are blocked if the web server can’t write to or change permissions on settings.php.
Fixed versions
Upgrade to one of the following:
- Drupal 10.6.22
- Drupal 11.3.22
- Drupal 11.4.13
Sites using the paid Drupal Steward Web Application Firewall (WAF) service are already protected against known attack vectors, but should still upgrade in case other attack vectors are found.
If you can’t upgrade right away
Secure the Drupal installer by blocking access to /core/install.php in the web server configuration or in the .htaccess file in the web root.
Second flaw: CVE-2026-132166
On Wednesday, Drupal also fixed a moderately critical gadget chain vulnerability, CVE-2026-132166. Attackers with admin privileges can exploit it to achieve remote code execution, if the application deserializes untrusted data because of another security flaw.
Advance warning
In a Monday advance warning, the Drupal Security Team urged admins to set aside time for core updates, warning that exploits might be developed within hours or days, and that at least one of the vulnerabilities can be exploited by anonymous users.
Drupal: a frequent target
| Date | Vulnerability | Status |
|---|---|---|
| May 2026 | CVE-2026-9082: SQL injection in the database abstraction API (privilege escalation, data access, or RCE) | Actively exploited |
| Recently | CVE-2026-118539: critical access bypass in the Commerce Core module | Exploited in attacks |
| Since November 2021 | 5 Drupal vulnerabilities flagged by CISA as exploited in the wild | 2 also used in ransomware attacks |



