Drupal core - Highly critical - Remote Code Execution
Some field types do not properly sanitize data from non-form sources in Drupal 8.5.x before 8.5.11 and Drupal 8.6.x before 8.6.10. This can lead to arbitrary PHP code execution in some cases. A site is only affected by this if one of the following conditions is met: The site has the Drupal 8 core RESTful Web Services (rest) module enabled and allows PATCH or POST requests, or the site has another web services module enabled, like JSON:API in Drupal 8, or Services or RESTful Web Services in Drupal 7. (Note: The Drupal 7 Services module itself does not require an update at this time, but you should apply other contributed updates associated with this advisory if Services is in use.)
- Published
- Feb 21, 2019
- Updated
- Jun 16, 2026
- EPSS
- 92.0% · 100th percentile
- CWE
- CWE-502
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
90
Now
Patch today or shut off access.
- CVSS
- 32 / 40 · 8.1 / 10
- CISA KEV
- 30 / 30 · Listed
- EPSS
- 28 / 30 · 92.0%
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 Mar 25, 2022. That signals real attacks, not theory.
Remediation deadline for government agencies: Apr 15, 2022.
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| drupal | drupal | cpe:2.3:a:drupal:drupal |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- drupal drupal8.5.0 and later · before 8.5.11
- drupal drupal8.6.0 and later · before 8.6.10
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 Drupal Core
- 8.5 and later · before 8.5.11affected
- 8.6 and later · before 8.6.10affected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Packagist | drupal/core | from 7.0.0 · before 7.62.0 | 7.62.0 |
| Packagist | drupal/core | from 8.0.0 · before 8.5.11 | 8.5.11 |
| Packagist | drupal/core | from 8.6.0 · before 8.6.10 | 8.6.10 |
| Packagist | drupal/drupal | from 7.0.0 · before 7.62.0 | 7.62.0 |
| Packagist | drupal/drupal | from 8.0.0 · before 8.5.11 | 8.5.11 |
| Packagist | drupal/drupal | from 8.6.0 · before 8.6.10 | 8.6.10 |
Same product
drupal: all recordsOther highest-scoring records for the same primary product.
- CVE-2018-7602Drupal core - Highly critical - Remote Code Execution - SA-CORE-2018-004KEV99Now
- 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-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 |
|---|---|---|
| Packagist:drupal/core | 7.62.0 | Package registry (OSV) |
| Packagist:drupal/core | 8.5.11 | Package registry (OSV) |
| Packagist:drupal/core | 8.6.10 | Package registry (OSV) |
| Packagist:drupal/drupal | 7.62.0 | Package registry (OSV) |
| Packagist:drupal/drupal | 8.5.11 | Package registry (OSV) |
| Packagist:drupal/drupal | 8.6.10 | 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
- Metasploit module ×1
- Exploit-DB entry ×4
- Nuclei detection template ×1
- Proof-of-concept repository on GitHub ×11
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 | remote | 2019-03-07 |
| Exploit-DB entry | remote | 2019-03-07 |
| Exploit-DB entry | webapps | 2019-02-23 |
| Exploit-DB entry | webapps | 2019-02-25 |
| Metasploit module | exploit/unix/webapp/drupal_restws_unserializeDrupal RESTful Web Services unserialize() RCEexploit | 2019-02-20 |
| Nuclei detection template | Nuclei template CVE-2019-6340 | — |
| Proof-of-concept repository on GitHub | stars:30 | 2019-02-22 |
| Proof-of-concept repository on GitHub | stars:42 | 2019-02-23 |
| Proof-of-concept repository on GitHub | stars:2 | 2019-02-25 |
| Proof-of-concept repository on GitHub | stars:12 | 2019-02-25 |
| Proof-of-concept repository on GitHub | stars:0 | 2019-02-26 |
| Proof-of-concept repository on GitHub | stars:0 | 2019-03-12 |
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.
- Metasploit-2 d
- Published
- First PoCsame day
- CISA KEV+1127 d
- TodaySep 30, 2026+2778 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.
No credits in the CNA record.
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.
- Special conditions such as timing or configuration are required.
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
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-502 · Deserialization of Untrusted DataCVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
nvd-primary
Root cause
Data received over the network is deserialized into the language’s native object format without verifying its source. Code paths inside the object can be triggered during deserialization.
The bug in code
The whole CWE-502 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
payload = sock.recv(65536)job = pickle.loads(payload)Fixed
payload = sock.recv(65536)if not hmac.compare_digest(sign(payload), header_sig): raise PermissionError("invalid signature")job = JobSchema.validate(json.loads(payload))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)
ATT&CK techniques
—
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/107106
- www.drupal.org/sa-core-2019-003
- www.exploit-db.com/exploits/46452/
- www.synology.com/security/advisory/Synology_SA_19_09
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-6340
Vendor advisories and official records. Exploit/PoC links are deliberately left out.