
Table of contents
22
By Salman Khan, OSCP+, Founder of XHack, SRT (Synack Red Team member)
Read this in 30 seconds: CVE-2026-132165 lets an unauthenticated attacker reopen Drupal’s installer on a live site, reinstall it and, in some setups, run code. It was exploited about a day after the fix, and a second installer flaw a week later means the first patch alone is not enough.
- Exploited fast. Drupal fixed CVE-2026-132165 on 18 November 2026 and received a report of exploitation on live sites from 19:00 UTC on 19 November. CISA added it to KEV on 24 November with a 27 November deadline and flagged it for forensic triage.
- The first fix was not the last. SA-CORE-2026-019 (CVE-2026-136716) followed on 25 November because some sites in unusual or incomplete install states stayed vulnerable. Safe versions are 10.6.23, 11.3.23 and 11.4.14, plus running update.php.
- The fastest protection is one web server rule. Blocking
/core/install.phpstops both attacks, and Drupal’s own guide gives the Apache, Nginx and .htaccess lines.- Updating does not clean a hacked site. In Drupal’s testing, a backdoor, a changed hash_salt and an attacker’s administrator account all survived the update.
- An AI scanner found it first. Drupal credits the original discovery to Anthropic’s OSS Scanner. Human researchers found it independently and published the name Fail2Install.
CVE-2026-132165 is a reminder that “patched” is a state you check, not a date you remember. Drupal shipped a fix on 18 November, attackers used the bug the next day, and a week later Drupal said some sites that had updated were still open. The sites that were safe all along had done one boring thing: blocked the installer after installing.
This article covers what CVE-2026-132165 is, how the attack works at a level that helps defenders, why CVE-2026-136716 had to follow it, and how to check whether your site was hit. It includes a small checker script, tested against local mock sites and a synthetic log, that sends only GET requests.

Why an Installer Is Still Sitting on Your Live Site
Every Drupal site ships the file that built it, and most leave it reachable. Drupal core includes core/install.php, a web installer you need exactly once. On an installed site, it is supposed to detect the existing database and refuse to run.
The Cloud Security Alliance’s research note on the case explains why so many sites leave it exposed: Composer puts the file back every time it installs or updates core. Drupal’s own documentation has said for years that you should block or remove the installer once a site is live, and the 2026 advisories turned that advice into the main defence.
We saw the same shape earlier this month with CVE-2026-119977 in WordPress Core, where the risk sat in the upgrade window. Content management systems carry setup and upgrade code on production servers, and attackers keep finding ways to reach it.
What CVE-2026-132165 Is, in Drupal’s Words
Drupal’s advisory SA-CORE-2026-017 describes CVE-2026-132165 in four sentences. Under specific conditions, an attacker can use the installer to attempt to reinstall Drupal, which can lead to site takeover or remote code execution. Some, but not all, exploit paths are mitigated if the web server cannot write to or change permissions on settings.php. The advisory was later updated to say the Security Team received a report of exploitation on live sites as early as 19 November 2026 at 19:00 UTC.
The key facts, from the Drupal advisory, the NVD record and the CISA KEV JSON:
- Affected: Drupal core before 10.6.22, 11.0.0 to before 11.3.22, and 11.4.0 to before 11.4.13. Drupal 11.2.x, 10.5.x and older, and Drupal 8 and 9, are end-of-life with no fix.
- Fixed: 10.6.22, 11.3.22 and 11.4.13, released 18 November 2026. These do not cover the follow-up flaw.
- Drupal risk: Highly critical, 20 out of 25, with access complexity rated Complex.
- Exploited: yes. CISA added CVE-2026-132165 to KEV on 24 November, due 27 November, with forensic triage set to Yes.
- Discovered by: Anthropic’s OSS Scanner, listed as ANT-2026-GMRPK0BU, with Lee Rowlands of the Drupal Security Team and four others credited in the report.
One CVE, three severity readings
The sources do not agree on how hard CVE-2026-132165 is to exploit. NVD scores it 9.8 with low attack complexity. CISA’s ADP entry scores it 8.1 with high complexity, which matches Drupal’s own “AC:Complex”. The weakness differs too: NVD lists CWE-306, Missing Authentication for Critical Function, while the KEV entry lists CWE-636, Not Failing Securely.

The disagreement matters less than it looks. Every source gives the same fixed versions, and complexity describes the attacker’s effort, not your exposure. CISA’s own SSVC entry calls the technical impact total and the exploitation active.
How CVE-2026-132165 Works: a Race Against the Database
The installer asks the database whether Drupal is installed several times per request, and in affected versions an early failure meant “not installed”. This section summarises the public analysis by StepSecurity and the Cloud Security Alliance, not Drupal’s advisory, which gives no technical detail. I am keeping it to what a defender needs.
StepSecurity’s write-up points to a comment in the installer code: “Do not trigger an error if the database query fails, since the database might not be set up yet.” The check that does stop on a database error runs later. If an attacker can make the database refuse the early connections and accept the later one within one request, the installer decides the site is new and shows its setup forms on a live site.
From there, the installer’s database form writes whatever settings it receives to settings.php. That lets an attacker point the live site at a database they control and create the site’s administrator account. Public analysis describes further steps to running code on the server, which I am not reproducing here.
Making the database fail is the noisy part. According to StepSecurity, the attack exhausts database connection slots or the server’s outgoing ports with a burst of requests. In their own lab, a 20-second flood logged thousands of database “too many clients” errors and 15,490 HTTP 500 responses. That noise is the best detection signal you have, and the log check below looks for it.
What the fix changed
StepSecurity reports that the fix is one commit to core/includes/install.core.inc that makes four changes:
- A database error now stops the installer instead of meaning “empty database”.
- A finished installation cannot be resumed.
- Only the browser session that started an installation can continue it.
- The installer no longer changes permissions on
settings.php.
StepSecurity also found that a separate .htaccess rule, unchanged in the fixed releases, can still let a planted PHP file in a code directory run. The fix closes the way in through the installer; it does not stop code that is already on disk. Keep code directories read-only for the web server user.
The Sequel: CVE-2026-136716 and Why 18 November Was Not Enough
Seven days after the first fix, Drupal published SA-CORE-2026-019 because some sites were still open. CVE-2026-136716 is rated Highly critical, 21 out of 25, with access complexity Basic, one step more severe than CVE-2026-132165. The advisory says certain sites in unusual or incomplete install states remained vulnerable to takeover after SA-CORE-2026-017, including production sites.
Two sentences from the SA-CORE-2026-019 advisory change how you should treat the first fix:
- It is not visible in the user interface whether a site is in the vulnerable state, and sites that are already compromised may no longer be in it.
- Any site that left its installer reachable after SA-CORE-2026-017 may still have been compromised.
The fix for CVE-2026-136716 is 10.6.23, 11.3.23 or 11.4.14, and an update hook has to run. Drupal’s compromise guide names it: system_post_update_mark_installation_finished repairs sites in the vulnerable state. A code deploy that skips drush updatedb leaves the database exactly as it was.
CISA added CVE-2026-136716 to KEV on 27 November, due 30 November, also with forensic triage set to Yes. Drupal says it is being exploited in the wild.
Exploitation of CVE-2026-132165: What Is Known
Exploitation is confirmed, but almost nothing about the attackers is public. Here is what the primary sources say, and what they leave out.
| Question | Answer | Source |
|---|---|---|
| Is CVE-2026-132165 exploited? | Yes, on live sites from 19 November 2026, 19:00 UTC | Drupal SA-CORE-2026-017 |
| Is CVE-2026-136716 exploited? | Yes, “being exploited in the wild” | Drupal SA-CORE-2026-019 |
| Who is behind it? | Not published | none |
| How many sites were hit? | Not published | none |
| Ransomware use? | “Unknown” for both | CISA KEV JSON |
| Published indicators? | No IP list; Drupal gives behavioural checks instead | Drupal compromise guide |
The timing is the striking part. Exploitation began about a day after the fix shipped and, according to StepSecurity, five days before the public exploitation write-up on 24 November. The CSA note puts it carefully: this is an early data point on AI-driven discovery, not proof of a new timeline, and public sources do not show how the attackers built their exploit.
Both advisories say sites using Drupal Steward’s recommended mitigations were protected against the known attack vectors for CVE-2026-132165 and CVE-2026-136716, and should still update.
Are You Exposed to CVE-2026-132165?
You are exposed if the installer answered on the internet at any time since 18 November. The conditions, from the advisories and the public analysis:
- The installer is reachable. If
/core/install.php,/install.phpand/core/install.php/fooall return 403 or 404, you were protected. A 200, even one that says “Drupal already installed”, means the installer can run. - You run an affected version. Anything below 10.6.23, 11.3.23 or 11.4.14 is open to at least one of the two flaws.
- You run end-of-life Drupal. Drupal 8.9, 9, 10.5.x and 11.2.x get no fix. Blocking the installer is your only protection.
- Your site uses MySQL or PostgreSQL. The public write-up demonstrated the full chain on Drupal’s official Docker images with both.
Fix It in This Order
Order matters, because the update changes the evidence you need. CISA flagged both CVEs for forensic triage, and Drupal’s guide says the database update rewrites install_task and install_time.
- Preserve evidence. Copy web server and CDN access logs, the database and the file tree somewhere safe. Some hosts keep logs for only a few days.
- Block the installer now. This closes both flaws faster than any update.
- Run the compromise checks in the next section, before you update.
- Update to 10.6.23, 11.3.23 or 11.4.14, then run
drush updatedbor/update.php. Write down the time you ran it. - Set the user 1 email address to one you control and consider resetting its password.
- Keep code directories read-only for the web server user, and keep the installer blocked permanently.
Drupal’s guide to securing the installer gives these rules. On Apache, in the server configuration rather than .htaccess:
<Location "/core/install.php">
Require all denied
</Location>
On Nginx, inside the HTTPS server block. Drupal warns against an exact-match location, because some configurations would still run /core/install.php/foo:
location ^~ /core/install.php {
return 404;
}
Then confirm all three URLs end in 403 or 404:
curl -I https://example.com/core/install.php
curl -IL https://example.com/install.php
curl -I https://example.com/core/install.php/foo
Check Whether CVE-2026-132165 Was Used Against You
Drupal published a full compromise guide, and its strongest signals are installer requests in your logs and changes to user 1. I condensed it into five places to look, and wrote a small script for the two checks that are easy to automate.

The checks from Drupal’s guide, run from your project root before updating:
drush user:information --uid=1
drush state:get install_task
drush state:get install_session_token
drush php-eval "var_dump(date('Y-m-d\TH:i:s', (int) \Drupal::state()->get('install_time')))"
Drupal says an install_task other than done means the site is vulnerable now, while done proves nothing because a successful attack also sets it. A non-empty install_session_token on a site nobody is installing is a strong sign of an interrupted attack. A recent install_time on an old site is suspicious unless it matches your update.
A checker you can run
drupal_installer_check.py does two things, using only Python’s standard library. probe sends GET requests to the three URLs Drupal says to test and reads the page title. logs summarises installer requests by method, status and size, applies Drupal’s red flags, and looks for minutes with 100 or more HTTP 500 responses, the database-exhaustion signature.
I tested probe against three local mock sites: one blocked, one installed with the installer reachable, one with the installer running. It reported all three URLs blocked on the first, and 3 of 3 reachable on the other two.

I tested logs on a synthetic access log of 6,317 lines with background scanner noise and one planted attack pattern. It flagged 5 requests, one address with 13 installer requests inside five minutes, and one minute with 239 HTTP 500 responses, and it did not flag any of the scanner noise. Five unit tests cover both modes.

The script narrows the search; it does not clear a site. If anything looks wrong, follow Drupal’s “Your Drupal site got hacked” guidance: take the site offline, rebuild code from a trusted source, restore a database from before the first suspicious request, and rotate every secret.
An AI Found It, and Attackers Moved in a Day
CVE-2026-132165 is one of the first exploited bugs whose discovery Drupal credits to an AI scanner. The advisory names Anthropic’s OSS Scanner. Human researchers found it independently and published the Fail2Install write-up on 24 November.
The CSA note makes the measured point: an automated AI report, independent human rediscovery, and exploitation within roughly a day of the fix, all before any public technical write-up. It is one case, not a trend, but it narrows the comfortable gap between a patch and an exploit that many teams still plan around.
The practical lesson is one the CSA note makes directly. Treat “patched” as a verified state. Here that means the right version, the database update run, the installer blocked, and the three test URLs checked from outside.
How XHack Reads CVE-2026-132165
The installer bug is exactly the kind of exposure an outside-in test catches early: a file that should not answer, answering on a production site. That is the surface XHack works from.
XHack’s AI agent can check every public Drupal site you own for a reachable installer with GET-only checks in the permission mode you choose, and it reproduces anything before it logs it as a finding. For a whole estate, XHack’s Programs keep the list of domains, and background recon monitoring tells you when a new site or file appears, which is how a forgotten staging Drupal usually turns up.
For an assessed view rather than a scan, our AI VAPT services pair the agent with human testers who confirm what is real and write it up with evidence. A pentest report supports your compliance work; it does not certify anything.
XHack does not store your data, and your agent chats and session data stay on your own computer, where you can delete them. Individual plans start at $20 a month with a 7-day free trial, and managed testing starts from $2,500.
FAQ: CVE-2026-132165 Questions Answered
What is CVE-2026-132165?
CVE-2026-132165 is a flaw in Drupal core’s installer, core/install.php, published as SA-CORE-2026-017 on 18 November 2026 and nicknamed Fail2Install. Under specific conditions, an unauthenticated attacker can make the installer run on a live site, reinstall Drupal, take the site over and, in some configurations, run code on the server.
Is CVE-2026-132165 being exploited?
Yes. Drupal received a report of exploitation on live sites from 19 November 2026 at 19:00 UTC, and CISA added CVE-2026-132165 to its Known Exploited Vulnerabilities catalog on 24 November with a 27 November deadline. The follow-up flaw, CVE-2026-136716, is also exploited and was added to KEV on 27 November.
Which Drupal versions fix CVE-2026-132165?
Drupal 10.6.22, 11.3.22 and 11.4.13 fix CVE-2026-132165, but they do not fix CVE-2026-136716. Install 10.6.23, 11.3.23 or 11.4.14 and run the database update. Drupal 8, 9, 10.5.x and 11.2.x are end-of-life, so block the installer there.
Does blocking install.php stop CVE-2026-132165?
Yes, and it is the fastest protection. Drupal says that if you have already secured the installer, you are not vulnerable to CVE-2026-136716, and blocking it removes the entry point for CVE-2026-132165 too. Check that /core/install.php, /install.php and /core/install.php/foo all return 403 or 404.
How do I know if CVE-2026-132165 was used on my site?
Look for installer POST requests answered with a redirect, large installer pages and bursts of installer requests in your logs. Then check user 1, install_time, install_task and install_session_token before updating. Drupal’s compromise guide lists every check, and updating does not remove an attacker’s backdoor or accounts.
Who discovered CVE-2026-132165?
Drupal credits the original discovery of CVE-2026-132165 to Anthropic’s OSS Scanner, an AI-driven tool that scans open-source projects. A separate research team found it independently and published the Fail2Install write-up, and Drupal’s Security Team coordinated and fixed it.
The Bottom Line
CVE-2026-132165 was exploited about a day after Drupal fixed it, and CVE-2026-136716 showed a week later that the first fix did not cover every site. The sites that never had to worry were the ones that blocked install.php after installing.
So do the boring thing today. Save your logs, block the installer, run Drupal’s checks, then update to 10.6.23, 11.3.23 or 11.4.14 and run update.php. If anything looks wrong, rebuild rather than patch.
Sources
Categories
Related articles


