Drupal core
Drupal core - Highly critical - Remote Code Execution - SA-CORE-2018-004
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 versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- >= 7.0, < 7.59
Fixed in 7.59
from GitHub Security Advisory GHSA-297x-j9pm-xjgg
- >= 8.0, < 8.4.8
Fixed in 8.4.8
from GitHub Security Advisory GHSA-297x-j9pm-xjgg
- >= 8.5, < 8.5.3
Fixed in 8.5.3
from GitHub Security Advisory GHSA-297x-j9pm-xjgg
- >= 7.0, < 7.59
Fixed in 7.59
from GitHub Security Advisory GHSA-297x-j9pm-xjgg
- >= 8.0, < 8.4.8
Fixed in 8.4.8
from GitHub Security Advisory GHSA-297x-j9pm-xjgg
- >= 8.5, < 8.5.3
Fixed in 8.5.3
from GitHub Security Advisory GHSA-297x-j9pm-xjgg
Mitigation
Upgrade drupal/core to 7.59 or later.
Upgrade drupal/core to 8.4.8 or later.
Upgrade drupal/core to 8.5.3 or later.
Upgrade drupal/drupal to 7.59 or later.
Upgrade drupal/drupal to 8.4.8 or later.
Upgrade drupal/drupal to 8.5.3 or later.
Timeline
Days relative to CVE publicationFirst public PoC 86 days before publication; added to CISA KEV 3.7 years after publication. First PoC: Drupal < 7.58 - 'Drupalgeddon3' (Authenticated) Remote Code Execution (PoC) (Exploit-DB, 25 Apr 2018).
PoC repositories
Found on GitHub.8 PoCs · 1 not a PoC
PoCs 8
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| oways/SA-CORE-2018-004 | 26 Apr 2018 −84 d | backfilled | 40 | PoC older repo: PoC date unknown, not used for the first PoC |
| 1337g/Drupalgedon3 | 27 Apr 2018 −84 d | backfilled | 6 | PoC older repo: PoC date unknown, not used for the first PoC |
| rithchard/Drupalgeddon3 | 29 Apr 2018 −81 d | backfilled | 43 | PoC older repo: PoC date unknown, not used for the first PoC |
| happynote3966/CVE-2018-7602 | 12 Jul 2018 −7.5 d | backfilled | 0 | PoC |
| kastellanos/CVE-2018-7602 | 29 Oct 2018 +102 d | backfilled | 1 | PoC |
| cyberharsh/DrupalCVE-2018-7602 | 25 Jun 2020 +1.9 y | backfilled | 1 | PoC |
| 132231g/CVE-2018-7602 | 18 Feb 2024 +5.6 y | backfilled | 0 | Scanner |
| d4ytox/CVE-2018-7602 | 10 Nov 2026 +8.3 y | 14 Nov 2026 | 1 | PoC |
Not a PoC 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| pimps/CVE-2018-7600 | 17 Apr 2018 −93 d | 141 | Not a PoC · unrelated |
Only PoCs count toward the first-PoC date and the characteristics below. "Backfilled" means we found the repository more than 30 days after it was created. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| CVE record (tagged exploit) | 44542 | unknown | 14 Nov 2026 |
| CVE record (tagged exploit) | 44557 | unknown | 14 Nov 2026 |
| Exploit-DB | Drupal < 7.58 - 'Drupalgeddon3' (Authenticated) Remote Code Execution (PoC) | 25 Apr 2018 | 14 Nov 2026 |
| Exploit-DB | Drupal < 7.58 - 'Drupalgeddon3' (Authenticated) Remote Code (Metasploit) | 30 Apr 2018 | 14 Nov 2026 |
| nuclei template | nuclei template: Drupal - Remote Code Execution | 27 Apr 2023 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 8 PoC reposPOST /
- Query
q=node/destination=node?q[%23][]=passthru&q[%23type]=markup&q[%23markup]=q=node/99/deletedestination=node?q[%23][]=passthru&q[%23type]=markup&q[%23markup]=whoamidestination=node?q[%23post_render][]=passthru&q[%23type]=markup&q[%23markup]=q=file/ajax/actions/cancel/#options/path/- Key headers
Cookie: {var}- Body markers
form_id=node_delete_confirm_triggering_element_name=form_idform_token=form_build_id=inapplication/x-www-form-urlencoded- Seen in
- 3 repos: 1337g/Drupalgedon3, happynote3966/CVE-2018-7602, oways/SA-CORE-2018-004
- Evidence
- 1337g/Drupalgedon3/exploit.py:30 happynote3966/CVE-2018-7602/44542.txt:5 happynote3966/CVE-2018-7602/drupalgeddon3.py:28 happynote3966/CVE-2018-7602/drupalgeddon3.py:32 happynote3966/CVE-2018-7602/drupalgeddon3_update.py:28 happynote3966/CVE-2018-7602/drupalgeddon3_update.py:32
POST /drupal/
- Query
q=file/ajax/actions/cancel/#options/path/q=file/ajax/actions/cancel/#options/path/[FORM_BUILD_ID]- Seen in
- 2 repos: 1337g/Drupalgedon3, happynote3966/CVE-2018-7602
- Evidence
- 1337g/Drupalgedon3/exploit.py:35 happynote3966/CVE-2018-7602/44542.txt:11
GET /node/{var}/delete
- Key headers
Cookie: {var}- Seen in
- 2 repos: happynote3966/CVE-2018-7602, oways/SA-CORE-2018-004
- Evidence
- happynote3966/CVE-2018-7602/drupalgeddon3.py:24 oways/SA-CORE-2018-004/drupalgeddon3.py:24
GET /
- Query
q=node/- Key headers
Cookie: {var}- Seen in
- 1 repo: happynote3966/CVE-2018-7602
- Evidence
- happynote3966/CVE-2018-7602/drupalgeddon3_update.py:24
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/\?(?:.*&)?q=node/.*destination=node\?q\[%23\]\[\]=passthru&q\[%23type\]=markup&q\[%23markup\]=.*q=node/99/delete.*destination=node\?q\[%23\]\[\]=passthru&q\[%23type\]=markup&q\[%23markup\]=whoami.*destination=node\?q\[%23post_render\]\[\]=passthru&q\[%23type\]=markup&q\[%23markup\]=.*q=file/ajax/actions/cancel/#options/path/
(?i)^/drupal/\?(?:.*&)?q=file/ajax/actions/cancel/#options/path/.*q=file/ajax/actions/cancel/#options/path/\[FORM_BUILD_ID\]
(?i)^/node/[^/?#]*/delete(?:[?#].*)?$
(?i)^/\?(?:.*&)?q=node/
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2018-7602 Drupal core exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"q=node/"; http.uri; content:"destination=node?q[%23][]=passthru&q[%23type]=markup&q[%23markup]="; http.uri; content:"q=node/99/delete"; http.uri; content:"destination=node?q[%23][]=passthru&q[%23type]=markup&q[%23markup]=whoami"; http.uri; content:"destination=node?q[%23post_render][]=passthru&q[%23type]=markup&q[%23markup]="; http.uri; content:"q=file/ajax/actions/cancel/#options/path/"; http.header_names; content:"Cookie"; nocase; http.request_body; content:"form_id=node_delete_confirm"; http.request_body; content:"_triggering_element_name=form_id"; http.request_body; content:"form_token="; http.request_body; content:"form_build_id="; reference:url,poc.griffinguard.io/cve/CVE-2018-7602; classtype:web-application-attack; sid:9730982; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2018-7602 Drupal core exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/drupal/"; http.uri; content:"q=file/ajax/actions/cancel/#options/path/"; http.uri; content:"q=file/ajax/actions/cancel/#options/path/[FORM_BUILD_ID]"; reference:url,poc.griffinguard.io/cve/CVE-2018-7602; classtype:web-application-attack; sid:9656433; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2018-7602 Drupal core exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/delete"; http.uri; content:"/node/"; http.header_names; content:"Cookie"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2018-7602; classtype:web-application-attack; sid:9635338; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2018-7602 Drupal core exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"q=node/"; http.header_names; content:"Cookie"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2018-7602; classtype:web-application-attack; sid:9559478; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Drupal core exploit attempt (CVE-2018-7602)
id: gg-pocmon-cve-2018-7602-9730982
status: experimental
description: Request pattern taken from public PoCs for CVE-2018-7602. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2018-7602
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-query|contains|all:
- 'q=node/'
- 'destination=node?q[%23][]=passthru&q[%23type]=markup&q[%23markup]='
- 'q=node/99/delete'
- 'destination=node?q[%23][]=passthru&q[%23type]=markup&q[%23markup]=whoami'
- 'destination=node?q[%23post_render][]=passthru&q[%23type]=markup&q[%23markup]='
- 'q=file/ajax/actions/cancel/#options/path/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2018.7602
title: Drupal core exploit attempt (CVE-2018-7602)
id: gg-pocmon-cve-2018-7602-9656433
status: experimental
description: Request pattern taken from public PoCs for CVE-2018-7602. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2018-7602
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/drupal/'
cs-uri-query|contains|all:
- 'q=file/ajax/actions/cancel/#options/path/'
- 'q=file/ajax/actions/cancel/#options/path/[FORM_BUILD_ID]'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2018.7602
title: Drupal core exploit attempt (CVE-2018-7602)
id: gg-pocmon-cve-2018-7602-9635338
status: experimental
description: Request pattern taken from public PoCs for CVE-2018-7602. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2018-7602
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/delete'
- '/node/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2018.7602
title: Drupal core exploit attempt (CVE-2018-7602)
id: gg-pocmon-cve-2018-7602-9559478
status: experimental
description: Request pattern taken from public PoCs for CVE-2018-7602. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2018-7602
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-query|contains|all:
- 'q=node/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2018.7602