CVE-2018-7602
Drupal core - Highly critical - Remote Code Execution - SA-CORE-2018-004
Also known as DRUPAL-CORE-2018-004, EDB-44542, EDB-44557, GHSA-297x-j9pm-xjgg
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).
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
Vulnerability facts
- 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
- 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 the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 8.1 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 99.14% chance of exploitation in 30 days (percentile 100, 2026-11-26)
- CWE
- CWE-94
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist drupal/core | >= 8.0.0, < 8.4.8; >= 8.5.0, < 8.5.3 | 8.4.8, 8.5.3, 7.59 | osv |
| Packagist drupal/drupal | >= 7.0, < 7.59 | 7.59, 8.4.8, 8.5.3 | osv |
| Drupal core | >= unspecified, < 7.59; >= unspecified, < 8.5.3; >= unspecified, < 8.4.8 | — | cvelist |
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 Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Vendor advisories
Exploits and PoCs
Other
- http://www.securitytracker.com/id/1040754
- https://lists.debian.org/debian-lts-announce/2018/04/msg00030.html
- http://www.securityfocus.com/bid/103985
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2018-7602
- https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2018-7602.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2018-7602.yaml
- https://github.com/drupal/core
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.