Security
Nov 25, 2026

Is Drupal 7 affected by CVE-2026-132165 or CVE-2026-132166?

Drupal 7 isn't exploitable through either advisory from the November 18, 2026 core release. Here's how we checked the installer and the cache code.

Give me the TL;DR
Is Drupal 7 affected by CVE-2026-132165 or CVE-2026-132166?

Drupal 7 is not affected by SA-CORE-2026-017 (CVE-2026-132165) or SA-CORE-2026-018 (CVE-2026-132166), the two core advisories the Drupal Security Team published on November 18, 2026. The first is a critical remote code execution (RCE) bug in the installer. The second is a "gadget chain" in a caching class, which is a building block an attacker can use if a site has a separate bug. We read the actual fixes, read the matching Drupal 7 code where it existed, and tested a live Drupal 7.103 site under every condition the installer attack depends on. Drupal 7 refused every attempt, and the class the second advisory fixes doesn't exist in Drupal 7 at all.

No action is required for NES (Never-Ending Support) for Drupal 7 customers. Below: what the advisories cover, how we tested Drupal 7 against each one, and where Drupal 7's older design turned out to be the safer one.

What are SA-CORE-2026-017 and SA-CORE-2026-018?

On November 18, 2026, the Drupal Security Team shipped Drupal 10.6.22, 11.3.22 and 11.4.13 with fixes for two core advisories.

SA-CORE-2026-017, tracked as CVE-2026-132165, is the serious one. It's rated critical, 18 out of 25, and it doesn't require an account. Under specific conditions, an attacker can use install.php, the script that sets up a brand new Drupal site, to reinstall a site that's already running. If you can reinstall a site, you can point it at a database you control, and from there you own it. The advisory notes that some exploit paths are blocked if the web server can't write to settings.php.

SA-CORE-2026-018, tracked as CVE-2026-132166, is rated moderately critical, 14 out of 25. It's what security researchers call a "gadget chain." What happens is that PHP can turn a chunk of text back into a live object, and if an attacker ever gets to feed that text in, the objects they create run whatever cleanup code those classes have. A gadget chain is a class whose cleanup code happens to be useful to an attacker. On its own it does nothing. Paired with a separate bug that lets untrusted text reach PHP's unserialize(), it can turn that bug into remote code execution. The advisory says so plainly: this issue is not directly exploitable.

Both advisories list affected versions starting at Drupal 10. Drupal 7 isn't on the list.

Why don't the advisories mention Drupal 7?

Drupal 7 reached end-of-life on January 5, 2025, and it dropped out of the Drupal Security Team's remit the same day. Our Drupal 7 end-of-life timeline post has the background. The team is a volunteer group that covers supported branches, so new core advisories are written for those branches and nothing older.

So when Drupal 7 isn't on the list, all you know is that nobody looked. We do that looking ourselves, and we don't start from the advisory text. Descriptions are written to be vague on purpose so they don't hand attackers a map. We start from the fix itself, the actual lines that changed in Drupal 10, and ask whether Drupal 7 has the same code, the same behavior, and the same path to reach it.

This pair of advisories shows why. Going by the descriptions, you'd guess the installer bug is the one Drupal 7 might share, since Drupal 7 has an installer too. The code says otherwise. Drupal 7's installer makes the "am I already installed?" decision in a way the attack can't get around, and the class the second advisory fixes was written years after Drupal 7 and never existed there.

How we tested Drupal 7 against the installer bug (SA-CORE-2026-017 / CVE-2026-132165)

The upstream fix changes one file, the installer's core. Every time you visit install.php, Drupal has to decide whether this site is already installed. Modern Drupal answers that question by connecting to the database and checking. Before the fix, there were circumstances where that check could come up empty on a site that was very much installed, and the installer would carry on as if the site were new.

We're leaving the specifics out on purpose. The fix is public for anyone who wants to read it, but sites take time to patch, and this post doesn't need to shorten the path for anyone.

Drupal 7 has an installer, and it has to answer the same question. It answers it differently. Here's the relevant check from includes/install.core.inc in 7.103, trimmed to the lines that matter:

$install_state['settings_verified'] = install_verify_settings();

if ($install_state['settings_verified']) {
  // Database works: look up the last completed install task.
  // Stops with "already installed" if it is 'done'.
  $task = install_verify_completed_task();
}
else {
  // Do not install over a configured settings.php.
  if (!empty($GLOBALS['databases']) || !empty($GLOBALS['db_url'])) {
    throw new Exception(install_already_done_error());
  }
}

In plain terms: if the database works, Drupal 7 asks it whether installation finished. If the database doesn't work, Drupal 7 looks at settings.php, sees that a database is configured at all, and refuses to go any further. The modern attack depends on the installer needing a successful database check to recognize an existing site. Drupal 7 only needs to see that someone configured one.

Code reading can miss things, so we tested it too. We installed a fresh copy of Drupal 7.103 (the final community release, which NES builds on), ran it as a normal web server user, and sent anonymous requests to install.php while trying to make it lose track of the fact that it was installed. That covered the conditions the modern attack relies on, plus a couple that go further:

  • We pointed settings.php at a MySQL server that wasn't there, then separately at a SQLite file that couldn't exist. Both times we got "Drupal already installed." A read-only settings.php kept its permissions and its modification time.
  • We removed a required setting from settings.php and left the database connection in place. Same message: "Drupal already installed."
  • We deleted the completed-install marker from the database, which is the deepest we could push it. The installer got past the first check, then died on "Table variable already exists" the moment it tried to create its first table. The administrator account and password were untouched.
  • We forced the marker lookup itself to fail. Same result, one table later.

In none of these did the installer reach the database setup form, modify settings.php, or change an account. The conditions that open the door on unpatched Drupal 10 and 11 are refused on Drupal 7.103.

The fix also includes two hardening changes. One limits who can finish an install that's in progress, and the other changes how the installer handles settings.php. Drupal 7 has neither, and we checked what that means. On a site that's already installed, it means nothing, because the installer never gets that far. On a site that's partway through installation, any visitor can finish it, including setting the admin account. That's been true of Drupal 7 since 2011, it's not what this advisory is about, and it goes away the moment installation completes. We bring it up because the fix includes those changes, and someone will ask whether they matter for Drupal 7.

How we checked Drupal 7 against the gadget chain (SA-CORE-2026-018 / CVE-2026-132166)

The fix for this one is sixteen lines in a single class, CacheCollector. That class keeps a bag of values in memory during a request and writes them to the cache at the end. To do that, it holds two helper objects: one that talks to the cache and one that takes a lock so two requests don't write at once.

That's the gadget. If an attacker can get PHP to rebuild a CacheCollector from text they wrote, they get to choose what those two helper objects are, and the class will use whatever it was handed when it goes to write its cache. The fix checks that both helpers are the real thing and refuses to continue if they aren't.

Drupal 7 doesn't have CacheCollector. It has the class CacheCollector was derived from, DrupalCacheArray in includes/bootstrap.inc, with exactly one core subclass. We read it alongside the modern one, and the gadget the fix closes isn't there. DrupalCacheArray doesn't hold any helper objects. It calls Drupal 7's plain functions, cache_get(), cache_set(), lock_acquire() and lock_release(), with text arguments. There's nothing for an attacker to swap in, so there's nothing for the fix to type-check. The patch has nowhere to land.

Drupal 7 is not affected by SA-CORE-2026-017 or SA-CORE-2026-018

Neither advisory applies to Drupal 7 core. The installer refused every attempt we made to reinstall a working 7.103 site, and the caching class behind the gadget chain was never part of Drupal 7.

NES for Drupal 7 customers: you're covered

Drupal 7 isn't exploitable through SA-CORE-2026-017 or SA-CORE-2026-018, and there's nothing you need to do. There's no patch or configuration change to apply for these two advisories. Keep installing your Drupal 7 security updates from NES as they ship.

One thing worth doing regardless of this advisory, if you haven't already: block web access to install.php on every production site. Drupal's own guide to securing the installer has examples for common web servers. It takes a few minutes, and then the installer isn't something anyone on the internet can poke at. It also would have made the first half of this post unnecessary.

Running Drupal 7 without extended support?

Two core advisories, SA-CORE-2026-017 and SA-CORE-2026-018, came out on November 18, 2026. Neither mentions Drupal 7, and that silence tells you nothing either way. Somebody has to open the fix, open the Drupal 7 code, and work out whether the same door exists. For this release the answer was no, and we can show our work. Next release, the answer might be yes, and the community won't be shipping a Drupal 7 security patch when it is.

That work is what Drupal 7 extended support pays for. We do it for NES customers each time a core advisory lands, as we did for SA-CORE-2026-014 in October and SA-CORE-2026-004 in May. The CVEs we've assessed and fixed are listed in our vulnerability directory.

If you're still on Drupal 7 and are concerned about security, talk to us about NES for Drupal.

‍

Table of Contents
Author
JD Flynn
Sr. Software Engineer
Open Source Insights Delivered Monthly