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.
- Published
- Jul 19, 2018
- Updated
- Aug 13, 2026
- EPSS
- 99.2% · 100th percentile
- CWE
- CWE-94
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
99
Now
Patch today or shut off access.
- CVSS
- 39 / 40 · 9.8 / 10
- CISA KEV
- 30 / 30 · Listed
- EPSS
- 30 / 30 · 99.2%
CISA SSVC decision
- Exploitation
- active
- Automatable
- no
- Technical impact
- total
Vulnrichment: CISA's decision-tree inputs.
Actively exploited in the wild
CISA added this to its Known Exploited Vulnerabilities catalog on Apr 13, 2022. That signals real attacks, not theory.
Remediation deadline for government agencies: May 4, 2022.
Known to be used in ransomware campaigns.
Affected systems
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- debian debian linux7.0
- debian debian linux8.0
- debian debian linux9.0
- drupal drupal7.0 and later · before 7.59
- drupal drupal8.4.0 and later · before 8.4.8
- drupal drupal8.5.0 and later · before 8.5.3
Versions reported by the vendor
Affected version ranges reported by the assigning authority (drupal). Independent of NVD's CPE analysis and usually ahead of it.
Drupal core
- unspecified and later · before 7.59affected
- unspecified and later · before 8.5.3affected
- unspecified and later · before 8.4.8affected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:7 | drupal7 | before 7.14-2+deb7u19 | 7.14-2+deb7u19 |
| Debian:8 | drupal7 | before 7.32-1+deb8u12 | 7.32-1+deb8u12 |
| Debian:9 | drupal7 | before 7.52-2+deb9u4 | 7.52-2+deb9u4 |
| Packagist | drupal/core | from 7.0 · before 7.59 | 7.59 |
| Packagist | drupal/core | from 8.0 · before 8.4.8 | 8.4.8 |
| Packagist | drupal/core | from 8.0.0 · before 8.4.8 | 8.4.8 |
| Packagist | drupal/core | from 8.5 · before 8.5.3 | 8.5.3 |
| Packagist | drupal/core | from 8.5.0 · before 8.5.3 | 8.5.3 |
| Packagist | drupal/drupal | from 7.0 · before 7.59 | 7.59 |
| Packagist | drupal/drupal | from 8.0 · before 8.4.8 | 8.4.8 |
| Packagist | drupal/drupal | from 8.5 · before 8.5.3 | 8.5.3 |
Same product
drupal: all recordsOther highest-scoring records for the same primary product.
- CVE-2018-7600Drupal before 7.58, 8.x before 8.3.9, 8.4.x before 8.4.6, and 8.5.x before 8.5.1 allows remote attackers to execute arbitrary code because oKEV99Now
- CVE-2019-6340Drupal core - Highly critical - Remote Code ExecutionKEV90Now
- CVE-2020-13671Drupal core does not properly sanitize certain filenames on uploaded files, which can lead to files being interpreted as the incorrect extenKEV76This week
- CVE-2026-9082Drupal core - Highly critical - SQL injection - SA-CORE-2026-004KEV74This week
- CVE-2014-3704The expandArguments function in the database abstraction API in Drupal core 7.x before 7.32 does not properly construct prepared statements,60This week
- CVE-2019-6339PHAR stream wrapper Arbitrary PHP code execution50Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:drupal7 | 7.14-2+deb7u19 · Debian:7 | Package registry (OSV) |
| Packagist:drupal/core | 7.59 | Package registry (OSV) |
| Packagist:drupal/core | 8.4.8 | Package registry (OSV) |
| Packagist:drupal/core | 8.5.3 | Package registry (OSV) |
| Packagist:drupal/drupal | 7.59 | Package registry (OSV) |
| Packagist:drupal/drupal | 8.4.8 | Package registry (OSV) |
| Packagist:drupal/drupal | 8.5.3 | Package registry (OSV) |
Exploit status
Weaponized
A ready exploit tool or active in-the-wild use is known for this vulnerability. This should be your top priority.
Evidence
- Exploit-DB entry ×3
- Nuclei detection template ×1
- Proof-of-concept repository on GitHub ×5
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Exploit-DB entry | webapps | 2018-04-30 |
| Exploit-DB entry | webapps | 2018-04-30 |
| Exploit-DB entry | webapps | 2018-04-25 |
| Nuclei detection template | Nuclei template CVE-2018-7602 | — |
| Proof-of-concept repository on GitHub | stars:6 | 2018-04-27 |
| Proof-of-concept repository on GitHub | stars:0 | 2018-07-12 |
| Proof-of-concept repository on GitHub | stars:1 | 2018-10-29 |
| Proof-of-concept repository on GitHub | stars:1 | 2020-06-25 |
| Proof-of-concept repository on GitHub | stars:0 | 2024-02-18 |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- First PoC-86 d
- Published
- CISA KEV+1363 d
- TodaySep 30, 2026+2995 d
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
- David Rothsteinfinder
- Alex Pottfinder
- Heine Deelstrafinder
- Jasper Mattssonfinder
- xjmremediation developer
- Samuel Mortensonremediation developer
- Lee Rowlandsremediation developer
- Pere Orgaremediation developer
- Peter Wolaninremediation developer
- Tim Plunkettremediation developer
- Michael Hessremediation developer
- Nate Lamptonremediation developer
- Neil Drummremediation developer
- Cash Williamsremediation developer
- Daniel Wehnerremediation developer
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-94 · Improper Control of Generation of Code ('Code Injection')CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- www.securityfocus.com/bid/103985
- www.securitytracker.com/id/1040754
- lists.debian.org/debian-lts-announce/2018/04/msg00030.html
- www.debian.org/security/2018/dsa-4180
- www.drupal.org/sa-core-2018-004
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2018-7602
Vendor advisories and official records. Exploit/PoC links are deliberately left out.