Actively exploited vulnerability / CVE-2019-6340
Drupal: a flaw can let an attacker take control of your website
This flaw in Drupal can allow an attacker to run their own code on the website's server in certain setups. That means they could change the site, access the data stored on it, or use it for further attacks. It is on the lists of vulnerabilities used in real attacks kept by CISA (the US cybersecurity agency) and by ENISA (the EU cybersecurity agency).
- Identifier
- CVE-2019-6340 · EUVD-2022-2184
- Severity
- High (8.1/10)
- On the CISA list (US)
- yes, since 25 March 2022
- Deadline given to US federal agencies
- 15 April 2022
- On the ENISA list (EU)
- yes
- Probability of exploitation (EPSS)
- 92.0% (FIRST's estimate for the next 30 days)
Does it concern you?
Drupal is a content management system used for company websites, portals and online shops. You are only affected if the site has web services modules enabled, such as RESTful Web Services or JSON:API in Drupal 8, or Services or RESTful Web Services in Drupal 7.
Affected are Drupal 8.5 versions before 8.5.11 and Drupal 8.6 versions before 8.6.10. The version is usually shown in the admin area under the status report, or you can ask whoever maintains your website.
Affected products and versions
- Drupal Core
- drupal: from 8.5.0 before 8.5.11; from 8.6.0 before 8.6.10
What to do
Update Drupal to version 8.5.11 or 8.6.10 or later, following the vendor's instructions. If you run Drupal 7 with the Services module, also apply the other module updates linked to this advisory.
Versions that contain the fix: 8.5.11, 8.6.10.
The official description
The text below is the description from the public database.
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.)
Sources
Data from the public CVE and NVD databases, the CISA KEV and ENISA EU KEV lists and FIRST's EPSS score. The explanations are ours, written from that data. Last updated: 29 November 2026.