Drupal installer flaw CVE-2026-136716: what to patch
Drupal's 18 November installer fix left a gap that attackers now use to take over sites. Block install.php, check for compromise, then update to 11.4.14.
By Shaheer Q. · · Updated · 17 min read
On 25 November 2026, Drupal published a second security advisory for its installer in a week. SA-CORE-2026-019, tracked as CVE-2026-136716, says the fix it shipped on 18 November left some sites open to takeover, and it carries one line that changes the priority: "This is being exploited in the wild."
The fixed versions are Drupal 11.4.14, 11.3.23 and 10.6.23. If you updated to 11.4.13, 11.3.22 or 10.6.22 last week, you are not covered. Updating is also not the whole job. Drupal's own order is: block the installer, check for signs of compromise, then update and run the database updates. The rest of this post walks through that order, with the commands from Drupal's documentation.
Two advisories in seven days
The sequence matters, because the two flaws have different fixes and a site can be patched for one and open to the other.
| Date | What happened |
|---|---|
| 16 Nov | Drupal gives advance notice of a core security release and warns that "exploits might be developed within hours or days" |
| 18 Nov | SA-CORE-2026-017 (CVE-2026-132165) is published with fixes in 11.4.13, 11.3.22 and 10.6.22 |
| 19 Nov | Earliest reported attack on the first flaw. Drupal later added to the advisory that it "was exploited on live sites as early as 2026-11-19 19:00 UTC" |
| 24 Nov | CISA adds CVE-2026-132165 to its Known Exploited Vulnerabilities catalog, with a due date of 27 November. Searchlight Cyber publishes a technical write-up of the first flaw under the name Fail2Install |
| 25 Nov | SA-CORE-2026-019 (CVE-2026-136716) is published with fixes in 11.4.14, 11.3.23 and 10.6.23 |
| 27 Nov | CISA adds CVE-2026-136716 to the same catalog, with a due date of 30 November and a forensic triage requirement |
The first advisory described the problem this way: "Under specific conditions, an attacker can use the installer to attempt to reinstall Drupal. This can lead to a site takeover or remote code execution." It credits the discovery to "Anthropic's OSS Scanner, as vulnerability ANT-2026-GMRPK0BU."
The second advisory is about what that fix missed.
What the follow-on flaw is
Drupal's description is short:
SA-CORE-2026-017 recently fixed several vulnerabilities within the Drupal core installer. However, certain sites in unusual or incomplete install states remain vulnerable to site takeover following that advisory, including production sites. It is not apparent in the user interface if a site is in the affected vulnerable state, and sites that are already compromised may no longer be in the vulnerable state.
Three points in that paragraph are worth slowing down for.
It needs no login. Drupal rates the flaw "Highly critical", 21 out of 25 on its own scale, with the string AC:Basic/A:None/CI:All/II:All/E:Exploit/TD:Uncommon. A:None means anonymous users can do it. E:Exploit means an exploit exists in the wild. TD:Uncommon means, in Drupal's definition, "Only uncommon module configurations are exploitable". This is Drupal's own scoring system and not CVSS. Neither CVE had a CVSS score in the CVE record or on NVD when I first checked, on 27 November, and Drupal still publishes none. Update, 29 November: both have CVSS scores now, from other bodies. CISA has added a score of 9.8, "Critical", to the record for CVE-2026-136716, and NVD shows that score. For the first flaw, CVE-2026-132165, NVD has published its own score, also 9.8, while CISA rates the same flaw 8.1. The only difference between the two is attack complexity, which CISA rates high and NVD rates low.
You cannot see the state in the admin interface. Drupal's guide to checking for compromise says: "The vulnerable state does not appear anywhere in the administrative interface. A production site that has worked normally for years can still be affected." The state lives in a stored value called install_task. If it is anything other than done, the installer can be made to run again. Drupal says the specific case behind this advisory "often happens when an installer session is started and then stalls."
An attack hides its own precondition. A completed attack sets install_task to done, so a compromised site looks the same as a healthy one on that check.
What an attacker gets, in Drupal's words: "An attack typically runs the final steps of the installer again. This can replace the username, email address, password, and timezone of user 1." User 1 is the account with every permission. The guide adds that an attacker "may be able to create new administrator accounts", and that "Under some conditions, the installer can change settings.php."
Who is affected
| First flaw (CVE-2026-132165) | Follow-on flaw (CVE-2026-136716) | |
|---|---|---|
| Drupal 11.4.x | Fixed in 11.4.13 | Fixed in 11.4.14 |
| Drupal 11.3.x | Fixed in 11.3.22 | Fixed in 11.3.23 |
| Drupal 10.6.x | Fixed in 10.6.22 | Fixed in 10.6.23 |
| Drupal 11.2.x and below, 10.5.x and below | End-of-life, no fix | End-of-life, no fix |
| Drupal 8 and 9 | End-of-life, no fix | End-of-life, no fix |
For end-of-life versions, Drupal's guidance is: "Upgrade to a supported version. Until then, keep the installer blocked."
Drupal says who was protected all along: "If you have already secured the installer, you are not vulnerable." Its guide counts a site as protected only if requests to install.php were blocked or the file was removed, or if the site used the Drupal Steward mitigations, a paid protection service that some hosts apply. It follows that with: "Even if your site was protected, you must still update."
Everyone else should assume they need to check. Drupal's scope is any site where /core/install.php "was reachable from the internet at any time since November 18, 2026."
What to do, in order
The order below is Drupal's, from its compromise guide. It is not the order most people would pick, and the reason is step 2.
1. Block the installer now
Drupal says to do this "before you do anything else", and that it "closes the vulnerability faster than updating." The securing the installer page gives the rules.
For Apache, in the server configuration and not in .htaccess:
<Location "/core/install.php">
Require all denied
</Location>
For Nginx, inside the HTTPS server block:
location ^~ /core/install.php {
return 404;
}
The Nginx rule is a prefix match on purpose. Drupal's page warns: "Do not use an exact match (location = /core/install.php)." On some configurations any URL containing .php/ goes to PHP, so "an exact match does not block /core/install.php/foo, and the installer still runs."
Test the configuration (apachectl configtest or nginx -t), reload, and then verify from outside:
curl -I https://example.com/core/install.php
curl -IL https://example.com/install.php
curl -I https://example.com/core/install.php/foo
Drupal's rule for reading the result: "All three should end with a 403 or 404 response. If you see 200, the block is not working."
Two things this does not break. Updates use update.php, a separate script, so do not catch it with a broad rule. Drush does not use install.php at all.
2. Check for compromise before you run database updates
This is the step that is easy to get backwards. Drupal's guide says: "Run these checks before you run database updates. The update in Step 3 changes some of the values below." Once the update hook has run, install_task always reads done and one of your best signals is gone.
The checks are in the next section. If you have already updated, they still work, with one difference that is covered there.
3. Update the code
composer update "drupal/core-*" --with-all-dependencies
That is the command from the release pages. Drupal's guide says the code update "also blocks this attack right away, before you run database updates."
The release notes for all three versions carry a second instruction that is easy to miss: "Symfony has issued a security update today that is not included in this release", and "It is recommended that you update Symfony along with this release." They also say Twig was updated "for a number of published CVEs". So let Composer update the dependencies, and run composer self-update as the guide suggests.
4. Run the database updates
Run drush updatedb, or visit /update.php. The advisory is direct about why: "An update hook must run to fix existing production sites in this state." The hook is named system_post_update_mark_installation_finished. In the fix commit it sets install_task to done on sites where it is not, and fills in a missing install time. Write down when you ran it. You will need that time to read your results later.
5. Secure user 1, and keep the installer blocked
The advisory says to "Ensure the user 1 email address is set to something you control, and consider resetting user 1's password." Drupal's guide says to keep the installer blocked permanently. That is the one measure that protected sites through both advisories.
How to check whether you were hit
Drupal's guide runs to many checks. These are the ones it calls the strongest signs, with its commands. Run them from the project root. On a multisite installation, run every check for each site by adding -l and the site name to each Drush command.
Access logs. Search every log since 18 November. Copy them somewhere safe first, since some hosts keep only a few days.
zgrep -hE '"(GET|POST) /core/install\.php' /var/log/nginx/access.log* | awk '{gsub(/"/,"",$6); print $6, $9, $10}' | sort | uniq -c | sort -rn
That summarises installer requests by method, status code and response size. Drupal says finding some is normal, because most sites get constant automated requests for install.php. How to read them:
- 403 or 404 means the request was blocked or the file was not there. Drupal's word for it is "safe".
- 200 with a response of about 2 KB is usually the "Drupal already installed" page. Drupal says a 200 status alone "does not mean your site was compromised."
- Investigate POST requests that return 302 or 303, much larger responses, requests containing
op=orid=, or many installer requests from one address within a few minutes.
User 1 and administrators.
drush user:information --uid=1
drush sql:query "SELECT uid, hostname, FROM_UNIXTIME(timestamp) FROM sessions WHERE uid = 1"
An email address you do not recognise is suspicious, and so is a user 1 password that has stopped working. The account's created date proves nothing, because the attack does not change it. Then look at People in the admin interface, filter by the Administrator role with any status, and look for accounts you do not know.
The install state.
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')))"
install_taskother thandone: Drupal says "your site is vulnerable now."- A value in
install_session_token: an installer session was started and never finished. Drupal says to treat it "as a strong sign". - A recent
install_timeon an old site is suspicious, unless it matches the moment you ran the database update.
None of the three clears a site by itself. Drupal repeats that a result of done and an empty token do not prove a site is safe.
If you have already updated, install_task now tells you nothing. An install_time within a few seconds of your update was set by the update. Drupal says that is not a sign of attack, but it does mean "your site was in the vulnerable state, so complete all the other checks." An install_time between 18 November and your update is suspicious.
Files. A PHP file in the files directory, outside Drupal's own compiled Twig templates, is what Drupal calls "a strong sign of compromise":
find web/sites/*/files -path '*/php/twig/*' -prune -o \( -name '*.php*' -o -name '.htaccess' \) -newermt 2026-11-17 -print
An old backup is the best evidence. If a database backup from before 18 November shows install_task as done and an install time that matches your real install date, Drupal says "your site was never in the vulnerable state."
If you find something
Updating does not fix a compromised site. Drupal's guide is blunt: "Updating and resetting user 1 does not clean up a compromised site. In testing, a backdoor, a changed hash_salt and an attacker's administrator account all remained after both steps."
Its steps are to take the site offline or keep the installer blocked, save copies of the logs, database and files, rebuild the code from a trusted source such as your Git repository, restore the database "from a backup made before the earliest suspicious installer request", and then "Change every secret. This includes database credentials, hash_salt, API keys and all administrator passwords." Italy's national CSIRT makes the same point in its alert of 26 November: the update fixes the vulnerability and does not undo an earlier compromise.
What is known about the attacks
Very little, and almost all of it comes from Drupal.
- Drupal says it is happening. The advisory states the flaw is being exploited, and that "Any site that left its installer remotely accessible following SA-CORE-2026-017 may still have been compromised." It gives no count of sites, no attacker addresses, no file hashes and no start date for attacks on the second flaw.
- Nobody has been named. SecurityWeek wrote on 26 November: "Drupal has not shared any information on the attacks, and it's unclear who is responsible for the exploitation."
- CISA's catalog now lists both flaws. CVE-2026-132165 was added on 24 November. CVE-2026-136716 was not in the feed on the morning of 27 November, but CISA added it later that day, in catalog version 2026.11.27. US federal civilian agencies have until 30 November 2026 to act on it, a three-day window rather than the usual three weeks, and the entry is flagged
"forensicTriage": "Yes", which means affected agencies must also carry out CISA's forensic triage, not just patch. The catalog records the cause as CWE-754, an improper check for unusual or exceptional conditions, and describes it as allowing "an unauthenticated remote attacker to take over a site via the exposed Drupal installer when the site is in one of the affected unusual or incomplete installation states". Ransomware use is listed as "Unknown". Some coverage still blurs the two CVEs. - The only public exploit detail is for the first flaw. Searchlight Cyber's write-up describes forcing temporary database failures to reopen the installer on a live site and reaching code execution from there. I have found no public write-up of how the second flaw is being used.
- The exposure numbers are for the first flaw too. StepSecurity counted "about 31,500 services on affected branches" with Shodan on 26 November. That measures version, and the second flaw depends on install state, so it is not a count of sites exposed to CVE-2026-136716.
What is still unknown
- When attacks on the second flaw began, how Drupal learned of them and how many sites were hit.
- How a production site ends up in the incomplete install state, and how common that is. Drupal rates it uncommon and says only that it often follows a stalled installer session.
- Whether the first flaw's route to code execution is reachable through the second. Drupal describes the second as site takeover and classes it as an access bypass, not remote code execution. An attacker who controls user 1 has a great deal of power either way.
Whether CISA will add CVE-2026-136716 to its catalog.Answered on 27 November: it did, with a 30 November due date and a forensic triage requirement. The catalog entry still adds nothing about the attacks themselves beyond what Drupal's advisory says.
Update, 28 November 2026. I re-checked CISA's feed, which had moved to catalog version 2026.11.27 (released 27 November at 18:03 UTC) and now carries CVE-2026-136716. That is the only thing that has changed: Drupal's advisory, its documentation pages and the press coverage are as they were on 27 November, and nobody has published anything further about how the second flaw is being exploited.
Update, 29 November 2026. The one thing that has moved is the scoring, covered above under "It needs no login". CISA's entry in the CVE record for CVE-2026-136716 now carries a CVSS 3.1 score of 9.8 and CISA's own assessment of the flaw: exploitation "active", "automatable" yes, technical impact "total". Those scores were in the records by the morning of 28 November, and I missed them in that day's check. Drupal's advisory, both documentation pages and CISA's catalog entry say what they said before. Drupal has released no newer security fix than 11.4.14, 11.3.23 and 10.6.23. There is still no public account of how many sites were hit or who is behind the attacks.
I will update this post when Drupal or CISA publishes more about the attacks, or when the advisory changes.
The short version
- What happened: Drupal's 18 November installer fix (CVE-2026-132165) missed sites in an incomplete install state. The follow-on flaw, CVE-2026-136716, lets an anonymous attacker take over such a site, and Drupal says it is being exploited.
- Fixed in: Drupal 11.4.14, 11.3.23 and 10.6.23, released 25 November. Last week's 11.4.13, 11.3.22 and 10.6.22 do not fix it. End-of-life branches get nothing.
- Do first: block
/core/install.phpat the web server and verify withcurlthat it returns 403 or 404, including for/core/install.php/foo. - Then: run Drupal's compromise checks before the database update, update the code with its Symfony and Twig dependencies, and run
drush updatedb. - Not affected: sites that had already blocked or removed the installer. They should still update.
- If the checks find anything: updating does not clean it. Rebuild the code, restore the database from before the first suspicious request, and change every secret.
For another case from this month where the upstream version number alone does not tell you whether a server is safe, see the post on the nginx HTTP/2 bugs.
Frequently asked questions
Which Drupal versions fix CVE-2026-136716?
Drupal 11.4.14, 11.3.23 and 10.6.23, all released on 25 November 2026. The releases from 18 November (11.4.13, 11.3.22 and 10.6.22) fixed the first installer flaw but not this one, and Drupal now marks them insecure. Drupal 11.2.x and below, 10.5.x and below, and Drupal 8 and 9 are end-of-life and get no fix.
Is updating Drupal core enough to fix it?
No. Drupal's advisory says to install the new version and then run update.php, because an update hook has to repair sites that are in the vulnerable state. Drupal also strongly recommends blocking core/install.php at the web server for good. And updating does not clean a site that was already compromised.
How do I know if my Drupal site is in the vulnerable state?
Not from the admin interface, which shows nothing. Drupal's guidance is to run drush state:get install_task before you run database updates. Any result other than done means the site is vulnerable now. A result of done does not prove the site is safe, because a successful attack also sets it to done.
Am I affected if install.php was already blocked?
Drupal says no: if you had already secured the installer, you are not vulnerable. Its guidance counts a site as protected if requests to install.php were blocked or the file was removed, or if the site used the Drupal Steward mitigations. It adds that protected sites must still update.
Is CVE-2026-136716 being exploited?
Yes, according to Drupal. Its advisory says the flaw is being exploited in the wild and that any site that left its installer remotely accessible after the 18 November advisory may have been compromised. Drupal has given no count of affected sites and has not said who is responsible.