patchminder
Exploited in the wild · CISA KEV CVE-2019-6340

Remote code executionin Drupal Core.

Published 21 Feb 2019 · Updated 21 Oct 2025 · Every fact sourced

JSONCite
Is it exploited?
Yes

On CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks.'s exploited list since 25 Mar 2022.

On CISA's listAttack code is public
Severity
High 8.1
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment · no login needed
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 92.0% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 7.62.0, 8.5.11, 8.6.10
In plain words

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.)

CISA: In Drupal Core, some field types do not properly sanitize data from non-form sources. This can lead to arbitrary PHP code execution in some cases.

What to do now
  • Upgrade Drupal Core to 8.5.11, 8.6.10 or later, whichever matches your release line.
  • Upgrade drupal/core (Packagist) to 7.62.0, 8.5.11, 8.6.10 or later, whichever matches your release line.
  • Upgrade drupal/drupal (Packagist) to 7.62.0, 8.5.11, 8.6.10 or later, whichever matches your release line.
  • CISA requires US federal agencies to fix it by 15 Apr 2022.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
Drupal Core
8.5 to before 8.5.11
8.5.11
CVE record
Drupal Core
8.6 to before 8.6.10
8.6.10
CVE record
drupal/core (Packagist)
8.6.0 to before 8.6.10
8.6.10
GitHub advisory
drupal/core (Packagist)
7.0.0 to before 7.62.0
7.62.0
GitHub advisory
drupal/core (Packagist)
8.0.0 to before 8.5.11
8.5.11
GitHub advisory
drupal/drupal (Packagist)
7.0.0 to before 7.62.0
7.62.0
GitHub advisory
drupal/drupal (Packagist)
8.0.0 to before 8.5.11
8.5.11
GitHub advisory
drupal/drupal (Packagist)
8.6.0 to before 8.6.10
8.6.10
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 15 Jan 2019
    CVE ID reserved by drupal.
  2. 20 Feb 2019
    Metasploit module: Drupal RESTful Web Services unserialize() RCE.
  3. 21 Feb 2019
    Published in the CVE List.
  4. 22 Feb 2019
    First public proof of concept on GitHub.
  5. 25 Mar 2022
    Added to CISA's Known Exploited Vulnerabilities list.
  6. 21 Oct 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Exploited in the wild (CISA KEV). CISA assessment (SSVC): exploitation active.

Metasploit module
1 module
Nuclei scan template
Available
Exploit-DB
4 entries
GitHub proof of concepts
11 repositories
NucleiDrupal · Remote Code Executiondetection template
Exploit-DBEDB-ID 46510remote exploit for php, published 7 Mar 2019, verified by Exploit-DB
Exploit-DBEDB-ID 46510remote exploit for php, published 7 Mar 2019, verified by Exploit-DB
Exploit-DBEDB-ID 46452web application exploit for php, published 23 Feb 2019
Exploit-DBEDB-ID 46459web application exploit for php, published 25 Feb 2019
GitHubno warning signs foundjas502n/CVE-2019-634071 stars · created 27 May 2019Drupal8's REST RCE, SA-CORE-2019-003, CVE-2019-6340
GitHubno warning signs foundknqyf263/CVE-2019-634042 stars · created 23 Feb 2019Environment for CVE-2019-6340 (Drupal)
GitHubno warning signs foundg0rx/Drupal-SA-CORE-2019-00330 stars · created 22 Feb 2019CVE-2019-6340-Drupal SA-CORE-2019-003
GitHubno warning signs foundoways/CVE-2019-634012 stars · created 25 Feb 2019CVE-2019-6340 POC Drupal rce
GitHubno warning signs foundludy-dev/drupal8-REST-RCE4 stars · created 31 Aug 2020(CVE-2019-6340, CVE-2018-7600) drupal8-REST-RCE
GitHubno warning signs foundDevDungeon/CVE-2019-6340-Drupal-8.6.9-REST-Auth-Bypass2 stars · created 25 Feb 2019CVE-2019-6340 Drupal 8.6.9 REST Auth Bypass examples
GitHubno warning signs foundcved-sources/cve-2019-63400 stars · created 26 Feb 2019cve-2019-6340
GitHubno warning signs foundjosehelps/cve-2019-6340-bits0 stars · created 12 Mar 2019Bits generated while analyzing CVE-2019-6340 Drupal RESTful RCE
GitHubno warning signs foundnobodyatall648/CVE-2019-63400 stars · created 1 May 2021Drupal Drupal 8.6.x RCE Exploit
GitHubno warning signs foundSumitpathania03/Drupal-cve-2019-63400 stars · created 22 Feb 2023
Referencewww.exploit-db.comnamed as exploit in the CVE record
Referencewww.exploit-db.comnamed as exploit in the CVE record
Referencewww.exploit-db.comnamed as exploit in the CVE record

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other Core vulnerabilities

Same weakness: Deserialization of untrusted data

All CWE-502 vulnerabilities

References
Cite this page

Patchminder. CVE-2019-6340: Remote code execution in Drupal Core. https://patchminder.com/cve/cve-2019-6340/ (accessed 5 December 2026).