Drupal Core Remote Code Execution VulnerabilityGHSA-7fh9-933g-885p
CRITICALGHSA-7fh9-933g-885p is a critical-severity (CVSS 9.8) Improper Input Validation vulnerability in drupal/core. It is in CISA's Known Exploited Vulnerabilities catalog (added 2021-11-03) and has been used in ransomware campaigns — treat it as actively exploited and patch now. A fix is available for drupal/core — see the affected versions and patch details below.
Exploitation Status
Actively exploited in the wild
- Confirmed by CISA's Known Exploited Vulnerabilities catalog on 2021-11-03 — including use in ransomware campaigns. Federal agencies were required to remediate by 2022-05-03.
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- A successful exploit gives an attacker total control of the affected component, not partial access.
Exploitation and automatability from CISA (KEV catalog and SSVC triage) for GHSA-7fh9-933g-885p.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
GHSA-7fh9-933g-885p by exploitation likelihood (EPSS) against impact (CVSS). In the shaded patch-first corner (EPSS 50%+, CVSS 7.0+).
Where this sits among everything scored
Of 395,249 CVEs with a current EPSS score, this one falls in the ≥ 90% band (highlighted). Counts from FIRST.org, log-scaled.
Real-World Exposure
drupal/core🐘drupal/core🐘drupal/core🐘drupal/core🐘drupal/drupal🐘drupal/drupal🐘drupal/drupal🐘drupal/drupalReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.
Description
Drupal before 7.58, 8.x before 8.3.9, 8.4.x before 8.4.6, and 8.5.x before 8.5.1 allows remote attackers to execute arbitrary code because of an issue affecting multiple subsystems with default or common module configurations.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐘Packagist | drupal/core | ≥ 7.0&&< 7.58 | 7.58composer require drupal/core:^7.58 |
| 🐘Packagist | drupal/core | ≥ 8.0&&< 8.3.9 | 8.3.9composer require drupal/core:^8.3.9 |
| 🐘Packagist | drupal/core | ≥ 8.4.0&&< 8.4.6 | 8.4.6composer require drupal/core:^8.4.6 |
| 🐘Packagist | drupal/core | ≥ 8.5.0&&< 8.5.1 | 8.5.1composer require drupal/core:^8.5.1 |
| 🐘Packagist | drupal/drupal | ≥ 7.0&&< 7.58 | 7.58composer require drupal/drupal:^7.58 |
| 🐘Packagist | drupal/drupal | ≥ 8.0&&< 8.3.9 | 8.3.9composer require drupal/drupal:^8.3.9 |
Affected Products
debian linuxdebiandrupaldrupalResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Drupal < 7.58 / < 8.3.9 / < 8.4.6 / < 8.5.1 - 'Drupalgeddon2' Remote Code Execution
by Hans Topo & g0tmi1k · Apr 13, 2018
Drupal < 8.3.9 / < 8.4.6 / < 8.5.1 - 'Drupalgeddon2' Remote Code Execution (Metasploit)
by José Ignacio Rojo · Apr 17, 2018
Drupal < 8.3.9 / < 8.4.6 / < 8.5.1 - 'Drupalgeddon2' Remote Code Execution (PoC)
by Vitalii Rudnykh · Apr 13, 2018
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for drupal/core, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update drupal/core to 7.58 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-7fh9-933g-885p is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How to detect GHSA-7fh9-933g-885p
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id ghsa-7fh9-933g-885p -u https://target- Template
- Drupal - Remote Code Execution
- Severity
- critical
- Impact
- Successful exploitation allows an unauthenticated attacker to execute arbitrary code on the server, leading to full compromise of the Drupal host and its data.
- Remediation
- Upgrade to the latest version of Drupal or apply the official patch provided by the Drupal security team.
Template by ProjectDiscovery nuclei-templates (pikpikcu, diedromeo), MIT licensed. View the full template. Scan only systems you are authorised to test.
Frequently Asked Questions
Is GHSA-7fh9-933g-885p in your dependencies?
Find it across Packagist, including transitive dependencies.