Remote code executionin Drupal Core.
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.
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.
- 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.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 15 Jan 2019CVE ID reserved by drupal.
- 20 Feb 2019Metasploit module: Drupal RESTful Web Services unserialize() RCE.
- 21 Feb 2019Published in the CVE List.
- 22 Feb 2019First public proof of concept on GitHub.
- 25 Mar 2022Added to CISA's Known Exploited Vulnerabilities list.
- 21 Oct 2025CVE record last updated.
Attack code anyone can find
Exploit maturity: Exploited in the wild (CISA KEV). CISA assessment (SSVC): exploitation active.
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.
Report a link
Other Core vulnerabilities
Same weakness: Deserialization of untrusted data
- www.synology.com x_refsource_CONFIRM
- www.drupal.org x_refsource_CONFIRM
- www.securityfocus.com vdb-entry, x_refsource_BID
- www.cisa.gov government-resource
Patchminder. CVE-2019-6340: Remote code execution in Drupal Core. https://patchminder.com/cve/cve-2019-6340/ (accessed 5 December 2026).