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)
- EPSS
- 99.8%
- 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 9× 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.
- 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
Show 26 moreShow fewer
- 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
- 2026-06-05 22:43 UTCCISA KEV update
- 2026-06-03 19:09 UTCCISA KEV update
- 2026-06-02 18:32 UTCCISA KEV update
- 2026-06-01 20:42 UTCCISA KEV update
- 2026-05-29 22:20 UTCCISA KEV update
- 2026-05-29 13:42 UTCEPSS rescore
- 2026-05-27 20:35 UTCCISA KEV update
- 2026-05-26 19:23 UTCEG score recompute
- 2026-05-26 19:13 UTCCISA KEV update
- 2026-05-24 20:42 UTCOSV refresh
- 2026-05-24 16:47 UTCEPSS rescore
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-20208EG 9.8CRITICAL
- CVE-2017-20207EG 9.8CRITICAL
- CVE-2017-20206EG 9.8CRITICAL
- CVE-2017-20189EG 9.8CRITICAL
- CVE-2017-10992EG 9.8EPSS 95%CRITICAL
- CVE-2013-4521EG 9.8EPSS 90%CRITICAL
- CVE-2014-1860EG 9.8CRITICAL
- CVE-2016-1000027EG 9.8EPSS 98%CRITICAL
- CVE-2014-3699EG 9.8CRITICAL
- CVE-2017-18605EG 9.8CRITICAL
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.