CVE-2018-7602 — Vulnerability in drupal/core — CVE Details
Drupal Core Remote Code Execution Vulnerability
What Should I Do?
Patch Immediately
This vulnerability is confirmed under active exploitation (CISA KEV). Patch within 24-48 hours if possible.
Does your project use an affected drupal/core version?
Paste your composer.lock to check it for CVE-2018-7602 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published April 23, 2024 (947 days ago).
- Last revised December 10, 2025 — 596 days after initial publication.
- Added to CISA's Known Exploited Vulnerabilities catalog 742 days before publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "drupal/core:^8.4.8"
composer require "drupal/core:^7.59"
composer require "drupal/core:^8.5.3"
composer require "drupal/drupal:^7.59"
composer require "drupal/drupal:^8.4.8"
composer require "drupal/drupal:^8.5.3"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (6)
Affects 1 ecosystem: Packagist (2).
| Package | Fixed In |
|---|---|
| drupal/core Packagist · Affected: 8.0.0, 8.0.0-beta10, 8.0.0-beta11, 8.0.0-beta12 (+72 more) | 8.4.8 |
| drupal/core Packagist · Affected: All versions | 7.59 |
| drupal/core Packagist · Affected: 8.5.0, 8.5.0-alpha1, 8.5.0-beta1, 8.5.0-rc1 (+2 more) | 8.5.3 |
| drupal/drupal Packagist · Affected: All versions | 7.59 |
| drupal/drupal Packagist · Affected: 8.0.0, 8.0.0-alpha14, 8.0.0-alpha15, 8.0.0-beta1 (+78 more) | 8.4.8 |
| drupal/drupal Packagist · Affected: 8.5.0, 8.5.0-alpha1, 8.5.0-beta1, 8.5.0-rc1 (+2 more) | 8.5.3 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-94Code InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-7602ADVISORY
- https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2018-7602.yamlWEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2018-7602.yamlWEB
- https://github.com/drupal/corePACKAGE
- https://lists.debian.org/debian-lts-announce/2018/04/msg00030.htmlWEB
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2018-7602WEB
- https://www.debian.org/security/2018/dsa-4180WEB
- https://www.drupal.org/sa-core-2018-004WEB
- https://www.exploit-db.com/exploits/44542WEB
- https://www.exploit-db.com/exploits/44557WEB
Frequently Asked Questions
- What is CVE-2018-7602?
- Drupal Core Remote Code Execution Vulnerability. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2018-7602?
- CVE-2018-7602 affects drupal/core and drupal/drupal. It has a 99.1% probability of exploitation within 30 days (EPSS score). This vulnerability is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, meaning it is being actively exploited in the wild. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2018-7602 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top 5% of EPSS-scored vulnerabilities — 100% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.
This vulnerability is in CISA's Known Exploited Vulnerabilities (KEV) catalog, indicating active exploitation in the wild.
Added to KEV catalog: April 13, 2022
Remediation deadline: May 4, 2022
Also Known As
Related CVEs
- CVE-2017-6925CRITICAL
Drupal Entity access bypass for entities that do not have UUIDs or have protected revisions
- CVE-2020-13665CRITICAL
Drupal Core Access bypass vulnerability
- CVE-2019-11831CRITICAL
Directory Traversal in typo3/phar-stream-wrapper
- CVE-2020-13671HIGH
Drupal core Unrestricted Upload of File with Dangerous Type
- CVE-2024-55638HIGH
Drupal core contains a potential PHP Object Injection vulnerability
- CVE-2020-13663HIGH
Drupal Core Cross-Site Request Forgery (CSRF) vulnerability
- CVE-2024-55637HIGH
Drupal core contains a potential PHP Object Injection vulnerability
- CVE-2020-13664HIGH
Drupal Core Arbitrary PHP code execution vulnerability