Skip to content
OpenAdvisories
High · 8.1 Known exploited · Ransomware Scanner template Public exploit CVE-2018-7602 DRUPAL-CORE-2018-004EUVD-2024-1058GHSA-297x-j9pm-xjgg

Drupal core - Highly critical - Remote Code Execution - SA-CORE-2018-004

Published Jul 19, 2018 · Updated Oct 1, 2026 · Assigned by drupal

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 products

VendorProductAffectedFixed
Drupal core unspecified – < 7.59, unspecified – < 8.5.3, unspecified – < 8.4.8 7.59

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 9 drupal7 7.52-2+deb9u4 DSA-4180-1
Debian 8 drupal7 7.32-1+deb8u12 DSA-4180-1
Debian 7 drupal7 7.14-2+deb7u19 DLA-1365-1
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS drupal7 7.44-1ubuntu1~16.04.0+esm1 USN-4773-1
Ubuntu Pro 14.04 LTS drupal7 7.26-1ubuntu0.1+esm1 USN-4773-1
ReleasePackageFixed inAdvisory
Alpine v3.20 drupal7 7.59-r0 —
Alpine v3.19 drupal7 7.59-r0 —
Alpine v3.18 drupal7 7.59-r0 —
Alpine v3.17 drupal7 7.59-r0 —
Alpine v3.16 drupal7 7.59-r0 —
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.15 drupal7 7.59-r0 —
Alpine v3.14 drupal7 7.59-r0 —
Alpine v3.13 drupal7 7.59-r0 —
Alpine v3.12 drupal7 7.59-r0 —
Alpine v3.11 drupal7 7.59-r0 —
Alpine v3.10 drupal7 7.59-r0 —
Alpine v3.9 drupal7 7.59-r0 —
Alpine v3.8 drupal7 7.59-r0 —
Alpine v3.7 drupal7 7.59-r0 —
Alpine v3.6 drupal7 7.59-r0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 2

GitHub 6 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist drupal/core >= 8.0.0, < 8.4.8 · >= 8.5.0, < 8.5.3 8.4.8, 8.5.3 DRUPAL-CORE-2018-004
Packagist drupal/core >= 7.0, < 7.59 7.59 GHSA-297x-j9pm-xjgg
Packagist drupal/core >= 8.0, < 8.4.8 8.4.8 GHSA-297x-j9pm-xjgg
Packagist drupal/core >= 8.5, < 8.5.3 8.5.3 GHSA-297x-j9pm-xjgg
Packagist drupal/drupal >= 7.0, < 7.59 7.59 GHSA-297x-j9pm-xjgg
Packagist drupal/drupal >= 8.0, < 8.4.8 8.4.8 GHSA-297x-j9pm-xjgg
Packagist drupal/drupal >= 8.5, < 8.5.3 8.5.3 GHSA-297x-j9pm-xjgg

Advisories 3

References