Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐘
🐘 Packagist
CISA KEV · ACTIVELY EXPLOITED
CRITICAL severity

CVE-2018-7602 — core

CRITICAL

CVE-2018-7602 is a critical-severity (CVSS 9.8) Code Injection vulnerability in drupal/core. It is in CISA's Known Exploited Vulnerabilities catalog (added 2022-04-13) 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.

Drupal Core Remote Code Execution Vulnerability

Also known asDRUPAL-CORE-2018-004GHSA-297x-j9pm-xjgg
Published
Updated
Affected
6 pkgs
Patched
6 / 6
Exploits
10 known
Exploitation data as of Oct 20, 2026 · OSV.dev, NVD, CISA KEV, FIRST.org (EPSS)

Exploitation Status

Actively exploited in the wild

  • Confirmed by CISA's Known Exploited Vulnerabilities catalog on 2022-04-13 — including use in ransomware campaigns. Federal agencies were required to remediate by 2022-05-04.
  • 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 CVE-2018-7602.

EPSS Exploitation Probability

via FIRST.org ↗
99.2%probability of exploitation in next 30 days
Very High Risk-0.03%
Lower risk than most CVEs100th percentile — riskier than 100% of all scored CVEsHighest risk
92.9%95.3%97.6%100.0%94.4%99.2%Apr 26Aug 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

CVE-2018-7602 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 394,415 CVEs with a current EPSS score, this one falls in the ≥ 90% band (highlighted). Counts from FIRST.org, log-scaled.

Real-World Exposure

6 pkgs affected
🐘drupal/core🐘drupal/core🐘drupal/core🐘drupal/drupal🐘drupal/drupal🐘drupal/drupal

Real-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

A remote code execution vulnerability exists within multiple subsystems of Drupal 7.x and 8.x. This potentially allows attackers to exploit multiple attack vectors on a Drupal site, which could result in the site being compromised. This vulnerability is related to Drupal core - Highly critical - Remote Code Execution - SA-CORE-2018-002. Both SA-CORE-2018-002 and this vulnerability are being exploited in the wild.

Affected Packages

6 total 6 fixed
EcosystemPackageVulnerable rangeFix
🐘Packagistdrupal/core≥ 7.0&&< 7.597.59composer require drupal/core:^7.59
🐘Packagistdrupal/core≥ 8.0&&< 8.4.88.4.8composer require drupal/core:^8.4.8
🐘Packagistdrupal/core≥ 8.5&&< 8.5.38.5.3composer require drupal/core:^8.5.3
🐘Packagistdrupal/drupal≥ 7.0&&< 7.597.59composer require drupal/drupal:^7.59
🐘Packagistdrupal/drupal≥ 8.0&&< 8.4.88.4.8composer require drupal/drupal:^8.4.8
🐘Packagistdrupal/drupal≥ 8.5&&< 8.5.38.5.3composer require drupal/drupal:^8.5.3

Affected Products

2 products · 6 configurations
OS
debian linuxdebian
3 versions
7.08.09.0
Application
drupaldrupal
≥ 8.5.0 && < 8.5.3
range
Exploits & PoCs
10

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

EDB-44557webappsphp✓ Verified

Drupal < 7.58 - 'Drupalgeddon3' (Authenticated) Remote Code (Metasploit)

by SixP4ck3r · Apr 30, 2018

EDB-44542webappsphp✓ Verified

Drupal < 7.58 - 'Drupalgeddon3' (Authenticated) Remote Code Execution (PoC)

by Blaklis · Apr 25, 2018

Detection & mitigation playbook

Open-source dependency
  1. Detect

    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.

  2. Fix

    Update drupal/core to 7.59 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2018-7602 is resolved across your whole dependency graph.

  3. Workarounds

    Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.

How to detect CVE-2018-7602

A community-maintained Nuclei template exists for this CVE. You can scan for it directly:

nuclei -id cve-2018-7602 -u https://target
Template
Drupal - Remote Code Execution
Severity
critical
Impact
Remote attackers can execute arbitrary code on the affected Drupal installations.
Remediation
Upgrade to Drupal 7.58, 8.3.9, 8.4.6, or 8.5.1 or apply the necessary patches provided by Drupal.

Template by ProjectDiscovery nuclei-templates (princechaddha), MIT licensed. View the full template. Scan only systems you are authorised to test.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

UbuntuCRITICAL

Frequently Asked Questions

A remote code execution vulnerability exists within multiple subsystems of Drupal 7.x and 8.x. This potentially allows attackers to exploit multiple attack vectors on a Drupal site, which could result in the site being compromised. This vulnerability is related to Drupal core - Highly critical - Remote Code Execution - SA-CORE-2018-002. Both SA-CORE-2018-002 and this vulnerability are being exploited in the wild.
O3 Security · Impact-Aware SCA

Is CVE-2018-7602 in your dependencies?

Find it across Packagist, including transitive dependencies.

Actively Exploited: CVE-2018-7602: core RCE (Critical 9.8)