# CVE-2018-7602: Drupal Core Remote Code Execution Vulnerability

Source: https://junglewise.ai/threats/cve-2018-7602-drupal-core-remote-code-execution-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-04-23. Updated: 2026-05-10  
License: CC BY 4.0 with a link back

CVE-2018-7602 · Severity: critical · CVSS 3.1 · Exploited in the wild · Published 2024-04-23

A remote code execution vulnerability exists within multiple subsystems of Drupal 7.x and 8.x. Attackers can exploit multiple attack vectors to compromise the site, a flaw related to the previous SA-CORE-2018-002 (Drupalgeddon 2) vulnerability.

Technologies: [Drupal Core](https://junglewise.ai/threats/technologies/core), [drupal/core (Packagist)](https://junglewise.ai/threats/technologies/packagist-drupal-core), [drupal/drupal (Packagist)](https://junglewise.ai/threats/technologies/drupal-drupal). Vendors: [Drupal](https://junglewise.ai/threats/vendors/drupal), [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is CVE-2018-7602 exploited in the wild?** Yes. CVE-2018-7602 is known to be exploited in the wild, first recorded on 13 April 2022. Treat it as urgent.

**How severe is CVE-2018-7602?** Critical severity, with a CVSS score of 3.1, published 23 April 2024.

**Which products and versions are affected?** drupal/core (Packagist) ECOSYSTEM:introduced=7.0,fixed=7.59, ECOSYSTEM:introduced=8.0.0,fixed=8.4.8|ECOSYSTEM:introduced=8.5.0,fixed=8.5.3; drupal/drupal (Packagist) ECOSYSTEM:introduced=7.0,fixed=7.59.

**Is there a fix for CVE-2018-7602?** Yes. drupal/core (Packagist): upgrade to 7.59, 8.4.8 or later; drupal/drupal (Packagist): upgrade to 7.59 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2018-7602 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2018-7602?** Check whether you run Drupal Core, drupal/core (Packagist) or drupal/drupal (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- drupal/core (Packagist): upgrade to 7.59, 8.4.8 or later

  ```sh
  composer require drupal/core:^8.4.8
  ```

- drupal/drupal (Packagist): upgrade to 7.59 or later

  ```sh
  composer require drupal/drupal:^7.59
  ```


## Affected products

- Drupal Drupal Core 7.x, 8.x (specifically < 7.59, 8.4.x < 8.4.8, 8.5.x < 8.5.3)

## Identifiers

- CVE-2018-7602
- DRUPAL-CORE-2018-004
- GHSA-297x-j9pm-xjgg

## Timeline

- 2018-04-25: disclosed: SA-CORE-2018-004 / CVE-2018-7602 published by Drupal.org
- 2018-04-25: patched: Security updates released for Drupal 7.59, 8.4.8, and 8.5.3
- 2022-04-13: kev added: Added to CISA Known Exploited Vulnerabilities Catalog
- 2018-04-25: exploited: Reported as being exploited in the wild at the time of disclosure.

## Related threats

- [Drupal core Link module cross-site scripting in markup sanitization](https://junglewise.ai/threats/cve-2026-108515-drupal-core-2026-015-the-drupal-core-link-module-provides-a)
- [Drupal Navigation module cross-site scripting in attributes](https://junglewise.ai/threats/cve-2026-108514-drupal-core-2026-016-the-navigation-module-doesn-t-sufficiently)
- [Drupal Core remote code execution in Field UI module](https://junglewise.ai/threats/cve-2026-108097-drupal-core-2026-014-a-remote-code-execution-vulnerability)
- [Drupal cross-site scripting in CKEditor WYSIWYG](https://junglewise.ai/threats/drupal-core-2026-013-the-drupal-project-uses-the-ckeditor-https-github-f5b3da40)
- [Drupal stored cross-site scripting in Layout Builder](https://junglewise.ai/threats/cve-2026-55805-drupal-stored-cross-site-scripting-in-layout-builder)
