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.)
CVE-2019-6340
Score elevated to 9.0 because this CVE is listed on the CISA Known Exploited Vulnerabilities catalog (added 2022-03-25), indicating real-world exploitation has been confirmed by US federal agencies. NVD baseline CVSS 8.1 retained for reference. Confidence: HIGH.
- Actively exploited in the wild (CISA-KEV)
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 8.1
- EG Score
- 9.0(high)
- EG Risk
- 81(Attend)EG Risk 81/100SSVC: Attend
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity90% × 45%Exploitation100% × 40%Automatability0% × 15%Action: Remediate soon — notable exploitation risk. - EPSS PROB
- 92%
- EPSS %ILE
- 100%
- KEV
- ⚠ Exploited
Published
February 21, 2019
Last Modified
November 7, 2025
Advisory Details (6)
Auto-updated Jun 3, 2026Drupal < 8.6.9 - REST Module Remote Code Execution - PHP webapps Exploit
https://www.exploit-db.com/exploits/46459/Drupal < 8.6.10 / < 8.5.11 - REST Module Remote Code Execution - PHP webapps Exploit
https://www.exploit-db.com/exploits/46452/Drupal core - Highly critical - Remote Code Execution - SA-CORE-2019-003 | Drupal.org
https://www.drupal.org/sa-core-2019-003Synology_SA_19_09 | Synology Inc.
https://www.synology.com/security/advisory/Synology_SA_19_09Drupal < 8.5.11 / < 8.6.10 - RESTful Web Services unserialize() Remote Command Execution (Metasploit) - PHP remote Exploit
https://www.exploit-db.com/exploits/46510/Affected Packages
(2 across 1 ecosystem)
Packagist(2)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| drupal/core | 8.0.0 ... 8.5.9 (76 versions) | 8.5.11 | — |
| drupal/drupal | 8.6.0 ... 8.6.9 (10 versions) | 8.6.10 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 8× in last 7d / 30× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 111 total refreshes for this CVE.
- 2026-09-18 20:07 UTCEG score recompute
- 2026-09-18 19:23 UTCEPSS rescore
- 2026-09-18 19:20 UTCCISA KEV update
- 2026-09-18 14:15 UTCCISA KEV update
- 2026-09-16 14:10 UTCCISA KEV update
- 2026-09-15 04:45 UTCEG score recompute
- 2026-09-15 03:06 UTCEPSS rescore
- 2026-09-14 19:24 UTCCISA KEV update
- 2026-09-11 18:49 UTCCISA KEV update
- 2026-09-10 19:28 UTCCISA KEV update
- 2026-09-10 12:38 UTCEG score recompute
- 2026-09-09 19:08 UTCCISA KEV update
- 2026-09-08 18:54 UTCCISA KEV update
- 2026-09-06 16:58 UTCEG score recompute
- 2026-09-06 13:44 UTCEPSS rescore
- 2026-09-05 16:02 UTCEG score recompute
- 2026-09-05 15:24 UTCEPSS rescore
- 2026-09-04 17:38 UTCCISA KEV update
- 2026-09-04 06:40 UTCEG score recompute
- 2026-09-02 17:33 UTCCISA KEV update
- 2026-08-31 14:19 UTCCISA KEV update
- 2026-08-30 22:19 UTCEG score recompute
- 2026-08-29 00:34 UTCEG score recompute
- 2026-08-27 17:22 UTCCISA KEV update
- 2026-08-26 17:41 UTCCISA KEV update
Show 75 moreShow fewer
- 2026-08-24 18:52 UTCCISA KEV update
- 2026-08-24 16:38 UTCEG score recompute
- 2026-08-24 12:28 UTCEG score recompute
- 2026-08-21 16:49 UTCCISA KEV update
- 2026-08-20 17:06 UTCCISA KEV update
- 2026-08-19 20:25 UTCEG score recompute
- 2026-08-19 17:33 UTCCISA KEV update
- 2026-08-19 17:00 UTCEPSS rescore
- 2026-08-18 16:58 UTCCISA KEV update
- 2026-08-18 15:20 UTCEG score recompute
- 2026-08-18 13:44 UTCEPSS rescore
- 2026-08-17 13:56 UTCCISA KEV update
- 2026-08-16 05:01 UTCEG score recompute
- 2026-08-11 19:32 UTCCISA KEV update
- 2026-08-11 17:10 UTCEG score recompute
- 2026-08-08 18:40 UTCEG score recompute
- 2026-08-08 16:33 UTCEPSS rescore
- 2026-08-07 17:09 UTCCISA KEV update
- 2026-08-06 16:53 UTCEG score recompute
- 2026-08-05 17:25 UTCCISA KEV update
- 2026-08-04 17:02 UTCCISA KEV update
- 2026-08-03 19:22 UTCCISA KEV update
- 2026-07-30 18:44 UTCEG score recompute
- 2026-07-30 16:24 UTCEPSS rescore
- 2026-07-30 10:26 UTCEG score recompute
- 2026-07-29 19:27 UTCCISA KEV update
- 2026-07-27 19:24 UTCCISA KEV update
- 2026-07-27 17:17 UTCCISA KEV update
- 2026-07-26 10:43 UTCEG score recompute
- 2026-07-26 02:24 UTCEG score recompute
- 2026-07-24 14:14 UTCEPSS rescore
- 2026-07-23 14:15 UTCEPSS rescore
- 2026-07-23 01:46 UTCEG score recompute
- 2026-07-22 21:45 UTCEG score recompute
- 2026-07-22 19:40 UTCCISA KEV update
- 2026-07-21 14:37 UTCCISA KEV update
- 2026-07-19 15:47 UTCEG score recompute
- 2026-07-19 14:28 UTCEPSS rescore
- 2026-07-19 14:28 UTCEPSS rescore
- 2026-07-19 03:18 UTCEG score recompute
- 2026-07-19 02:26 UTCEPSS rescore
- 2026-07-19 02:26 UTCEPSS rescore
- 2026-07-17 09:41 UTCEG score recompute
- 2026-07-16 17:04 UTCCISA KEV update
- 2026-07-15 16:55 UTCEPSS rescore
- 2026-07-15 16:49 UTCCISA KEV update
- 2026-07-15 15:04 UTCCISA KEV update
- 2026-07-15 01:57 UTCEPSS rescore
- 2026-07-14 18:05 UTCCISA KEV update
- 2026-07-13 17:07 UTCCISA KEV update
- 2026-07-10 17:52 UTCCISA KEV update
- 2026-07-08 15:11 UTCEPSS rescore
- 2026-07-07 19:01 UTCCISA KEV update
- 2026-07-07 17:16 UTCCISA KEV update
- 2026-07-06 16:25 UTCEPSS rescore
- 2026-07-06 16:25 UTCEPSS rescore
- 2026-07-06 02:20 UTCEPSS rescore
- 2026-07-06 02:20 UTCEPSS rescore
- 2026-07-01 19:16 UTCCISA KEV update
- 2026-06-29 19:12 UTCCISA KEV update
- 2026-06-28 14:04 UTCEPSS rescore
- 2026-06-25 19:15 UTCCISA KEV update
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 17:44 UTCCISA KEV update
- 2026-06-18 16:13 UTCCISA KEV update
- 2026-06-16 19:33 UTCCISA KEV update
- 2026-06-15 19:33 UTCCISA KEV update
- 2026-06-15 17:46 UTCEPSS rescore
- 2026-06-12 17:35 UTCCISA KEV update
- 2026-06-11 19:10 UTCCISA KEV update
- 2026-06-09 18:42 UTCCISA KEV update
- 2026-06-09 17:12 UTCCISA KEV update
- 2026-06-08 19:16 UTCCISA KEV update
- 2026-06-08 17:26 UTCCISA KEV update
Publicly available exploits
(10 references)Working exploit code is in the public domain (1 Metasploit module) (6 GitHub PoCs) (3 Exploit-DB entries). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- GitHub PoCludy-dev/drupal8-REST-RCEFirst seen Aug 31, 2020
(CVE-2019-6340, CVE-2018-7600) drupal8-REST-RCE
Open source ↗ - GitHub PoCjas502n/CVE-2019-6340First seen May 27, 2019
Drupal8's REST RCE, SA-CORE-2019-003, CVE-2019-6340
Open source ↗ - Exploit-DBEDB-46510✓ verifiedFirst seen Mar 7, 2019
Drupal < 8.5.11 / < 8.6.10 - RESTful Web Services unserialize() Remote Command Execution (Metasploit)
Open source ↗ - Exploit-DBEDB-46459First seen Feb 25, 2019
Drupal < 8.6.9 - REST Module Remote Code Execution
Open source ↗ - GitHub PoCDevDungeon/CVE-2019-6340-Drupal-8.6.9-REST-Auth-BypassFirst seen Feb 25, 2019
CVE-2019-6340 Drupal 8.6.9 REST Auth Bypass examples
Open source ↗ - GitHub PoCoways/CVE-2019-6340First seen Feb 25, 2019
CVE-2019-6340 POC Drupal rce
Open source ↗ - Exploit-DBEDB-46452First seen Feb 23, 2019
Drupal < 8.6.10 / < 8.5.11 - REST Module Remote Code Execution
Open source ↗ - GitHub PoCknqyf263/CVE-2019-6340First seen Feb 23, 2019
Environment for CVE-2019-6340 (Drupal)
Open source ↗ - GitHub PoCg0rx/Drupal-SA-CORE-2019-003First seen Feb 22, 2019
CVE-2019-6340-Drupal SA-CORE-2019-003
Open source ↗ - Metasploitexploit/unix/webapp/drupal_restws_unserialize✓ verifiedFirst seen Feb 20, 2019
Drupal RESTful Web Services unserialize() RCE
Open source ↗
Related CVEs(same CWE)
Same CWE
10 shownCWE-502
- CVE-2017-10992EG 9.8EPSS p96CRITICAL
- CVE-2013-4521EG 9.8EPSS p90CRITICAL
- CVE-2014-1860EG 9.8CRITICAL
- CVE-2016-1000027EG 9.8EPSS p98CRITICAL
- CVE-2014-3699EG 9.8CRITICAL
- CVE-2017-10934EG 9.8CRITICAL
- CVE-2016-9498EG 9.8EPSS p97CRITICAL
- CVE-2016-9483EG 9.8CRITICAL
- CVE-2015-2020EG 9.8CRITICAL
- CVE-2017-15692EG 9.8EPSS p92CRITICAL
Frequently asked(6)
What is CVE-2019-6340?
When was CVE-2019-6340 disclosed?
Is CVE-2019-6340 actively exploited?
What is the CVSS score of CVE-2019-6340?
Which products are affected by CVE-2019-6340?
How do I remediate CVE-2019-6340?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2019-6340
Is Your Infrastructure Affected by CVE-2019-6340?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.