- 8.1HighCVSS base score
- 92.0%Exploitation in 30 daysEPSS · top 0.2% of all CVEs
- YesKnown exploitedin CISA's KEV since 25 Mar 2022
- 5Public exploitsMetasploit, Nuclei and Exploit-DB
Description
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.)
Exploited in the wild
CISA lists this vulnerability in its Known Exploited Vulnerabilities catalog as Drupal Core Remote Code Execution Vulnerability.
- Added
- 25 Mar 2022
- Fix due (US federal)
- 15 Apr 2022
- Used by ransomware
- Not known
Apply updates per vendor instructions.
ENISA's EU Vulnerability Database lists it as exploited, from CISA's KEV, since 25 Mar 2022.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Metasploit module, a Nuclei template and 3 Exploit-DB entries for it. 3 references of the record are tagged as an exploit. CISA's SSVC rates its exploitation: it is being exploited.
Show the exploits8
Metasploit modules1 module
- Drupal RESTful Web Services unserialize() RCE (Metasploit module) (opens in a new tab)
exploit/unix/webapp/drupal_restws_unserializeRank normaldisclosed 20 Feb 2019
Nuclei templates1 template
- Drupal - Remote Code Execution (Nuclei template) (opens in a new tab)
http/cves/2019/CVE-2019-6340.yamlSeverity high
Exploit-DB3 entries
- Drupal < 8.5.11 / < 8.6.10 - RESTful Web Services unserialize() Remote Command Execution (Metasploit) (Exploit-DB entry) (opens in a new tab)
EDB-ID 46510remote, phppublished 7 Mar 2019Verified
- Drupal < 8.6.9 - REST Module Remote Code Execution (Exploit-DB entry) (opens in a new tab)
EDB-ID 46459webapps, phppublished 25 Feb 2019Not verified
- Drupal < 8.6.10 / < 8.5.11 - REST Module Remote Code Execution (Exploit-DB entry) (opens in a new tab)
EDB-ID 46452webapps, phppublished 23 Feb 2019Not verified
References tagged exploit3 references
- 46452 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
- 46510 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
- 46459 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By drupal
- 37 days later
· 37 days later
Published
- 3 years later
· 3 years later
Added to CISA KEV
Known exploited in the wild
- 4 years later
· 4 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| CISA-ADPADP (enrichment) | 3.1 | High8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Analyzed | 3.1 | High8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 92.0% · top 0.2% of all CVEs (10 Nov 2026)
- CISA SSVC
- Exploitation: active · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.1.
Affected products
- affected 8.5 – < 8.5.11
- affected 8.6 – < 8.6.10
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Packagistdrupal/coreGHSA-3gx6-h57h-rm27 (opens in a new tab)
- Packagistdrupal/drupalGHSA-3gx6-h57h-rm27 (opens in a new tab)
References
7
- https://www.synology.com/security/advisory/Synology_SA_19_09 (opens in a new tab)x_refsource_CONFIRMx_transferred
- 46452 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
- https://www.drupal.org/sa-core-2019-003 (opens in a new tab)x_refsource_CONFIRMx_transferred
- 46510 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
- 107106 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- 46459 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-6340 (opens in a new tab)government-resource
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- CISA KEV catalog (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2022-2184 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-3gx6-h57h-rm27 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2019-6340)Record last updated .