Drupal patches critical RCE flaw, exploits may follow fast

The Drupal Security Team fixed a critical remote code execution flaw and warns exploits may appear quickly. How to find and patch your sites.

Drupal RCE: Drupal patches critical RCE, exploits may follow

TL;DR: Drupal's maintainers have shipped a fix for a critical flaw that lets attackers run their own code on a server, and they warn that exploits may appear quickly. Treat it as a patch-this-week job: find every Drupal site you run and update it.

What happened

BleepingComputer reports that the Drupal Security Team issued an update for a severe bug that allows remote code execution. According to the report, a successful attack gives someone control of the site. The Drupal team also cautioned that working exploits could surface soon after the fix became public, which is common once attackers can compare the patched and unpatched code.

The report we reviewed gives no CVE identifier, version numbers or severity score, so we do not quote any here. Take the affected and fixed versions from the official Drupal security advisory, not from a summary. We covered an earlier Drupal issue in Drupal warns that a critical Commerce Core flaw is exploited.

Am I affected?

You are in scope if you run Drupal anywhere: production, staging, a forgotten marketing site, or a container image that bundles it. Start by listing every instance, then compare each one against the versions in the Drupal advisory.

On a single server you can read the version from the site itself. With Drush installed, run drush status. If the site is managed with Composer, run composer show drupal/core from the project directory. Sites installed from a distribution package may be patched by the distribution rather than by a version bump, so check the distribution notice too.

Until you have patched, review your web server logs for unusual requests to Drupal paths and for new files in writable directories, since remote code execution often leaves a web shell behind.

How to check with Stackurity

Stackurity keeps one live inventory of the software on your servers, deployed applications, repositories and container images, and matches it against new advisories and the CISA Known Exploited Vulnerabilities catalogue every hour. Its repository scans read Composer manifests, so a Drupal project that lists its dependencies there shows up in the inventory. The product facts we can state do not promise coverage of every Drupal advisory, so confirm the result against the official Drupal notice and treat any gap as a manual check. See the remediation guide for how the upgrade list is ordered, and the checks it runs after a fix.

Start a free Stackurity trial