CVE-2018-7602 Drupal Core Remote Code Execution

Exploited in the wild High 8.1 Published Updated

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.

PackageAffectedFixed in
drupal/core PackagistFrom 7.07.59
drupal/core PackagistFrom 7.07.59
drupal/core PackagistFrom 8.08.4.8
drupal/core PackagistFrom 8.08.4.8
drupal/core PackagistFrom 8.0.08.4.8, 8.5.3
drupal/core PackagistFrom 8.58.5.3
7 more packages
drupal/core PackagistFrom 8.58.5.3
drupal/drupal PackagistFrom 7.07.59
drupal/drupal PackagistFrom 7.07.59
drupal/drupal PackagistFrom 8.08.4.8
drupal/drupal PackagistFrom 8.08.4.8
drupal/drupal PackagistFrom 8.58.5.3
drupal/drupal PackagistFrom 8.58.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.

All Debian Debian Linux vulnerabilities

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.

Is CVE-2018-7602 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free