CVE-2019-6340
Confirmed PUBLISHEDDrupal core - Highly critical - Remote Code Execution
Recommended Action
Prioritize remediation. Validate affected assets and apply vendor fixes on an accelerated timeline.
At a Glance
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 Published
- Feb 21, 2019
- Exploitation Reported
- Mar 25, 2022
- CVSS
- 8.1 High
- EPSS
- 92.0%
Affected Versions
| Vendor | Product | Version | Status |
|---|---|---|---|
| Drupal |
Drupal Core
|
8.5 to < 8.5.11 |
Affected |
| Drupal |
Drupal Core
|
8.6 to < 8.6.10 |
Affected |
CVE References
- 46452 exploit-db.com · Exploit https://www.exploit-db.com/exploits/46452/
- 46510 exploit-db.com · Exploit https://www.exploit-db.com/exploits/46510/
- 46459 exploit-db.com · Exploit https://www.exploit-db.com/exploits/46459/
- 107106 securityfocus.com · VDB Entry http://www.securityfocus.com/bid/107106
- synology.com/security/advisory/Synology_SA_19_09 synology.com · CVE Record https://www.synology.com/security/advisory/Synology_SA_19_09
Show 1 more reference
- drupal.org/sa-core-2019-003 drupal.org · CVE Record https://www.drupal.org/sa-core-2019-003
Recommended Actions
- Prioritize remediation. Validate affected assets and apply vendor fixes on an accelerated timeline.
- Check enrichment artifacts for scanner coverage and available PoCs before rolling remediation validation.
- Use the Pro API to automate enrichment, telemetry, and workflow delivery for VM, SOC, and CTI pipelines.
Known Exploited Vulnerability Sources
Catalogues that list this CVE as a known exploited vulnerability.
Per-source evidence links for KEV attestations are available through the KEVIntel Pro API.
Learn about Pro API access| Source | Added |
|---|---|
| CISA First | 2022-03-25 00:00 UTC |
| The Shadowserver | 2026-07-08 00:00 UTC |
Scanner Artifacts
Nuclei and Metasploit references linked to this CVE.
| Scanner | Reference | Detected |
|---|---|---|
| Nuclei | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2019/CVE-2019-6340.yaml | Apr 25, 2025 |
| Metasploit | https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/webapp/drupal_restws_unserialize.rb | Apr 28, 2025 |
Virtual Patch
Compensating WAF rules to help reduce exposure to this CVE. Rule content and deployable vendor exports are available with KEVIntel Enterprise.
KEVIntel does not currently have a virtual patch for this CVE. When available, KEVIntel virtual patches ship as deployable ModSecurity, Cloudflare, and AWS WAF rules.
Enterprise feature. Virtual patch rule content and deployable vendor exports (ModSecurity, Cloudflare, AWS WAF) are available to KEVIntel Enterprise users.
CVSS Scores
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
AV:N/AC:M/Au:N/C:P/I:P/A:P
Exploitation Status
Exploited in the wild
Recorded 2022-03-25 00:00:00 UTC · CISA
Proof of concept available
Recorded 2019-02-23 13:28:58 UTC · GitHub
Weaknesses (CWE)
-
Deserialization of Untrusted Data
Scanner Integrations
| Scanner | Reference | Detected |
|---|---|---|
| Metasploit | https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/webapp/drupal_restws_unserialize.rb | Apr 28, 2025 |
| Nuclei | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2019/CVE-2019-6340.yaml | Apr 25, 2025 |
Potential Proof of Concepts
These PoCs are unverified and could contain malware. Use at your own risk.
github · Created 2021-05-01 15:00:34 UTC · 0 stars
Drupal Drupal 8.6.x RCE Exploit
github · Created 2019-05-27 19:06:14 UTC · 70 stars
Drupal8's REST RCE, SA-CORE-2019-003, CVE-2019-6340
github · Created 2019-02-25 07:47:16 UTC · 12 stars
CVE-2019-6340 POC Drupal rce
github · Created 2019-02-25 03:38:47 UTC · 2 stars
CVE-2019-6340 Drupal 8.6.9 REST Auth Bypass examples
github · Created 2019-02-23 13:28:58 UTC · 43 stars
Environment for CVE-2019-6340 (Drupal)
nuclei · Created Unknown
Timeline
Key exploitation, disclosure, scanner coverage, and KEV attestation events for this CVE.
-
00:00 UTC 15 days ago00:00 UTC · 15 days ago
KEV confirmed by The Shadowserver
Exploitation attested by an external source
-
15:02 UTC about 1 year ago15:02 UTC · about 1 year ago
Metasploit module available
Exploit module available
-
00:00 UTC about 1 year ago00:00 UTC · about 1 year ago
Nuclei template available
Scanner coverage available
-
00:00 UTC over 4 years ago00:00 UTC · over 4 years ago
Added to CISA KEV
Listed in the CISA Known Exploited Vulnerabilities catalog
-
13:28 UTC over 7 years ago13:28 UTC · over 7 years ago
Public PoC available
Public proof-of-concept code published
-
21:00 UTC over 7 years ago21:00 UTC · over 7 years ago
CVE published
Vulnerability disclosed publicly
-
00:00 UTC over 7 years ago00:00 UTC · over 7 years ago
CVE ID reserved
Identifier reserved by the CNA
Automate This Intelligence with the Pro API
Confidence scoring, exploit status, sensor telemetry, PoCs, scanner integrations, mentions, and tags are available programmatically for VM, SOC, and CTI workflows.
Pro API Example
GET /api/v2/pro/kevs/CVE-2019-6340
{
"cve_id": "CVE-2019-6340",
"title": "Drupal core - Highly critical - Remote Code Execution",
"affected_vendor": "Drupal",
"affected_product": "Drupal Core",
"affected_versions": [
{ "vendor": "...", "product": "...", "status": "affected", "display_label": "..." }
],
"confidence": "Confirmed",
"cvss_score": 8.1,
"epss_score": 0.92017,
"exploit_status": {
"exploited_in_the_wild": true,
"active_exploitation_observed": false
},
"sensor_telemetry": { "...": "Pro API fields" },
"proof_of_concepts": [ "..." ],
"scanner_integrations": [ "..." ]
}