Drupal Core ‐ Remote Code Execution


Systems Affected

Drupal 8.6.x, 8.5.x or earlier versions

Threat Level



Allows remote attackers to execute arbitrary code because of not sanitizing data on some field types (CVE ID: CVE-2019-6340).


An attacker can mount Different attacks since the data is not sanitized on some of the field types available on Drupal.
A site is only affected by this if one of the following conditions is met:
 The site using 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 still apply other contributed updates associated with this advisory if Services is in use.)


  ✦  Temporary or permanent loss of the service.
  ✦  Disruption to regular operations.
  ✦  Financial losses incurred to restore systems and files.
  ✦  Potential harm to organization's reputation.

Solution/ Workarounds

  ✦  If you are using Drupal 8.6.x, upgrade to Drupal 8.6.10.
  ✦  If you are using Drupal 8.5.x or earlier, upgrade to Drupal 8.5.11.
  ✦  Be sure to install any available security updates for contributed projects after updating Drupal core.
  ✦  No core update is required for Drupal 7, but several Drupal 7 contributed modules do require updates.

Note: Versions of Drupal 8 prior to 8.5.x are end-of-life and do not receive security coverage.

To immediately mitigate the vulnerability, you can disable all web services modules, or configure your web server(s) to not allow PUT/PATCH/POST requests to web services resources. Note that web services resources may be available on multiple paths depending on the configuration of your server(s). For Drupal 7, resources are for example typically available via paths (clean URLs) and via arguments to the "q" query argument. For Drupal 8, paths may still function when prefixed with index.php/.



The information provided herein is on "as is" basis, without warranty of any kind.


© Copyright Sri Lanka CERT|CC. All Rights Reserved.