Skip to content
Server Security Center
KEVcritical9.8 Used in ransomware campaigns

CVE-2018-7602: Drupal Core Remote Code Execution

Drupal Core · listed in the CISA catalog of actively exploited vulnerabilities since 2022-04-13.

CVSS v3.1 (CVE record)
9.8
critical
EPSS (exploit probability, 30 days)
99.1%
among the highest 0.1% of all CVEs
Added to CISA KEV
2022-04-13
US federal due date 2022-05-04
Ubuntu priority
high

CVE-2018-7602 explained

CVE-2018-7602 is a remote code execution vulnerability in multiple subsystems of Drupal 7.x and 8.x core. It is related to SA-CORE-2018-002, and both are being exploited in the wild. CISA lists it as known exploited, with known ransomware use, so unpatched Drupal sites are at serious risk of compromise.

Impact

An attacker can reach the flaw over the network with low complexity. No privileges or user interaction are required. Successful exploitation can compromise the Drupal site. The CVSS components show high impact on confidentiality, integrity and availability. This means data theft, site modification and service disruption are all possible. Exploitation in the wild and ransomware use are reported.

Who is affected

The drupal7 source package is affected on Ubuntu 14.04 LTS and Ubuntu 16.04 LTS. Both releases are end of life. Fixed versions exist only through Ubuntu Pro (ESM): 7.26-1ubuntu0.1+esm1 for Ubuntu 14.04 LTS and 7.44-1ubuntu1~16.04.0+esm1 for Ubuntu 16.04 LTS. No other releases are listed in the facts.

Written with AI from the data on this page and checked against it automatically.

Official 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.

CISA required action: Apply updates per vendor instructions.

CISA notes

Upstream versions (CVE record)

From the CVE record published by the vendor or CVE numbering authority.

  • Drupal core
    Affected
    • < 7.59
    • < 8.4.8
    • < 8.5.3
    Fixed in
    • 7.59
    • 8.4.8
    • 8.5.3

Ubuntu and Debian releases

A server is vulnerable if it has a package built from the listed source package installed in a version lower than the fixed version for its release.

What to do

  1. Identify every host running the drupal7 package or any other Drupal 7.x or 8.x site.
  2. On Ubuntu 14.04 LTS or 16.04 LTS, enable Ubuntu Pro (ESM) and install the fixed drupal7 version.
  3. Restart the web server and PHP services so the patched code is loaded.
  4. Plan an upgrade to a supported Ubuntu release, because both affected releases are end of life.
  5. Since exploitation is known, review affected sites for signs of compromise and follow the Drupal advisory.

Written with AI from the data on this page and checked against it automatically.

Check and fix on a server

Run on each Ubuntu or Debian server. Replace drupal7 with the source package from the table above.

1. Show installed packages built from the source package, with their versions

dpkg-query -W -f='${binary:Package} ${Version} ${source:Package}\n' | awk '$3=="drupal7"'

2. Compare each installed version with the fixed version for your release from the table

I=INSTALLED_VERSION; F=FIXED_VERSION   # replace both
dpkg --compare-versions "$I" lt "$F"; case $? in 0) echo vulnerable ;; 1) echo "fixed or newer" ;; *) echo "check the versions" ;; esac

3. Install the fix

sudo apt update && sudo apt install --only-upgrade $(dpkg-query -W -f='${binary:Package} ${source:Package}\n' | awk '$2=="drupal7"{print $1}')

Services keep running the old code until they are restarted – restart the affected service or check with needrestart.

Rows marked “fix via Ubuntu Pro”: these fixes are only installable with an Ubuntu Pro subscription (ESM). Attach the machine first (sudo pro attach, then sudo pro enable esm-infra esm-apps), then run the commands above.

CISA's assessment (SSVC)

Exploitation
Exploited in the wild
Automatable
No – each attack needs manual steps
Technical impact
Total – full control of the component or total information disclosure

Weakness: CWE-94 Improper Control of Generation of Code ('Code Injection')

Questions about CVE-2018-7602

Is CVE-2018-7602 actively exploited?
Yes. The description says it is being exploited in the wild, together with SA-CORE-2018-002. CISA added it to its Known Exploited Vulnerabilities catalog on 2022-04-13 and reports known ransomware use.
Can I get the fix without Ubuntu Pro?
Not on Ubuntu 14.04 LTS or 16.04 LTS. The fixed drupal7 packages for these releases are only published through Ubuntu Pro (ESM). Both releases are end of life, so upgrading to a supported release is the long-term fix.
Does an attacker need an account on the site?
No. The CVSS vector shows network access, low complexity, no privileges and no user interaction are required.

Written with AI from the data on this page and checked against it automatically.

References

Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-22. Always confirm with the vendor's or distribution's advisory before patching.