CVE-2018-7602 Drupal Core Remote Code Execution
Attackers can execute arbitrary code remotely on Drupal sites via multiple subsystems, leading to full site compromise.
- Exploited in the wild
- Since 13 Apr 2022
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2018-7602?
CVE-2018-7602 is a high-severity code injection vulnerability in Debian Debian Linux, published on 19 Jul 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
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.
Weakness: CWE-94
Which versions are affected by CVE-2018-7602?
13 open source packages ship an affected version, including drupal/core and drupal/drupal. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
drupal/core Packagist | From 7.0 | 7.59 |
drupal/core Packagist | From 7.0 | 7.59 |
drupal/core Packagist | From 8.0 | 8.4.8 |
drupal/core Packagist | From 8.0 | 8.4.8 |
drupal/core Packagist | From 8.0.0 | 8.4.8, 8.5.3 |
drupal/core Packagist | From 8.5 | 8.5.3 |
7 more packages
drupal/core Packagist | From 8.5 | 8.5.3 |
drupal/drupal Packagist | From 7.0 | 7.59 |
drupal/drupal Packagist | From 7.0 | 7.59 |
drupal/drupal Packagist | From 8.0 | 8.4.8 |
drupal/drupal Packagist | From 8.0 | 8.4.8 |
drupal/drupal Packagist | From 8.5 | 8.5.3 |
drupal/drupal Packagist | From 8.5 | 8.5.3 |
Products include Debian Debian Linux, Drupal Drupal.
How do I fix CVE-2018-7602?
Upgrade drupal/core to a fixed version for your release line: 7.59, 8.4.8 or 8.5.3. US federal agencies must fix it by 4 May 2022.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2018-7602 being exploited?
Yes. Attackers have exploited CVE-2018-7602 in the wild since at least 13 Apr 2022, including in ransomware campaigns.
Public exploit code: 3 Exploit-DB entries, 1 Nuclei template and 5 proofs of concept on GitHub.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as CLEANSTART-2024-FK19349, DLA-1365-1, DRUPAL-CORE-2018-004, DSA-4180-1, GHSA-297x-j9pm-xjgg, UBUNTU-CVE-2018-7602.