PoC Monitor
← All CVEs
CVE-2018-7602published 19 Jul 2018 17:00 UTCData: JSON · API

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.

First public PoC 86 days beforebefore publication · 25 Apr 2018 · Exploit-DB
Public PoCs118 on GitHub · 3 Exploit-DB, Metasploit or nuclei
CVSS8.1high · scored by CISA ADP · CWE-94
CISA KEV 13 Apr 20223.7 years after publication · ransomware use known

Affected versions and mitigation

From the CVE record, GitHub Security Advisories and the vendor's references.

Affected

drupal/core (Packagist)
  • >= 7.0, < 7.59

Fixed in 7.59

from GitHub Security Advisory GHSA-297x-j9pm-xjgg

drupal/core (Packagist)
  • >= 8.0, < 8.4.8

Fixed in 8.4.8

from GitHub Security Advisory GHSA-297x-j9pm-xjgg

drupal/core (Packagist)
  • >= 8.5, < 8.5.3

Fixed in 8.5.3

from GitHub Security Advisory GHSA-297x-j9pm-xjgg

drupal/drupal (Packagist)
  • >= 7.0, < 7.59

Fixed in 7.59

from GitHub Security Advisory GHSA-297x-j9pm-xjgg

drupal/drupal (Packagist)
  • >= 8.0, < 8.4.8

Fixed in 8.4.8

from GitHub Security Advisory GHSA-297x-j9pm-xjgg

drupal/drupal (Packagist)
  • >= 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 publication
t=0+180+360+540+720+900+1080+1260First public PoC25 Apr 2018 · t−86dCVE published19 Jul 2018 · t = 0Added to CISA KEV13 Apr 2022 · t+3.7y

First 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
RepositoryCreatedFound by usStarsAssessment
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
RepositoryCreatedStarsAssessment
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.
SourceTitlePublishedFound by us
CVE record (tagged exploit)44542unknown14 Nov 2026
CVE record (tagged exploit)44557unknown14 Nov 2026
Exploit-DBDrupal < 7.58 - 'Drupalgeddon3' (Authenticated) Remote Code Execution (PoC)25 Apr 201814 Nov 2026
Exploit-DBDrupal < 7.58 - 'Drupalgeddon3' (Authenticated) Remote Code (Metasploit)30 Apr 201814 Nov 2026
nuclei templatenuclei template: Drupal - Remote Code Execution27 Apr 202314 Nov 2026

PoC characteristics

What to hunt for in your logs · from 8 PoC repos

POST /

Query
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/
Key headers
Cookie: {var}
Body markers
form_id=node_delete_confirm _triggering_element_name=form_id form_token= form_build_id= in application/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 /

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.

POST /
(?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/
POST /drupal/
(?i)^/drupal/\?(?:.*&)?q=file/ajax/actions/cancel/#options/path/.*q=file/ajax/actions/cancel/#options/path/\[FORM_BUILD_ID\]
GET /node/{var}/delete
(?i)^/node/[^/?#]*/delete(?:[?#].*)?$
GET /
(?i)^/\?(?:.*&)?q=node/

Suricata

Template generated from PoC characteristics. Review before deploying.

POST /
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;)
POST /drupal/
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;)
GET /node/{var}/delete
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;)
GET /
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.

POST /
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
POST /drupal/
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
GET /node/{var}/delete
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
GET /
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