CVE-2018-7602: Drupal Core Remote Code Execution Vulnerability
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.
Published Apr 23, 2024 · Updated Oct 22, 2025
Affected packages
drupal/core
- Ecosystem
- Composer (PHP)
- Affected
- >= 7.0, < 7.59
- Fixed in
- 7.59
- Check
composer show drupal/core
drupal/core
- Ecosystem
- Composer (PHP)
- Affected
- >= 8.0, < 8.4.8
- Fixed in
- 8.4.8
- Check
composer show drupal/core
drupal/core
- Ecosystem
- Composer (PHP)
- Affected
- >= 8.5, < 8.5.3
- Fixed in
- 8.5.3
- Check
composer show drupal/core
drupal/drupal
- Ecosystem
- Composer (PHP)
- Affected
- >= 7.0, < 7.59
- Fixed in
- 7.59
- Check
composer show drupal/drupal
drupal/drupal
- Ecosystem
- Composer (PHP)
- Affected
- >= 8.0, < 8.4.8
- Fixed in
- 8.4.8
- Check
composer show drupal/drupal
drupal/drupal
- Ecosystem
- Composer (PHP)
- Affected
- >= 8.5, < 8.5.3
- Fixed in
- 8.5.3
- Check
composer show drupal/drupal
Required action
Apply updates per vendor instructions.
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://nvd.nist.gov/vuln/detail/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://lists.debian.org/debian-lts-announce/2018/04/msg00030.html
- https://www.debian.org/security/2018/dsa-4180
- https://www.drupal.org/sa-core-2018-004
- https://www.exploit-db.com/exploits/44542
- https://www.exploit-db.com/exploits/44557
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2018-7602
- https://github.com/advisories/GHSA-297x-j9pm-xjgg
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-9082
Drupal Core has a SQL Injection issue
critical9.8ExploitedMay 20, 2026GHSA-6mgp-v5cm-ghg5
Drupal core Remote Code Execution
criticalMay 15, 2024GHSA-7v68-3pr5-h3cr
Drupal Core Insufficient Contextual Links validation leads to Remote Code Execution
criticalMay 15, 2024GHSA-jf8c-36vw-98x4
Drupal core Remote Code Execution
criticalMay 15, 2024GHSA-jjx7-8462-w4m4
Drupal Core Insufficient Contextual Links validation leads to Remote Code Execution
criticalMay 15, 2024CVE-2019-6342
Drupal Improper Access Control
critical9.8Jan 11, 2024
