# CVE-2018-7602: Drupal core - Highly critical - Remote Code Execution - SA-CORE-2018-004

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.1
- **CVSS:** 8.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Yes: in CISA KEV since 2022-04-13; federal due date 2022-05-04; known ransomware use
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 99.14% (percentile 100, 2026-11-26)
- **CWE:** CWE-94
- **Aliases:** DRUPAL-CORE-2018-004, EDB-44542, EDB-44557, GHSA-297x-j9pm-xjgg
- **Published:** 2018-04-25T00:00:00.000Z
- **Modified:** 2026-10-02T14:54:58.763Z

## Who should check

- Projects that depend on Packagist package drupal/core (\>= 8.0.0, \< 8.4.8; \>= 8.5.0, \< 8.5.3)
- Projects that depend on Packagist package drupal/drupal (\>= 7.0, \< 7.59)
- Anyone running Drupal core \>= unspecified, \< 7.59; \>= unspecified, \< 8.5.3; \>= unspecified, \< 8.4.8

## 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 and fixed versions

- Packagist `drupal/core`: affected \>= 8.0.0, \< 8.4.8; \>= 8.5.0, \< 8.5.3; fixed 8.4.8, 8.5.3, 7.59 (osv)
- Packagist `drupal/drupal`: affected \>= 7.0, \< 7.59; fixed 7.59, 8.4.8, 8.5.3 (osv)
- Drupal core: \>= unspecified, \< 7.59; \>= unspecified, \< 8.5.3; \>= unspecified, \< 8.4.8 (cvelist)

## Mitigation

- Upgrade drupal/core to one of 8.4.8, 8.5.3, 7.59 (or later in the same release line).
- Upgrade drupal/drupal to one of 7.59, 8.4.8, 8.5.3 (or later in the same release line).

## Timeline

- 2018-04-25: Published
- 2022-04-13: Added to CISA KEV (exploited in the wild)
- 2022-05-04: CISA remediation due date for US federal agencies
- 2026-10-02: Last modified

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2018-7602. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2018-7602.md
Affected: drupal/core >= 8.0.0, < 8.4.8; >= 8.5.0, < 8.5.3; drupal/drupal >= 7.0, < 7.59
Fixed in: 8.4.8, 8.5.3, 7.59

Steps:
1. Search this machine and project for drupal/core (Packagist), drupal/drupal (Packagist), Drupal core: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2018-7602 being exploited?

Yes. CISA lists CVE-2018-7602 in its Known Exploited Vulnerabilities catalog since 2022-04-13, which means attacks have been seen. Public exploit code or a proof of concept is available. EPSS estimates a 99.14% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2018-7602?

High: CVSS 8.1 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2018-7602?

drupal/core \>= 8.0.0, \< 8.4.8; \>= 8.5.0, \< 8.5.3; drupal/drupal \>= 7.0, \< 7.59.

### Is there a fix for CVE-2018-7602?

Yes. Fixed in 8.4.8, 8.5.3, 7.59. Upgrade drupal/core to one of 8.4.8, 8.5.3, 7.59 (or later in the same release line). Upgrade drupal/drupal to one of 7.59, 8.4.8, 8.5.3 (or later in the same release line).

### How do I check if I'm affected by CVE-2018-7602?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://www.debian.org/security/2018/dsa-4180>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2018-7602>
- patch: <https://www.drupal.org/sa-core-2018-004>
- exploit: <https://www.exploit-db.com/exploits/44557/>
- exploit: <https://www.exploit-db.com/exploits/44542/>
- exploit: <https://www.exploit-db.com/exploits/44542>
- exploit: <https://www.exploit-db.com/exploits/44557>
- other: <http://www.securitytracker.com/id/1040754>
- other: <https://lists.debian.org/debian-lts-announce/2018/04/msg00030.html>
- other: <http://www.securityfocus.com/bid/103985>
- other: <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2018-7602>
- other: <https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2018-7602.yaml>
- other: <https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2018-7602.yaml>
- other: <https://github.com/drupal/core>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2018-7602>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/DRUPAL-CORE-2018-004> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-297x-j9pm-xjgg> (license: <https://creativecommons.org/licenses/by/4.0/>)
- Exploit-DB: Exploit metadata (ID and link only) from the Exploit Database <https://www.exploit-db.com/exploits/44557>
- CISA KEV: CISA Known Exploited Vulnerabilities Catalog <https://www.cisa.gov/known-exploited-vulnerabilities-catalog>

HTML: <https://flawdb.com/CVE-2018-7602> · JSON: <https://flawdb.com/api/v1/entries/CVE-2018-7602>
